How Payment Terms Default on Invoices
Source: workshop-client/src/app/invoices/invoice.service.ts
- Customer's default_payment_terms takes precedence (if not 'NONE')
- Falls back to company default if customer has no terms set
- Cash vs Account detection based on customer's cash_or_account flag ('C' = Cash)
- Cash invoices trigger different processing workflows
Support scenarios
- "Invoice has wrong payment terms" → inherited from customer profile, not company default
- "Why is this a cash invoice?" → customer record flagged as cash customer