存货删除或者合并的测试方法

存货删除或者合并的测试方法

问题现象:存货删除或者合并的测试方法?

情况一:

存货的编码错了,但是不能修改。

更改方法:

1 新建一个 你认为正确编码的存货,用存货复制功能即可。

2 进入sql 用update 更新所有相关存货编码的单据

3 删除错误编码的存货

UPDATE的表有:其中1160111193 是错误的编码 116011206 是正确的新增编码

update [UFDATA_999_2012].[dbo].[InvPosition] /*存货货位*/

set [cInvCode]='116011206'

where [cInvCode]='1160111193'


update [UFDATA_999_2012].[dbo].[DispatchLists] /*存货发货*/

set [cInvCode]='116011206'

where [cInvCode]='1160111193'


update [UFDATA_999_2012].[dbo].[SO_SODetails] /*销售订单*/

set [cInvCode]='116011206'

where [cInvCode]='1160111193'


update [UFDATA_999_2012].[dbo].[PriceJustify] /*销售报价单*/

set [cInvCode]='116011206'

where [cInvCode]='1160111193'


update [UFDATA_999_2012].[dbo].[SA_CusUPrice] /*销售价格单*/

set [cInvCode]='116011206'

where [cInvCode]='1160111193'


update [UFDATA_999_2012].[dbo].[SA_CusPriceJustDetail] /*销售价格子表单*/

set [cInvCode]='116011206'

where [cInvCode]='1160111193'


update [UFDATA_999_2012].[dbo].[PO_Podetails] /*采购订单*/

set [cInvCode]='116011206'

where [cInvCode]='1160111193'


update [UFDATA_999_2012].[dbo].[PU_ArrivalVouchs]/*采购到货单*/

set [cInvCode]='116011206'

where [cInvCode]='1160111193'


update [UFDATA_999_2012].[dbo].[RdRecords] /*收发存*/

set [cInvCode]='116011206'

where [cInvCode]='1160111193'


update [UFDATA_999_2012].[dbo].[SaleBillVouchs] /*销售发票*/

set [cInvCode]='116011206'

where [cInvCode]='1160111193'


update [UFDATA_999_2012].[dbo].[PurBillVouchs] /*采购发票*/

set [cInvCode]='116011206'

where [cInvCode]='1160111193'


update [UFDATA_999_2012].[dbo].[SA_CusInvLimited] /*允限销*/

set [cInvCode]='116011206'

where [cInvCode]='1160111193'


update [UFDATA_999_2012].[dbo].[CurrentStock] /*现存量表*/

set [cInvCode]='116011206'

where [cInvCode]='1160111193'

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

二 两个存货 应该是一个存货。

那就只要 更新掉 你不像要的产品的 以上表单,再整理一次 现存量。

最后到基础档案中删除 库存就基本搞定 存货的合并了。


第二种方法 也可以用实施导入工具中的存货清理来做,不过这个我不建议做。因为每个帐套启用的单据不一样。

点击这里复制本文地址 以上内容由用友财务软件免费试用版下载整理呈现,请务必在转载分享时注明本文地址!如对内容有疑问,请联系我们,谢谢!

支持Ctrl+Enter提交
qrcode

免费财务软件官网 © All Rights Reserved.  

copyright © 2011-2021 www.ufidaft.com 赣ICP备20006209号-5

答疑咨询 在线客服 免费试用
×
服务图片