Magidoc

VendorInvoice
Object

A vendor bill — what a vendor is owed. Keyed by hand or synced from QuickBooks; one document either way, because a workspace's payables must not depend on how a bill arrived.

Fields

#

_id

ID !
Non-null

workspaceId

ID !
Non-null

vendorAccountId

The payee, named as the payment run's own group key names it. Absent only on imported rows whose vendor did not resolve.

vendorAccountName

The vendor's name, joined from the CRM account vendorAccountId points at. Null when the bill names no vendor, or names one this workspace cannot resolve.

glCompanyId

The GL company whose books hold this payable. Null keeps the workspace's one implicit set of books.

payableAccountId

paymentTermId

documentNumber

Non-null

The number printed on the vendor's own invoice.

issueDate

Non-null

dueDate

balance

What is still owed, net of every payment applied — the figure the A/P subledger sums.

subtotal

Non-null

taxTotal

Non-null

total

Non-null

privateNote

linkedTransactions

currencyConversion

paymentState

Non-null

status

Non-null

sourceType

The provider's identity for an imported bill. Null on native ones, which name their Hive provenance in originType/originId.

sourceId

originId

approvedAt

approvedBy

journalId

postingBatchId

postedAt

postedBy

voidJournalId

The reversing entry that took a posted bill back out of the books.

voidedAt

voidedBy

voidReason

createdAt

Non-null

createdBy

ID !
Non-null

modifiedAt

Non-null

modifiedBy

ID !
Non-null

Usages

#

References

#

  • Field getFinanceVendorBill from Query