Process LBC/BlindsByPost order files and DHL airway bills (AWBs). Matches order spreadsheets to AWB records by date, renames files with AWB prefixes, organizes into subfolders, and generates consolidated outputs for invoicing. Use when: processing new AWB shipment files; reconciling Zerolux or Tfpleated order files against DHL airway bills; splitting shipments by despatch month or surcharge band.
The agent needs two things:
If the AWB data is provided via file path, confirm the path exists before proceeding. If pasting directly, the agent should save it to a working location and reference it from there.
Before making any changes:
AWB: 9355908170)Dispatch Date: 27/03/2026)---BlindsByPost-DD-MM-YYYY --- ...)BlindsByPost-DD-MM-YYYY) and FH (BlindsByPost-FH-DD-MM-YYYY) entriesKey rules:
tfpleated_ files only match BlindsByPost-FH- entrieszerolux_ files only match standard BlindsByPost-DD-MM-YYYY entriesBefore renaming, verify that every carton/order line in the AWBs has a corresponding file in the BBP folder:
zerolux_orders_YYYY-MM-DD.xlsx or tfpleated_orders_YYYY-MM-DD.xlsx existsAlways do a dry run first. Output a table showing:
| Original File Name | Matched Date | AWB Number | New File Name |
|---|
For files with no match, show No match in the AWB column.
Ask the user to confirm before proceeding.
On user confirmation:
AWBNUMBER_original_filename.xlsx9184073452/)_airwaybill.txt file inside each AWB subfolder containing:
For AWBs provided manually (not in the original AWBs.txt file), create the _airwaybill.txt from the content the user pasted.
After organizing:
master_airwaybill.txt — all carton lines from all AWB subfolders, tab-separated:
---BlindsByPost-21-03-2026 --- 191.5 x 18 x 18 (12.6kg) --- CHARGEABLE: 13kg)Split by despatch month (from Dispatch Date: in each AWB):
master_airwaybill_MARCH.txt — lines from AWBs despatched in Marchmaster_airwaybill_APRIL.txt — lines from AWBs despatched in AprilIf a separate ZeroLux Orders folder exists with copies of the same files:
zerolux_orders_2026-03-17.xlsx)invoiced_ (e.g. invoiced_zerolux_orders_2026-03-17.xlsx)For the order spreadsheets inside each AWB subfolder:
zerolux_ and tfpleated_ (they have different column structures).txt:
If surcharge percentages apply to the April/despatch period:
Dispatch Date: of each AWB to determine its surcharge %master_airwaybill_APRIL_39pct.txt, master_airwaybill_APRIL_46pct.txt)| Flag | Action |
|---|---|
| Future date in AWB (e.g. June 2026) | Likely typo — flag, exclude from matching, ask user to confirm correct date |
| Same date under multiple AWBs | Use first AWB only |
| tfpleated file but no FH entry in AWB | Flag as unmatched |
| .DS_Store files | Ignore — do not process |
| AWB with no matching files | Still create subfolder and _airwaybill.txt |
At the end of processing, report: