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, RateMultiplierRC, RateDivisorRC, Voucher, EnterpriseCompany) |
| Priority | Normal |
| Modify | YES |
| Applicable Legislations | ALL // no condition needed |
| Action | new Amount(((Debit.Value * Convert(RateMultiplierRC, Decimal)) / Convert(RateDivisorRC, Decimal)), Voucher.EnterpriseCompany.ReportingCurrency) |
| 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: 1/ If the document date is on or before the ReportingCurrencyEndDate defined in the Enterprise Company, the value is calculated as: DebitReporting = Debit * 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.