Add a bill
purch_add_billRecord a bill a vendor sent: who, their number, the dates, the amount. It waits for a person to approve paying it; nothing is paid from here. You were handed a vendor's invoice (a PDF, a photo, an email). Record what it says: the vendor's name, their invoice number, the bill date, the due date (or the days they give), the amount and currency as printed, and the category in the person's words. Never invent a number or a date; empty beats guessed. The same vendor and number is refused a second time, so a bill forwarded twice is caught. Then tell the person it is waiting for their approval: only a person approves paying a bill (purch_approve_bill), and the payment itself happens in their bank. purch_payables shows what is coming due against the cash on their latest statement. Effects: bill recorded, waiting for approval.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | The total due, as printed. In cents (integer minor units) — 1250 means $12.50. | |
| number | No | The vendor's own invoice number, as printed. | |
| reason | No | Where it came from: "emailed by Acme on the 3rd". | |
| vendor | Yes | The vendor's name as a person would say it (Acme Supply). | |
| category | No | What it is for, in the person's words (supplies, contractor, rent). | |
| currency | No | ISO 4217, as printed. Defaults to the company currency. | |
| due_date | No | When it is due, as printed. ISO date, YYYY-MM-DD. | |
| bill_date | Yes | The date on the bill. ISO date, YYYY-MM-DD. | |
| file_hash | No | A hash of that file, if you have one. | |
| file_name | No | The file you were handed, for the record. The file itself stays with the person. | |
| terms_days | No | Or the days the bill gives (30 for net 30), when it prints no due date. | |
| description | No | A line about it, if the bill has one. |