NTP_V2/src/NTP.Domain/Grains
Samer Salameh e5159c7383 Billing: port new Invoice.cfc rules; invoice/document number mapping; grid tweaks
- 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>
2026-11-16 16:54:31 +03:00
..
Orders Billing: port new Invoice.cfc rules; invoice/document number mapping; grid tweaks 2026-11-16 16:54:31 +03:00
Permits Initial commit: NTP V2 (.NET 10 API + React web) with Dev, QA and Production environments 2026-11-11 11:56:48 +03:00
Registry Initial commit: NTP V2 (.NET 10 API + React web) with Dev, QA and Production environments 2026-11-11 11:56:48 +03:00
Reports Initial commit: NTP V2 (.NET 10 API + React web) with Dev, QA and Production environments 2026-11-11 11:56:48 +03:00