R32336-5 TemplateLine - Update Line Properties
| Code | 32336-5 |
| Entity | Finance.Accounting.TemplateLines Entity |
| Name | UpdateLineProperties |
| Attribute | TemplateLineProperty.IsDebit, TemplateLineProperty.Property, TemplateLineProperty.PropertyNo, TemplateLineProperty.PropertyValueSourceType |
| Layer | Front-End |
| Events | AttributeChanged(CreditAccount, DebitAccount) |
| Priority | Normal |
| Modify | YES |
| Applicable Legislations | ALL // no condition needed |
| Action | Calls TemplateLine.UpdateLineProperties (bool isDebit, Account account, EnterpriseOneTransaction tr) and then for each TemplateLineProperty if (AmountSourceName != NULL && TemplateLineProperty.PropertyValueSourceType == NULL && (AmountSourceName == "Exchange_Difference" || AmountSourceName == "Account_Balance")) then TemplateLineProperty.PropertyValueSourceType = "Account item key" |
| Description | When CreditAccount or DebitAccount is changed, Template Line Properties should be updated according to Account's Key Properties. |
| 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.