R31316 LogisticsDocumentLine - Set Confirmed Quantity From Confirmed Quantity Base
Code | R31316 |
Entity | LogisticsDocumentLine |
Name | SetConfirmedQuantityFromConfirmedQuantityBase |
Attribute | ConfirmedQuantity |
Layer | Front-End |
Events | AttributeChanged(ConfirmedQuantityBase) |
Priority | Normal |
Modify | YES |
Applicable Legislations | ALL // no condition needed |
Action | IF (line.SupportsConfirmedQuantities)
if(Product != null && QuantityUnit != null && ConfirmedQuantityBase != null && ConfirmedQuantityBase != ConfirmedQuantity.ConvertTo(Product.BaseUnit, Product)) { if (!Product.AllowVariableMeasurementRatios) ConfirmedQuantity = ConfirmedQuantityBase.ConvertTo(QuantityUnit, Product); else if (Product.BaseUnit == QuantityUnit) ConfirmedQuantity = ConfirmedQuantityBase; } |
Description | Recalculates Confirmed Quantity when Confirmed Quantity Base is changed. For products which use Variable Measurement Ratios, the recalculation is performed only if the Quantity Unit in the line is the Base Мeasurement Unit of the product. |
Message | - |
Version | Introduced: 2020.1 |
Revocable | YES |
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.