问题现象: | 客户希望能够只在销售出库是进行序列号的登记,而不希望非常严格的控制,有使用售后模块。 |
问题原因: | |
解决方案: | 您好, 此问题【经查看数据/测试】现做如下分析与答复: 【解决方案】 可以将仓库属性设置为不控制序列号实现出库不做序列号严格校验。再执行以下语句 if exists (select name from sysobjects where object_name(id) =N'trg_saleout_verify_sn') drop trigger trg_saleout_verify_sn go create trigger trg_saleout_verify_sn on rdrecord for update as set nocount on if update(chandler) begin if exists (select top 1 b.cinvcode from inserted i inner join rdrecords b with (nolock) on i.id = b.id inner join inventory k with (nolock) on b.cinvcode = k.cinvcode where i.cvouchtype ='32' and isnull(i.chandler,'') <> '' and isnull(k.bSerial,0) =1 and abs(isnull(b.iquantity,0))-abs(isnull(b.iinvsncount,0))> 0) raiserror 9999997 N'销售出库单序列号管理存货序列号未录入!' end go 【注意事项】修改前请务必做好数据备份; 【提示】如有问题,敬请及时邮件联系 |
相关补丁: | |
版本: | 8.90 |
模块: | 库存管理 |
产品: | 供应链 |
问题名称: | 【双百项目】序列号控制 |
最后更新: | 2011-10-24 23:17:11 |