R38951-2 Accounting Voucher Line - Set Reporting Amounts
Code | R38951-2 |
Entity | Finance.Accounting.AccountingVoucherLines Entity |
Name | SetReportingAmounts |
Attribute | DebitReporting, CreditReporting |
Layer | Front-End |
Events | AttributeChanged(Debit, Credit, RateMultiplierRC, RateDivisorRC) |
Priority | Normal |
Modify | YES |
Action | IF (Enterprise Company.ReportingCurrency Is Not Null AND
Enterprise Company.ReportingCurrencyStartDate Is Not Null AND
( DocumentDate <= EnterpriseCompany.ReportingCurrencyEndDate OR
EnterpriseCompany.ReportingCurrencyEndDate Is Null )
set values: DebitReporting = Debit * RateMultiplierRC / RateDivisorRC CreditReporting = Credit * RateMultiplierRC / RateDivisorRC |
Description | Calculates the value of the DebitReporting field in an account voucher line when
the Debit, RateMultiplierRC, RateDivisorRC, or the document’s CurrencyDirectory
is modified.
The logic is as follows:
> If the document date is on or before the ReportingCurrencyEndDate defined
in the Enterprise Company, the value is calculated as:
DebitReporting = Debit * RateMultiplierRC / RateDivisorRC
> If the document date is after the ReportingCurrencyEndDate, field is
not calculated and remains empty.
The result, when calculated, is expressed in the reporting currency defined in the Enterprise Company. |
Message | - |
Version | Introduced: v.26 |
Revocable | YES |
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.