R30383-9 Invoice - Set Document Currency
| Code | 30383-9 |
| Entity | Crm.Invoicing.Invoices Entity |
| Name | SetDocumentCurrency |
| Attribute | DocumentCurrency |
| Layer | Front-End |
| Events | AttributeChanged(Customer) |
| Priority | Normal |
| Modify | YES |
| Applicable Legislations | ALL // no condition needed |
| Action | if (Invoice.Customer != null && Invoice.Customer.DefaultCurrency != null) { if (Invoice.DocumentCurrency != Invoice.Customer.DefaultCurrency) Invoice.DocumentCurrency = Invoice.Customer.DefaultCurrency; } |
| Description | When the Customer is changed, DocumentCurrency should recalculated. DocumentCurrency should be equal to the DefaultCurrency from the customer's definition. |
| Message | |
| Version | Introduced: 2020 |
| Revocable | YES |
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.