Magidoc

ExpenseReport
Object

Fields

#

_id

ID !
Non-null

workspaceId

ID !
Non-null

userId

ID !
Non-null

approverId

projectId

projectName

Name of the project this document is filed against, resolved at read time and scoped to what the requesting member may see. Null when the project no longer exists or is not visible to them — clients render their unlinked fallback for both, and must never assume the name of a project the reader cannot open.

clientAccountId

documentNumber

status

Non-null

currency

Non-null

total

Non-null

currencyConversion

policyWarnings

approvalRoute

The named approver assigned at create — the flat gate, independent of any workspace rule.

approvalRuleRoute

The workspace approval rule that matched at submit, if any. Adds a gate; replaces none.

approvalChain

submittedAt

submittedBy

approvedAt

approvedBy

rejectedAt

rejectedBy

postedAt

postedBy

journalId

The journal posting booked, Dr expense / Cr accounts payable. Its presence is what puts the report in the AP subledger and clears it off the month-end close blocker.

paidAmount

What reimbursements have settled against this report, to date. Null on a report nothing has paid — and back to null, not zero, once a void takes the last payment off.

paidAt

paidBy

paymentJournalId

The journal of the reimbursement that settled the last of the balance.

approvalNote

createdAt

Non-null

modifiedAt

Non-null

createdBy

ID !
Non-null

modifiedBy

ID !
Non-null

Usages

#

References

#

  • Field getExpenseReports from Query