|
@ -12,6 +12,7 @@ using Win_in.Sfs.Wms.DataExchange.Domain.Fawtyg.Tyrp; |
|
|
using Win_in.Sfs.Wms.DataExchange.Domain.Shared; |
|
|
using Win_in.Sfs.Wms.DataExchange.Domain.Shared; |
|
|
using Win_in.Sfs.Wms.DataExchange.WMS.UnplannedReceiptNote; |
|
|
using Win_in.Sfs.Wms.DataExchange.WMS.UnplannedReceiptNote; |
|
|
using Win_in.Sfs.Wms.Store.Application.Contracts; |
|
|
using Win_in.Sfs.Wms.Store.Application.Contracts; |
|
|
|
|
|
using Win_in.Sfs.Wms.Store.Domain; |
|
|
|
|
|
|
|
|
namespace Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent.Outgoing; |
|
|
namespace Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent.Outgoing; |
|
|
|
|
|
|
|
@ -112,12 +113,19 @@ IUnplannedReceiptRequestAppService unplannedReceiptRequestAppService ) |
|
|
DestinationSystem = EnumSystemType.ERP.ToString(), |
|
|
DestinationSystem = EnumSystemType.ERP.ToString(), |
|
|
DestinationDataId = "", |
|
|
DestinationDataId = "", |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
if (purchaseOrder.wmsoutm_type == "4036") |
|
|
|
|
|
{ |
|
|
|
|
|
detail.Qty = detail.Qty * -1; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
outgoingDetailToExternal.SetEffectiveDate(outgoingFromWms.EffectiveDate); |
|
|
outgoingDetailToExternal.SetEffectiveDate(outgoingFromWms.EffectiveDate); |
|
|
outgoingDetailToExternal.SourceDataContent = JsonSerializer.Serialize(detail); |
|
|
outgoingDetailToExternal.SourceDataContent = JsonSerializer.Serialize(detail); |
|
|
var purchaseOrderDetail = BuildDataInterfaceDetail(tyrpNumber, detail,wmsReceipt.Number); |
|
|
var purchaseOrderDetail = BuildDataInterfaceDetail(tyrpNumber, detail,wmsReceipt.Number); |
|
|
outgoingDetailToExternal.DestinationDataContent = JsonSerializer.Serialize(purchaseOrderDetail); |
|
|
outgoingDetailToExternal.DestinationDataContent = JsonSerializer.Serialize(purchaseOrderDetail); |
|
|
outgoingToExternalList.Add(outgoingDetailToExternal); |
|
|
outgoingToExternalList.Add(outgoingDetailToExternal); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#endregion
|
|
|
#endregion
|
|
|
} |
|
|
} |
|
|
//插入到中间表OutgoingToExternal
|
|
|
//插入到中间表OutgoingToExternal
|
|
|