Sage 200 数据库

Sage 200 database

我注意到在许多 Sage 200 数据库中,从销售方面来看,没有足够的分配来弥补 table SLPostedCustomerTran 中某些行记录的分配值。换句话说,以下查询 returns 某些数据库的非零结果:

SELECT count(*)
FROM SLPostedCustomerTran
   INNER JOIN SLAllocationTran on SLPostedCustomerTran.SLPostedCustomerTranID = SLAllocationTran.SLPostedCustomerTranID
GROUP BY SLPostedCustomerTran.SLPostedCustomerTranID, SLPostedCustomerTran.AllocatedValue
HAVING sum(SLAllocationTran.AllocationValue) <> SLPostedCustomerTran.AllocatedValue

是否还有另一个 table 我应该查看,也许包含已清除的数据?如果没有,是否可以公平地假设数据库已损坏? (这些是属于某些公司的数据库,我不知道数据是如何输入的。)

SLPostedCustomerTran 持有 Invoice/CreditNote/Payment/Receipt 全部为正值。查看 SysTraderTranType Table,然后按单个 TranType 过滤您的查询以获得更有意义的结果。

会计系统经理 > 系统实用程序 > 余额分类账 > 财务应更正任何分配异常。