Calculate an invoice due date
calculate_invoice_due_dateCalculate the date an invoice is due from its date and the payment terms (on receipt, a number of days, end of month, days after month end, a day of the following month, or the statutory 30-day default), with the weekday and whether the terms exceed the statutory limit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Days, for net and net-end-of-month terms | |
| terms | Yes | The payment terms | |
| customer | No | ||
| dayOfMonth | No | Day, for day-of-following-month terms | |
| invoiceDate | Yes | Invoice date, or the day the customer received it (YYYY-MM-DD) |