|
@ -2028,7 +2028,28 @@ a.ExtensionID |
|
|
completeWhere = @" a.ReturnCode='{0}' AND a.WorkPoint='{1}' AND a.Status<>'3' AND a.Quantity>ISNULL(a.ReturnQuantity,0)"; |
|
|
completeWhere = @" a.ReturnCode='{0}' AND a.WorkPoint='{1}' AND a.Status<>'3' AND a.Quantity>ISNULL(a.ReturnQuantity,0)"; |
|
|
} |
|
|
} |
|
|
#endregion
|
|
|
#endregion
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region 其他
|
|
|
|
|
|
#region 开立到货单
|
|
|
|
|
|
else if (TransType == TransTypeEnum.DeliveryNoticeOpen.GetDescription()) |
|
|
|
|
|
{ |
|
|
|
|
|
columns = @"a.DNCode AS TransCode,
|
|
|
|
|
|
a.DNDetailID AS DetailID, |
|
|
|
|
|
a.DNType AS Type, |
|
|
|
|
|
a.Sequence AS TransSequence, |
|
|
|
|
|
isnull(a.Quantity,0) - isnull(a.RCVQuantity,0) AS IssueQuantity, |
|
|
|
|
|
a.Quantity, |
|
|
|
|
|
a.Amount, |
|
|
|
|
|
a.MUSER AS [User], |
|
|
|
|
|
a.MTIME AS [MTime],";
|
|
|
|
|
|
|
|
|
|
|
|
tableName = @"ICSDeliveryNotice a "; |
|
|
|
|
|
|
|
|
|
|
|
where = @" a.DNCode='{0}' AND a.WorkPoint='{1}' AND a.DNType='1' AND a.Status<>'1'"; |
|
|
|
|
|
|
|
|
|
|
|
singleWhere = @" a.DNCode='{0}' AND a.WorkPoint='{1}'"; |
|
|
|
|
|
} |
|
|
|
|
|
#endregion
|
|
|
#endregion
|
|
|
#endregion
|
|
|
if (string.IsNullOrWhiteSpace(columns) || string.IsNullOrWhiteSpace(tableName) || string.IsNullOrWhiteSpace(where)) |
|
|
if (string.IsNullOrWhiteSpace(columns) || string.IsNullOrWhiteSpace(tableName) || string.IsNullOrWhiteSpace(where)) |
|
|
throw new Exception(language.GetNameByCode("WMSAPIInfo003")); |
|
|
throw new Exception(language.GetNameByCode("WMSAPIInfo003")); |
|
@ -32636,7 +32657,7 @@ END as NEWLotNo |
|
|
FROM ICSInventoryLot a |
|
|
FROM ICSInventoryLot a |
|
|
INNER JOIN ICSInventory b ON a.InvCode = b.InvCode |
|
|
INNER JOIN ICSInventory b ON a.InvCode = b.InvCode |
|
|
INNER JOIN ICSWareHouseLotInfo c ON c.LotNo = a.LotNo |
|
|
INNER JOIN ICSWareHouseLotInfo c ON c.LotNo = a.LotNo |
|
|
INNER JOIN ICSWareHouseLotInfoLog d ON d.LotNo=a.LotNo |
|
|
|
|
|
|
|
|
INNER JOIN ICSWareHouseLotInfoLog d ON d.LotNo=a.LotNo AND (businesscode='6' or businesscode='14' or businesscode='32') |
|
|
LEFT JOIN ICSVendor v ON v.VenCode = a.EATTRIBUTE8 |
|
|
LEFT JOIN ICSVendor v ON v.VenCode = a.EATTRIBUTE8 |
|
|
WHERE |
|
|
WHERE |
|
|
a.lotno LIKE '{0}%' --LEFT('{0}' + '-', CHARINDEX('-', '{0}' + '-') - 1) + '%' |
|
|
a.lotno LIKE '{0}%' --LEFT('{0}' + '-', CHARINDEX('-', '{0}' + '-') - 1) + '%' |
|
|