Fix for single order single line imports.
parent
9184f0dce5
commit
f0d8262272
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue