Table of Contents

R38733 Accounting Voucher Line - Set Credit Reporting (Recalc)

Code 38733
Entity Finance.Accounting.AccountingVoucherLines Entity
Name SetCreditReporting
Attribute CreditReporting
Layer Front-End
Events AttributeChanged(Credit, RateMultiplierRC, RateDivisorRC, Voucher, EnterpriseCompany)
Priority Normal
Modify YES
Applicable Legislations ALL // no condition needed
Action new Amount(((Credit.Value * Convert(RateMultiplierRC, Decimal)) / Convert(RateDivisorRC, Decimal)), Voucher.EnterpriseCompany.ReportingCurrency)
Description Calculates the value of the CreditReporting field in an account voucher line when the Credit, RateMultiplierRC, RateDivisorRC, or the document’s CurrencyDirectory is modified. The logic is as follows: 1/ If the document date is on or before the ReportingCurrencyEndDate defined in the Enterprise Company, the value is calculated as: CreditReporting = Credit * RateMultiplierRC / RateDivisorRC; 2/ If the document date is after the ReportingCurrencyEndDate, the field is not calculated and remains empty. The result, when calculated, is expressed in the reporting currency defined in the Enterprise Company.
Message
Version
Revocable YES

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