From f0d8262272ff28ece1272336173f92bda2f19d42 Mon Sep 17 00:00:00 2001 From: bleeson Date: Fri, 12 Sep 2025 10:23:43 -0700 Subject: [PATCH] Fix for single order single line imports. --- edi_867_to_table.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/edi_867_to_table.py b/edi_867_to_table.py index 757d654..996e411 100644 --- a/edi_867_to_table.py +++ b/edi_867_to_table.py @@ -500,6 +500,11 @@ def process_file(edi_filename: pathlib.Path, x3_customer_mapping): ), 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) warehouse_shipment.header.shidat = datetime.datetime.strptime( shipping_date, "%Y%m%d")