R38993 Sales Order Line - Set Apply Trade Conditions (Recalc)
Code | 38993 |
Entity | Crm.Sales.SalesOrderLines Entity |
Name | SetApplyTradeConditions |
Attribute | ApplyTradeConditions |
Layer | Front-End |
Events | AttributeChanged(HistoricalUnitCost, ReturnForSalesOrderLine, ReturnForInvoiceLine) |
Priority | Normal |
Modify | YES |
Applicable Legislations | ALL // no condition needed |
Action | Convert(IIF((((ReturnForSalesOrderLine != null) OrElse (ReturnForInvoiceLine != null)) OrElse (HistoricalUnitCost != null)), False, True), Object) |
Description | Calculates the value of the Apply Trade Conditions checkbox when any of the following fields are modified: Return For Sales Order Line, Return For Invoice Line or Historical Unit Cost. The logic is as follows: 1/ If at least one of the three fields have a value (i. e., is not empty) then the checkbox Apply Trade Conditions is unchecked; 2/ If all three fields are empty, then the Apply Trade Conditions checkbox is checked 'again'. |
Message | |
Version | |
Revocable | YES |
* This is auto generated code. Don't change it.