R32336-4 TemplateLine - Set Credit And Debit Accounts
| Code | 32336-4 | 
| Entity | Finance.Accounting.TemplateLines Entity | 
| Name | SetCreditAndDebitAccounts | 
| Attribute | CreditAccount, DebitAccount | 
| Layer | Front-End | 
| Events | AttributeChanged(AmountColumnName) | 
| Priority | Normal | 
| Modify | YES | 
| Applicable Legislations | ALL // no condition needed | 
| Action | The rule sets CreditAccount and DebitAccount according to the following conditions:    if (AmountColumnName != NULL &&                                                 | 
| Description | When Amount Column Name is changed, Credit Account is set to CurrentEnterpriseCompany.ExchangeDifferenceCreditAccount and Debit Account is set to CurrentEnterpriseCompany.ExchangeDifferenceDebitAccount. | 
| Message | |
| Version | Introduced: 2021 | 
| Revocable | NO | 
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.