Browse Source

委外超领

master
姜鹏 8 months ago
parent
commit
103f132455
  1. 2
      ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSOutsourcingService.cs
  2. 2
      ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs

2
ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSOutsourcingService.cs

@ -56,7 +56,7 @@ namespace ICSSoft.DataProject
IF EXISTS(SELECT a.ID FROM ICSOOPick a
INNER JOIN ICSOutsourcingOrder b ON a.OODetailID=b.OODetailID AND a.WorkPoint=b.WorkPoint
WHERE b.OOCode='{0}' AND b.Sequence+'~'+a.Sequence='{3}' and b.WorkPoint='{1}' AND
dbo.GetExcessQty(a.InvCode, a.Sequence, b.OOCode, a.WorkPoint,'{4}')<a.IssueQuantity)
dbo.GetExcessQty(a.InvCode, b.Sequence+'~'+a.Sequence, b.OOCode, a.WorkPoint,'{4}')<a.IssueQuantity)
BEGIN
RAISERROR('" + language.GetNameByCode("WMSAPIInfo091") + @"',16,1);
RETURN

2
ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs

@ -300,7 +300,7 @@ b.InvUnit,
if (TransType == TransTypeEnum.OutsourcingIssueDoc.GetDescription())
{
enableCode = "Over004";
excessQtySql = ",(dbo.GetExcessQty(a.InvCode, a.Sequence, b.OOCode, a.WorkPoint,'" + enableCode + "')) AS excessQty";
excessQtySql = ",(dbo.GetExcessQty(a.InvCode, b.Sequence+'~'+a.Sequence, b.OOCode, a.WorkPoint,'" + enableCode + "')) AS excessQty";
#region 委外备料SQL
sqls = @" select
c.OOCode as Code,

Loading…
Cancel
Save