Magidoc

createVendorBill
Mutation

Records a bill a vendor sent, with no purchase order behind it — rent, software, insurance, a subcontractor's invoice. Returns it as a draft: nothing reaches the ledger until postVendorBill, and every A/P read gates on the journal posting writes. The bill's totals are the sums of its lines; a caller never sends them. Access: 'purchasingCreate' in a workspace where finance is enabled. Errors: refuses a bill with no vendor, no number or no lines, a number this vendor already has a live bill under, and a currency other than the workspace's.

Arguments

#

workspaceId

ID !
Non-null

input

Non-null

Response

#

Returns VendorInvoice !.

Example

#