|
@ -101,13 +101,18 @@ namespace Win_in.Sfs.Scp.WebApi |
|
|
{ |
|
|
{ |
|
|
var barcodes = await scpAsnManager.GetBarcodesAsync(siteCode, asn.AsnBillNum); |
|
|
var barcodes = await scpAsnManager.GetBarcodesAsync(siteCode, asn.AsnBillNum); |
|
|
|
|
|
|
|
|
|
|
|
var noPoAsn = CreateNoPoAsn(asn, barcodes); |
|
|
|
|
|
asnX12List.Add(noPoAsn); |
|
|
|
|
|
|
|
|
|
|
|
//埃驰要求不传托盘信息 @20220905
|
|
|
|
|
|
barcodes.ForEach(p => p.PalletCode = ""); |
|
|
|
|
|
//埃驰要求不传托盘信息 @20220905
|
|
|
|
|
|
|
|
|
if (asn.AsnBillNum.StartsWith(_options.QadAsnPrefix))//ASN to QAD
|
|
|
if (asn.AsnBillNum.StartsWith(_options.QadAsnPrefix))//ASN to QAD
|
|
|
{ |
|
|
{ |
|
|
var asnX12 = CreateX12Asn(site, asn, barcodes); |
|
|
var asnX12 = CreateX12Asn(site, asn, barcodes); |
|
|
asnX12List.Add(asnX12); |
|
|
asnX12List.Add(asnX12); |
|
|
} |
|
|
} |
|
|
var noPoAsn = CreateNoPoAsn(asn, barcodes); |
|
|
|
|
|
asnX12List.Add(noPoAsn); |
|
|
|
|
|
|
|
|
|
|
|
Logger.LogInformation($"{siteCode}:{asn.Id} {asn.AsnBillNum} was loaded"); |
|
|
Logger.LogInformation($"{siteCode}:{asn.Id} {asn.AsnBillNum} was loaded"); |
|
|
} |
|
|
} |
|
|