问题现象: | 总账中原材料的借方发生额与存货核算中原材料分类的汇总收入不一致 贷方发生与支出汇总不一致 已经核对了暂估入库、采购发票、红字回冲单、蓝字回冲单,未发现异常 |
问题原因: | |
解决方案: | 您好, 此问题【经查看数据/测试】现做如下分析与答复: 11年10月份发生不平原因如下 1、存货与总账对账不平是由于应付使用了存货科目140309,可由存货与总账对账的明细界面查看凭证号; 2、总账中原材料的借方发生额与存货核算中原材料分类的汇总收入不一致,贷方发生与支出汇总不一致 是由于部分单据没有生成凭证,通过生成凭证还可以看到11年10月份的单据 后台查询语句如下: 明细数据: select * from ia_subsidiary a join inventory b on a.cinvcode=b.cinvcode where a.imonth=10 and cpzid is null and left(cinvccode,2) in ('01','05','06') 汇总数据: select sum(iainquantity),sum(isnull(iainprice,0)),sum(iaoutprice) from ia_subsidiary a join inventory b on a.cinvcode=b.cinvcode where a.imonth=10 and cpzid is null and left(cinvccode,2) in ('01','05','06') 2、有半成品单据生成凭证时存货科目使用了140309 查询语句如下 明细数据: select * from ia_subsidiary a join inventory b on a.cinvcode=b.cinvcode where a.imonth=10 and cpzid is not null and cinvhead='140309' and left(cinvccode,2) not in ('01','05','06') 汇总数据: select sum(iainquantity),sum(isnull(iainprice,0)),sum(iaoutprice) from ia_subsidiary a join inventory b on a.cinvcode=b.cinvcode where a.imonth=10 and cpzid is not null and cinvhead='140309' and left(cinvccode,2) not in ('01','05','06') 3、原材料大类生成凭证数据 select sum(iainquantity),sum(isnull(iainprice,0)),sum(iaoutprice) from ia_subsidiary a join inventory b on a.cinvcode=b.cinvcode where a.imonth=10 and cpzid is not null and cinvhead='140309' and left(cinvccode,2) in ('01','05','06') 存货原材料分类的汇总=原材料分类已生成凭证数据+原材料分类未生成凭证数据,和总帐借贷对比需要总帐数据去除应付生成凭证数据 【注意事项】修改前请务必做好数据备份;由于网站的关系,上述语句中的标点符号 ‘ % + 必需在输入法为英文的状态下重新录入后再执行 |
相关补丁: | |
版本: | U8 V10.0 |
模块: | 存货管理 |
产品: | 供应链 |
问题名称: | 存货原材料与总账原材料对账不平 |
最后更新: | 2012-02-11 23:17:28 |