Sage 200数据库

问题描述:

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

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

是否有其他表我应该看什么,也许是一个包含清除数据?如果不是,数据库是否损坏会是一个公平的假设? (这些数据库属于某些公司,我不知道数据是如何输入的。)

SLPostedCustomerTran将发票/贷项凭证/付款/收据全部保存为正值。查看SysTraderTranType Table,然后通过单个TranType过滤查询以获得更有意义的结果。

会计系统管理器>系统公用程序>余额分类帐>财务应纠正任何分配异常。

+0

这将是有道理的。我们处理这个问题的另一个系统是,在报告时,我们必须不断根据其类型和其他属性确定交易的名义标志。 –