Table of Contents

R38732 Accounting Voucher Line - Set Debit Reporting (Recalc)

Code 38732
Entity Finance.Accounting.AccountingVoucherLines Entity
Name SetDebitReporting
Attribute DebitReporting
Layer Front-End
Events AttributeChanged(Debit, DebitBase, Voucher, DocumentDate, EnterpriseCompany, CurrencyDirectory)
Priority Normal
Modify YES
Applicable Legislations ALL // no condition needed
Action IIF((Convert(Voucher.DocumentDate, Nullable`1) >= Voucher.EnterpriseCompany. ReportingCurrencyStartDate), Debit.ConvertTo(Voucher.EnterpriseCompany.ReportingCurrency, Voucher.CurrencyDirectory), new Amount((DebitBase.Value * Convert(Voucher.EnterpriseCompany. ReportingCurrencyRate, Decimal)), Voucher.EnterpriseCompany.ReportingCurrency))
Description Calculates the value of the DebitReporting field in an account voucher line when the Debit, DebitBase, or the document’s CurrencyDirectory is modified. The logic is as follows: - If

The logic is as follows:

  • If | | | the document date is on or after the ReportingCurrencyStartDate set in the Enterprise | | | Company, the value is calculated using: |
Message
Version
Revocable YES

* This is auto generated code. Don't change it.