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")