Browse Source

[fix]去掉Tare层,修改SE count计算方式

master
贾荣国 2 years ago
parent
commit
1cd06de78c
  1. 4
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Agent/Win_in.Sfs.Scp.WebApi.Agent.csproj
  2. 2
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Agent/appsettings.json
  3. 3
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain.Shared/ASN_X12/Shipments/ShipmentExtensions.cs
  4. 3
      WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain.Shared/ASN_X12/Tares/TareExtensions.cs
  5. 3
      WebApiService/src/Win_in.Sfs.Scp.v1.EntityFrameworkCore/Repositories/TsBarcodeRepository.cs

4
WebApiService/src/Win_in.Sfs.Scp.WebApi.Agent/Win_in.Sfs.Scp.WebApi.Agent.csproj

@ -3,8 +3,8 @@
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework> <TargetFramework>net5.0</TargetFramework>
<AssemblyVersion>1.22.0820.1</AssemblyVersion> <AssemblyVersion>1.22.0907.1</AssemblyVersion>
<FileVersion>1.22.0820.1</FileVersion> <FileVersion>1.22.0907.1</FileVersion>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

2
WebApiService/src/Win_in.Sfs.Scp.WebApi.Agent/appsettings.json

@ -58,7 +58,7 @@
{ {
"Code": "T8", "Code": "T8",
"Receiver": "00T8USUPPU", "Receiver": "00T8USUPPU",
"MinUid": 200 "MinUid": 1024
}, },
{ {
"Code": "T5", "Code": "T5",

3
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain.Shared/ASN_X12/Shipments/ShipmentExtensions.cs

@ -77,7 +77,8 @@ public static class ShipmentExtensions
orphanItem.HL.HL01 = shipNotice.GetNextHl(orphanItem.SN1.Qty); orphanItem.HL.HL01 = shipNotice.GetNextHl(orphanItem.SN1.Qty);
orphanItem.HL.HL02 = shipment.HL.HL01; orphanItem.HL.HL02 = shipment.HL.HL01;
shipment.OrphanItems.Add(orphanItem); shipment.OrphanItems.Add(orphanItem);
shipNotice.AddSegment(5+orphanItem.REF_LS_LTs.Count*2); // shipNotice.AddSegment(5+orphanItem.REF_LS_LTs.Count*2);
shipNotice.AddSegment(5);
return shipment; return shipment;
} }

3
WebApiService/src/Win_in.Sfs.Scp.WebApi.Domain.Shared/ASN_X12/Tares/TareExtensions.cs

@ -23,7 +23,8 @@ public static class TareExtensions
item.HL.HL01 = shipNotice.GetNextHl(item.SN1.Qty); item.HL.HL01 = shipNotice.GetNextHl(item.SN1.Qty);
item.HL.HL02 = tare.HL.HL01; item.HL.HL02 = tare.HL.HL01;
tare.Items.Add(item); tare.Items.Add(item);
shipNotice.AddSegment(5+item.REF_LS_LTs.Count*2); // shipNotice.AddSegment(5+item.REF_LS_LTs.Count*2);
shipNotice.AddSegment(5);
return tare; return tare;
} }

3
WebApiService/src/Win_in.Sfs.Scp.v1.EntityFrameworkCore/Repositories/TsBarcodeRepository.cs

@ -21,6 +21,9 @@ namespace Win_in.Sfs.Scp.v1.EntityFrameworkCore
var list = await dbSet var list = await dbSet
.Where(p =>p.Site==site && p.BillNum == billNum) .Where(p =>p.Site==site && p.BillNum == billNum)
.ToListAsync(); .ToListAsync();
//埃驰要求不传托盘信息 @20220905
list.ForEach(p=>p.PalletCode="");
//埃驰要求不传托盘信息 @20220905
return list; return list;
} }
} }

Loading…
Cancel
Save