- addBillingInfo: price = GRAINS_WAGE rate and fine price = GRAINS_FINE rate of the
claim's cargo type on the loading date; final cost = wage - shortage fine; invoice
cargo-family check (38 / 74 / 39+41); archived-invoice and duplicate-permit checks;
first billing creates the INVOICE row; unclosed permit is closed with a "Billing Close."
event; company name from NTP_TENDERS_COMPANIES; raw permit weights no longer stored.
- getBillingInfo: permits since 2020, tender company name, last invoice per user, already-billed check.
- "رقم المطالبة" is stored in INVOICENUMBER and "رقم المستند" in SERIALNO (digits only).
- Wages grid shows the wage with 4 decimals; invoices grid gets a company-number column;
count / sent / received weight columns centred.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>