"""Generate the default freight shipment upload Excel template.""" from __future__ import annotations from pathlib import Path from openpyxl import Workbook HEADERS = [ "客户名称", "客户代码", "收货地址", "要求交期", "料号", "发货数量", "单位", "备注", ] def main() -> None: root = Path(__file__).resolve().parents[1] out = root / "templates" / "freight_shipment_upload.xlsx" out.parent.mkdir(parents=True, exist_ok=True) wb = Workbook() ws = wb.active ws.title = "Shipment" ws.append(HEADERS) wb.save(out) print(f"Wrote {out}") if __name__ == "__main__": main()