|
|
@ -11343,10 +11343,7 @@ BEGIN |
|
|
|
{ |
|
|
|
BusinessCode = TransTypeEnum.PurchaseReceiveDoctNegative.GetDescription<DBValue>(); |
|
|
|
//更新源头单据数量
|
|
|
|
ICSPurchaseService.PurchaseReceiveDoctNegative(item.TransCode, item.TransSequence, item.Quantity, item.WorkPoint, cmd, language, item.TransID); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ICSPurchaseService.PurchaseReceiveDoctNegative(item.TransCode, item.TransSequence, item.Quantity, item.WorkPoint, item.Logistics, cmd, language, item.TransID); |
|
|
|
foreach (var itemInfo in item.detail) |
|
|
|
{ |
|
|
|
//出库
|
|
|
@ -11899,7 +11896,7 @@ BEGIN |
|
|
|
{ |
|
|
|
BusinessCode = TransTypeEnum.PurchaseReceiveDoctNegative.GetDescription<DBValue>(); |
|
|
|
//更新源头单据数量
|
|
|
|
ICSPurchaseService.PurchaseReceiveDoctNegative(item.TransCode, item.TransSequence, item.Quantity, item.WorkPoint, cmd, language, item.TransID); |
|
|
|
ICSPurchaseService.PurchaseReceiveDoctNegative(item.TransCode, item.TransSequence, item.Quantity, item.WorkPoint, item.Logistics, cmd, language, item.TransID); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -12454,7 +12451,7 @@ BEGIN |
|
|
|
{ |
|
|
|
BusinessCode = TransTypeEnum.PurchaseReceiveDoctNegative.GetDescription<DBValue>(); |
|
|
|
//更新源头单据数量
|
|
|
|
ICSPurchaseService.PurchaseReceiveDoctNegative(item.TransCode, item.TransSequence, item.Quantity, item.WorkPoint, cmd, language, item.TransID); |
|
|
|
ICSPurchaseService.PurchaseReceiveDoctNegative(item.TransCode, item.TransSequence, item.Quantity, item.WorkPoint, item.Logistics, cmd, language, item.TransID); |
|
|
|
|
|
|
|
foreach (var itemInfo in item.detail) |
|
|
|
{ |
|
|
@ -12986,11 +12983,11 @@ BEGIN |
|
|
|
throw new Exception(language.GetNameByCode("WMSAPIInfo010")); //"送货单子表信息更新失败!");
|
|
|
|
} |
|
|
|
|
|
|
|
sql = @"UPDATE ICSInventoryLot SET Quantity='{2}'
|
|
|
|
sql = @"UPDATE ICSInventoryLot SET Quantity='{2}',EATTRIBUTE15='{3}'
|
|
|
|
WHERE LotNo='{0}' AND WorkPoint='{1}'";
|
|
|
|
if (itemInfo.IsUrgency == "1") |
|
|
|
sql = @"UPDATE ICSInventoryLot SET Quantity='{2}' ,eattribute6 = '1' WHERE LotNo='{0}' AND WorkPoint='{1}'"; |
|
|
|
sql = string.Format(sql, itemInfo.LotNo, item.WorkPoint, itemInfo.Quantity); |
|
|
|
sql = string.Format(sql, itemInfo.LotNo, item.WorkPoint, itemInfo.Quantity, itemInfo.locationCode); |
|
|
|
|
|
|
|
if (!DBHelper.ExecuteNonQuery(sql, cmd)) |
|
|
|
{ |
|
|
@ -16265,8 +16262,9 @@ END"; |
|
|
|
foreach (var itemInfo in item.detail) |
|
|
|
{ |
|
|
|
sql = @"UPDATE ICSOASNDetail SET ODNQuantity=ISNULL(ODNQuantity, 0)+'{2}'
|
|
|
|
WHERE LotNo='{0}' AND WorkPoint='{1}'";
|
|
|
|
sql = string.Format(sql, itemInfo.LotNo, item.WorkPoint, itemInfo.Quantity); |
|
|
|
WHERE LotNo='{0}' AND WorkPoint='{1}' |
|
|
|
UPDATE ICSInventoryLot SET EATTRIBUTE15='{3}' WHERE LotNo='{0}' AND WorkPoint='{1}'";
|
|
|
|
sql = string.Format(sql, itemInfo.LotNo, item.WorkPoint, itemInfo.Quantity, itemInfo.locationCode); |
|
|
|
|
|
|
|
if (!DBHelper.ExecuteNonQuery(sql, cmd)) |
|
|
|
{ |
|
|
@ -32791,7 +32789,7 @@ END as NEWLotNo |
|
|
|
//修改送货单到货数量
|
|
|
|
foreach (var itemInfo in item.detail) |
|
|
|
{ |
|
|
|
string detailSql = @"UPDATE ICSInventoryLot SET EATTRIBUTE15='' WHERE LotNo='{0}' AND WorkPoint='{4}'
|
|
|
|
string detailSql = @"UPDATE ICSInventoryLot SET EATTRIBUTE15='{6}' WHERE LotNo='{0}' AND WorkPoint='{4}'
|
|
|
|
IF EXISTS(SELECT 1 FROM ICSInventoryLotDetail WHERE LotNo='{0}' AND WorkPoint='{4}') |
|
|
|
BEGIN |
|
|
|
UPDATE ICSInventoryLotDetail SET TransCode='{1}',TransSequence='{2}',TransID='{5}' WHERE LotNo='{0}' AND WorkPoint='{4}' |
|
|
|