Magidoc

FinanceGlCompany
Object

An entity that owns a set of books. Carries its own functional currency, and later its own numbering series, close calendar, and enforced limits on what it can pay and be paid. Referenced by glCompanyId on journal lines and document headers.

Fields

#

_id

ID !
Non-null

workspaceId

ID !
Non-null

code

Non-null

name

Non-null

baseCurrency

Non-null

Functional currency for this company's books — the unit its posted lines are recorded in. The workspace base currency until the ledger carries a currency dimension; provisioning refuses any other.

reportingCurrency

Non-null

Currency this company's statements are presented in, translated from the books at read time. Resolved, never nullable: a company that presents in the unit its books are kept in stores nothing and answers with its baseCurrency. Changeable for the life of the company.

isDefault

Non-null

Exactly one per workspace once any company exists. Finance writes stamp it when the caller names no company.

assignees

[ID !]!
Non-null

Members who may open this company's books, and the teams whose members may. Empty on every company means the workspace has assigned none and everybody with Finance access can open all of them — the same "no names listed means everybody" reading the workspace-level access settings already use. This narrows which books a member may open; what they may do inside one is still the permission question.

teams

[ID !]!
Non-null

active

Non-null

createdAt

Non-null

modifiedAt

Non-null

createdBy

ID !
Non-null

modifiedBy

ID !
Non-null

invoiceAddress

Sender address printed on this company's customer invoices.

Usages

#

References

#

  • Field getFinanceGlCompanies from Query