purchase_order => qr/^RFF\+ON:(\S+)/,
invoice_ident => qr/^BGM\+380\+([^\+]+)/,
total_billed => qr/^MOA\+86:([^:]+)/,
- invoice_date => qr/^DTM\+137:([^:]+)/
+ invoice_date => qr/^DTM\+137:([^:]+)/, # This is really "messge date"
+ package_code => qr/^GIN\+BJ\+([^:]+)/,
+ lading_number => qr/^RFF\+BM:([^:]+)/
);
my %edi_li_fields = (
avail_status => qr/^FTX\+LIN\++([^:]+):8B:28/,
# "1B" codes are deprecated, but still in use.
# Pretend it's "12B" and it should just work
- order_status => qr/^FTX\+LIN\++([^:]+):12?B:28/
+ order_status => qr/^FTX\+LIN\++([^:]+):12?B:28/,
+ # DESADV messages have multiple PO ID's, one RFF+ON per LIN.
+ purchase_order => qr/^RFF\+ON:(\S+)/
);
my %edi_li_ident_fields = (