R38951-1 Accounting Voucher Line - Set RateMultiplierRC And RateDivisorRC On RC Change
| Code | R38951-1 |
| Entity | Finance.Accounting.AccountingVoucherLines Entity |
| Name | SetRateMultiplierRCAndRateDivisorRCOnRCChange |
| Attribute | RateMultiplierRC, RateDivisorRC |
| Layer | Front-End |
| Events | AttributeChanged(DebitReporting, CreditReporting) |
| Priority | Normal |
| Modify | YES |
| Action | IF ((AccountingVoucherLine.DebitReporting != NULL OR
AccountingVoucherLine.DebitReporting != NULL)
AND AccountingVoucher.Document Date < = ReportingCurrencyЕndDate)
set values: IF (DebitReporting is changed AND DebitReporting != 0) IF (Debit != 0) THEN RateMultiplierRC = DebitReporting / Debit, RateDivisorRC = 1 ELSE RateMultiplierRC = 1, RateDivisorRC = 0 IF (CreditReporting is changed AND CreditReporting != 0) IF (Credit != 0) THEN RateMultiplierRC = CreditReporting / Credit, RateDivisorRC = 1 ELSE RateMultiplierRC = 1, RateDivisorRC = 0 |
| Description | The rule sets RateMultiplierRC and RateDivisorRC fields on DebitReporting or CreditReporting field change. |
| 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.