|
@ -4984,12 +4984,13 @@ a.ExtensionID |
|
|
string chekksql = @"select c.EATTRIBUTE1 FROM ICSSDN a
|
|
|
string chekksql = @"select c.EATTRIBUTE1 FROM ICSSDN a
|
|
|
INNER JOIN ICSInventory c on a.InvCode=c.InvCode and a.WorkPoint=c.WorkPoint |
|
|
INNER JOIN ICSInventory c on a.InvCode=c.InvCode and a.WorkPoint=c.WorkPoint |
|
|
WHERE a.SDNCode='{0}' AND a.Sequence='{2}' AND a.WorkPoint='{1}' and c.AmountEnable='1'";
|
|
|
WHERE a.SDNCode='{0}' AND a.Sequence='{2}' AND a.WorkPoint='{1}' and c.AmountEnable='1'";
|
|
|
chekksql = string.Format(chekksql, item.TransCode, item.WorkPoint, item.TransSequence); |
|
|
|
|
|
|
|
|
chekksql = string.Format(chekksql, item.TransCode, item.WorkPoint, seq); |
|
|
DataTable dta = DBHelper.SQlReturnData(chekksql, cmd); |
|
|
DataTable dta = DBHelper.SQlReturnData(chekksql, cmd); |
|
|
if (dta.Rows.Count > 0) |
|
|
if (dta.Rows.Count > 0) |
|
|
{ |
|
|
{ |
|
|
itemInfo.CurrentQuantity = (decimal.Parse(itemInfo.CurrentQuantity) * decimal.Parse(dta.Rows[0]["EATTRIBUTE1"].ToString())).ToString(); |
|
|
itemInfo.CurrentQuantity = (decimal.Parse(itemInfo.CurrentQuantity) * decimal.Parse(dta.Rows[0]["EATTRIBUTE1"].ToString())).ToString(); |
|
|
} |
|
|
} |
|
|
|
|
|
log.Debug("本次数量:" + itemInfo.CurrentQuantity); |
|
|
//更新源头单据数量
|
|
|
//更新源头单据数量
|
|
|
ICSSalesService.AMSalesShipmentDoc(item.TransCode, seq, itemInfo.CurrentQuantity, item.WorkPoint, cmd, language); |
|
|
ICSSalesService.AMSalesShipmentDoc(item.TransCode, seq, itemInfo.CurrentQuantity, item.WorkPoint, cmd, language); |
|
|
|
|
|
|
|
|