Magidoc

FinanceRevaluationRun
Object

Fields

#

_id

ID !
Non-null

workspaceId

ID !
Non-null

glCompanyId

The GL company whose books this run posts into. Null until company provisioning lands.

periodId

revaluationDate

Non-null

The date whose rates priced the run.

status

Non-null

'draft' or 'posted'. There is no reversed state: the posted journal reverses itself.

netGainAmount

Non-null

Net adjustment across every line, signed as the income-statement effect: positive is a gain.

unrealizedGainLossAccountId

The unrealized gain/loss account frozen when the run was built. Null on a preview in a workspace that has not chosen one — which is also what makes the run unpostable until it does.

lines

Non-null

unpricedDocuments

The open foreign balances this run could not price and left out of the adjustment above. Empty when it priced everything it found. Null only on a run stored before runs recorded exclusions, which had none to record: that code refused the whole run instead of excluding a document.

autoReversal

The state of the mirror this run's posting owes, read from its journal rather than copied onto the run — one fact, one place. Null on a draft, which owes nothing yet.

journalId

journalDocumentNumber

The number of the journal this run posted, resolved from that journal rather than stored — the run already names the journal by id and no surface may render an id. Null on a draft, and on a posted run whose journal has been removed.

postingBatchId

postedAt

postedBy

createdAt

Non-null

modifiedAt

Non-null

createdBy

ID !
Non-null

modifiedBy

ID !
Non-null

Usages

#

References

#

  • Field previewFinanceRevaluationRun from Query
  • Field getFinanceRevaluationRuns from Query
  • Field createFinanceRevaluationRun from Mutation