金蝶商贸版业务期末结账提示“在结账时出现错误,结账失败
来源: 添加时间:1970-01-01 访问次数:
问题描述:商贸版 1.1 在业务期末结账时出现错误,错误信息:“在结账时出现错误,结账失败”
问题原因:由于采用批次管理的商品,同一批号的商品,生产日期不一致造成不能结账。
解决思路或方法
备份账套后请参考如下语句处理:
Select fitemid,fbatchno,fauxpropid,min(fkfdate) as
fkfdate,min(fperioddate) as fperioddate
into temp1
from t_cc_stockbillentry
group by fitemid ,fbatchno,fauxpropid
Update a set a.fkfdate=b.fkfdate,a.fperioddate=b.fperioddate from
t_cc_stockbillentry a inner join temp1 b
on a.fitemid=b.fitemid and a.fbatchno=b.fbatchno and
a.fauxpropid=b.fauxpropid
Update a set a.fkfdate=isnull(b.fkfdate,'1900-01-01
00:00:00.000'),a.fperioddate=isnull(b.fperioddate,'1900-01-01
00:00:00.000')
from t_cc_stock a inner join temp1 b
on a.fitemid=b.fitemid and a.fbatchno=b.fbatchno and
a.fauxpropid=b.fauxpropid
Drop table temp1
注意:运行完命令以后需要打上补丁 PT017675,否则以后期间业务结账
可能还会出现此类问题。
版权与免责声明:
1.凡本网注明来源为“本站原创”的所有作品,包括文字与图片,未经本网授权不得转载。违反上述声明者,本网将依法追究法律责任。
2.凡注明"来源:xxx(非本站)"的作品,均转载自其它媒体,本网转载的目的在于传播更多信息,此类稿件并不代表本网观点,本网不承担此类稿件侵权行为的直接责任及连带责任。
3.如因作品内容、版权等需要同本网联系的,请在作品在本网发表之日起30日内联,否则视为放弃相关权利