R33507-16 Sales Order Line - Set Line Amount (Recalc)
| Code | 33507-16 |
| Entity | Crm.Sales.SalesOrderLines Entity |
| Name | SetLineAmount |
| Attribute | LineAmount |
| Layer | Front-End |
| Events | AttributeChanged(Quantity, UnitPrice, LineAmount, LineStandardDiscountPercent, LineCustomDiscountPercent) |
| Priority | Normal |
| Modify | YES |
| Applicable Legislations | ALL // no condition needed |
| Action | IIF((((Quantity == null) OrElse (UnitPrice == null)) OrElse ((Quantity.Value == 0) AndAlso (UnitPrice.Value == 0))), LineAmount, CalculateLineAmount(Quantity, UnitPrice, LineStandardDiscountPercent, LineCustomDiscountPercent)) |
| Description | The rule calculates Line Amount by multiplying Quantity by Unit Price, while taking into account line discounts at all levels (if any). |
| Message | |
| Version | |
| Revocable | YES |
* This is auto generated code. Don't change it.