Magidoc

FinanceRevaluationRunLine
Object

One open foreign-currency document as a revaluation run priced it. Carries both home figures the adjustment is the difference between, and both rates, so the number can be checked without re-running anything.

Fields

#

_id

ID !
Non-null

documentType

Non-null

Which set this row came from: customerInvoice, vendorInvoice, their contra sets creditMemo and vendorCredit, receiptRemainder — a receipt's unapplied foreign cash, carried in the customer-deposit liability — bankCashPosition, a bank account's foreign cash carried in the cash account it is mapped to, or retainerBalance, a funded retainer's remaining foreign credit carried in the liability account its own funding credited. The set is what signs the adjustment: a contra balance moves its control account the opposite way its primary does.

documentId

ID !
Non-null

documentNumber

Non-null

foreignBalance

Non-null

The open balance in the document's own currency. A revaluation never changes it.

carryingAmount

Non-null

The home-currency value the ledger carries this balance at, from the rate the document posted at. Never rewritten by a revaluation: it is what a later settlement relieves against and measures its realized gain from.

revaluedAmount

Non-null

The same balance at the run's rate.

adjustmentAmount

Non-null

revaluedAmount − carryingAmount, signed as a movement in this document's control account: positive is a debit to it.

documentExchangeRate

Non-null

The rate behind carryingAmount. For the document sets that is the one rate the document posted at, and foreignBalance times it reproduces the carrying amount. A bankCashPosition is the exception: its carrying amount is the sum of what each arrival of cash was carried in at, so this is the most recent arrival's rate and it does not reproduce the total. No single authored rate exists for a position built from several, and deriving one would put a rounded number where a reader expects one somebody wrote.

revaluationExchangeRate

Non-null

controlAccountId

ID !
Non-null

The AR or AP account this row's adjustment posts to, frozen when the run was built.

Usages

#

References

#