|
问题现象:在用友8.51erp系统中用友U8版本号:U8.51软件的供应链产品线存货核算模块出现如下问题:存货系统发现与总帐对帐124301科目对不上,在库存系统与存货对帐也对不上。请帮忙解答!
原因分析:数据错误。
解决方案:在用友erp 系统版本U8.51软件中经检查发现在库存系统与存货对帐对不上的原因是由于在参照委托代销发货单生成的委托代销退货单时用户手工修改过退货仓库,造成库存与存货对帐不正常,但总数量正确。已建议用户在做委托代销退货单时不要更改仓库。存货系统与总帐对帐124301科目对不上的原因有如下几方面:1.生成了凭证但存货帐上却没有存货科目,用语句更新即可。2.在总帐中使用存货科目生成了凭证。3.生成凭证时修改过科目或金额。以下附查找及更新语句:--筛选出生成了凭证但存货帐上却没有存货科目的语句:selectcoutno_id,summcasaintoeefromgl_accvouchwhereccode='124301'andmc0groupbycoutno_idselectcoutno_id,isnullsummc,0asddintofffromgl_accvouchwherecoutno_idinselectcpzidfromia_subsidiarywhereimonth='1'andcinvhead='124301'groupbycpzidandccode='124301'andmc0groupbycoutno_idselect*fromeeleftjoinffonee.coutno_id=ff.coutno_id--以下为更新语句:updateia_subsidiarysetcinvhead='124301'wherecpzid='IA0000000001461'andcinvheadisnullupdateia_subsidiarysetcinvhead='124301'wherecpzid='IA0000000002112'--筛选在总帐中使用存货科目生成的凭证selectino_idfromgl_accvouchwherecoutno_id='GL0000000000062'--387号凭证--筛选生成凭证时修改过科目或金额的语句:selectcpzid,isnullsumiainprice,0asaa,isnullsumiaoutprice,0asbbintoaafromia_subsidiarywhereimonth='1'andcinvhead='124301'groupbycpzidselectcoutno_id,isnullsummd,0ascc,isnullsummc,0asddintoccfromgl_accvouchwherecoutno_idinselectcpzidfromia_subsidiarywhereimonth='1'andcinvhead='124301'groupbycpzidandccode='124301'groupbycoutno_idselect*fromaajoincconaa.cpzid=cc.coutno_idwhereaaccorbbdd--有如下8张凭证存在生成时修改过科目及金额253,280,282,316,317,344,422,491。
|
|