Record a bill on this order
p2p_record_vendor_billRecord a vendor's bill against an order, line by line as printed. It is matched against what was ordered and received; a person approves paying it only when it matches. You were handed the vendor's invoice for goods on an order. Record it line by line as printed: the item, the quantity and the price for one, plus the vendor's invoice number and the dates. Never correct a line to make it match; the bill is what the vendor says, and the match exists to show where it differs. The result says whether it matches the order and, when it does not, by how much. Recording is never refused for a mismatch; approving it is. Tell the person what the match says; when it does not match, the answer is a corrected bill from the vendor (record it, and the person rejects the old one) or a person loosening the tolerance with a reason. Effects: bill recorded in Bills, waiting for approval; its lines kept for the 3-way match.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | What the bill charges, line by line. | |
| po_id | Yes | The order the bill is for. An existing p2p_po id. | |
| number | No | The vendor's own invoice number, as printed. | |
| reason | No | Where it came from: "emailed by Acme on the 3rd". | |
| category | No | For service lines only (freight, installation): what it is for, in the person's words. | |
| 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. | |
| terms_days | No | Or the days the bill gives (30 for net 30), when it prints no due date. |