Fix for single order single line imports.

master
bleeson 2025-09-12 10:23:43 -07:00
parent 9184f0dce5
commit f0d8262272
1 changed files with 5 additions and 0 deletions

View File

@ -500,6 +500,11 @@ def process_file(edi_filename: pathlib.Path, x3_customer_mapping):
), ),
subdetail, subdetail,
) )
if fields[0] == 'SE':#end of file
if po_number != '':#po number is big O0221749
pprint.pprint('assigned')
warehouse_shipment.header.yclippership = cust_po_number
warehouse_shipment.header.ylicplate = f'{po_number}'
#pprint.pprint(warehouse_shipment.header.ylicplate) #pprint.pprint(warehouse_shipment.header.ylicplate)
warehouse_shipment.header.shidat = datetime.datetime.strptime( warehouse_shipment.header.shidat = datetime.datetime.strptime(
shipping_date, "%Y%m%d") shipping_date, "%Y%m%d")