问题现象: | 客户用的是个别计价法和出库跟踪入库,从2011年结转到2012年后发现库存系统和存货核算系统的期初余额数据有问题,但是总金额是对的,结转过来期初出现了一些奇怪的数据,然后客户在今年做出库的时候发现销售出库单不能正常记账,经查发现不能记账的单据都为去年入库的存货,通过个别计价法指定功能把销售出库单记了帐,但后面又发现,销售出库单上的出库单价和入库单价有差额,造成成本不正确。由于使用了出库跟踪入库,所以客户没有调整有问题的期初余额,因为数量和金额是和去年对的上的。 |
问题原因: | |
解决方案: | 您好, 此问题经检查客户数据现在答复如下: 客户数据主要村早两个问题: 1、出库跟踪入库的累计出库数量不正确 2、跟踪信息不正确 解决办法: 提供脚本调整参考: 1、修改12年跟踪信息缺失: --插入mainbatch中丢失的记录: insert into mainbatch ([cWhCode], [cInvCode], [bIsNull], [RdID], [cFree1], [cFree2], [cFree3], [cFree4], [cFree5], [cFree6], [cFree7], [cFree8], [cFree9], [cFree10]) select [cWhCode], b.[cInvCode], 0, [autoid], [cFree1], [cFree2], [cFree3], [cFree4], [cFree5], [cFree6], [cFree7], [cFree8], [cFree9], [cFree10] from rdrecord a join rdrecords b on a.id=b.id join inventory c on b.cinvcode=c.cinvcode where btrack=1 and cvouchcode is null and autoid not in (select rdid from mainbatch) go update mainbatch set bisnull=0 from mainbatch join rdrecords rds on mainbatch.rdid=rds.autoid where iquantity-isnull(isoutquantity,0)>0.000001 and bisnull=1 update mainbatch set bisnull=1 from mainbatch join rdrecords rds on mainbatch.rdid=rds.autoid where abs(iquantity-isnull(isoutquantity,0))<0.000001 and bisnull=0 2、修改累计出库数量不正确: update rdrecords set isoutquantity=b.isoutquantity from rdrecords join (select b.* from rdrecord a join rdrecords b on a.id=b.id join inventory c on b.cinvcode=c.cinvcode where c.btrack=1 and cvouchcode is null) a on rdrecords.autoid=a.autoid left join (select cvouchcode,sum(case brdflag when 0 then iquantity else -iquantity end) as isoutquantity from rdrecord a join rdrecords b on a.id=b.id join inventory c on b.cinvcode=c.cinvcode where c.btrack=1 and cvouchcode is not null group by cvouchcode) b on a.autoid=b.cvouchcode wherdbo.Ca_Amoct_UseDetaile abs(isnull(a.isoutquantity,0)-isnull(b.isoutquantity,0))>0.00001 库存、存货上下年度对账没问题,结存是599台车,结存金额是61778598.66 存货期初存在部分只有金额没有数量的记录可能会导致查看库存单价和入库单单价不一致现象,这种现象建议恢复存货期初,直接合计一下金额重新计算单价手工在期初界面调整一下结存单价即可(只有8个存货直接调整工作量不大) 调整完毕以后将存货明细账中只有金额没有数量的信息删掉即可 提示:存货不调整也不会影响成本,系统最终会自动调整 您电话已关机没有联系上 如有问题,请及时反馈 |
相关补丁: | |
版本: | 8.90 |
模块: | 销售管理 |
产品: | 供应链 |
问题名称: | 供应链结转后期初异常 |
最后更新: | 2012-02-25 23:23:59 |