Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProAn invoice date and payment terms such as net 30, end of month or due on receipt that work out the due date and optionally move a weekend due date to the next working day. Use this when an invoice states terms and the due date must be calculated, not typed.
Derived from this item’s props table, because it declares no controls of its own. This item has no standalone playground, so changes update the code, the share link and the AI prompt.
Use it when an invoice states terms and the due date must be calculated, not typed.
Do not use it for fixed deadlines; use deadline-with-end-of-day.
This item is part of tealmac UI Pro
The source for this item installs with a Pro licence key. Log in with your key to see the install command, or read the Pro setup page.
| Prop | Type | Default | Description |
|---|---|---|---|
| invoiceDate / onChange | string | today | Invoice date. |
| terms | { id; label; days?; eom? }[] | On receipt, Net 15/30/60, EOM+30 | Terms offered. |
| onValueChange | (result: { invoiceDate; termsId; dueDate }) => void | - | The calculated due date. |
The pattern ships with a Testing Library test (payment-terms-due-date.test.tsx) that covers net terms, end of month, weekend roll-forward and the callback.