存货和总帐对不上 问题描述:客户业务为:采购入库,其他入库(0单价),销售出库,其他出库 采用月初回冲方式。 采购发票在应付中制单。 在存货中制单的为:采购入库单(暂估),销售普通发票,销售专用 发票,红字回冲单,蓝字回冲单(暂估) 6月份总帐和收发存汇总表的结存是平的(相差几分钱是以前的遗留) 7月份总帐的’库存商品’科目跟收发存汇总表对帐不平 问题原因:问题一: 收发存汇总表:7月期初对帐相符,说明7月份收入、发出金额有问题,查询库存商品科目总帐,数值分别如下: 收发存汇总表:收入12293872.38,发出11654527.10 库存商品科目总帐:借方12408056.14,贷方11654527.10 从上述数值看收入对不上。 先从存货与总帐对帐查看: 存货系统借方:1278313.40,总帐系统借方:12408056.14 存货系统借方与收发存汇总表收入数对不上,说明有未生成凭证的记录。 SELECT SUM(iAInPrice) AS SUM FROM IA_Subsidiary WHERE (iMonth = 7) AND (cPZID IS NULL) 11015558.98+1278313.40=12293872.38 问题二:查询存货明细账中所有结算报销的入库单和蓝字回冲单金额与本月采购发票总金额不等。 --查询存货明细账中所有结算报销的入库单和蓝字回冲单金额 select sum(iainprice),sum(iainquantity) from ia_subsidiary where imonth=7 and ((cvoutype='01' and bflag<>1) or (cvoutype='30' and bflag=2)) --11070768.3800 4549.0 --查询本月采购发票总金额 SELECT sum(isvprice),sum(isvquantity) FROM PurSettleVouchs INNER JOIN PurSettleVouch ON PurSettleVouchs.PSVID = PurSettleVouch.PSVID WHERE (PurSettleVouch.dSVDate >= CONVERT(DATETIME, '2004-07-01 00:00:00', 102)) AND (PurSettleVouch.dSVDate <= CONVERT(DATETIME, '2004-07-31 00:00:00', 102)) --11129742.7400 4564.0 两者相差58974.36,15 对比缺少的id号 SELECT PurSettleVouchs.iRdsID FROM PurSettleVouchs INNER JOIN PurSettleVouch ON PurSettleVouchs.PSVID = PurSettleVouch.PSVID WHERE (PurSettleVouch.dSVDate >= CONVERT(DATETIME, '2004-07-01 00:00:00', 102)) AND (PurSettleVouch.dSVDate <= CONVERT(DATETIME, '2004-07-31 00:00:00', 102)) and (PurSettleVouchs.iRdsID not in ( SELECT id FROM IA_Subsidiary WHERE (iMonth = 7) AND (cVouType = '01') AND (bFlag <> 1) OR (iMonth = 7) AND (cVouType = '30') AND (bFlag = 2))) iRdsID=20819 036893单据,存货明细账ID=20819的记录在7月份结算后,没有在存货系统中暂估结算成本处理。 解决方案:游客无权查看 相关补丁:模块:存货核算产品:850 851问题名称:存货和总帐对不上更新时间:2005-06-28 00:00:00 有用 没用111 浏览 分类 U8知识库用友U8知识库(旧)畅捷通知识库用友NC知识库用友U9知识库用友政务知识库致远OA知识库U8Cloud知识库