R28797 LogisticsDocumentLine - Set Standard Quantity

Code R28797
Entity LogisticsDocumentLine
Name SetStandardQuantity
Attribute StandardQuantity
Layer Back-End
Events Commit
Priority Normal
Modify YES
Action if (StandardQuantity == NULL)

{

if (LogisticsDocumentLine.Product.AllowVariableMeasurementRatios == False)

{StandardQuantity = QuantityBase;}

else {StandardQuantity = CONVERT(Quantity);}

}



Description The field Standard Quantity contains the equivalence of the Quantity calculated in base measurement unit.

It is very important Standard Quantity to have values in all logistics document lines. The field is used by the generation procedures to determine whether the quantities of the document are fully exhausted by its child documents or not.

In order to make sure that the field is filled in, if Standard Quantity does not have a value, the current rule calculates Standard Quantity and sets its value. If the product in the particular line does not support Variable Measurement Ratios, then Standard Quantity is copied from Quantity Base. Otherwise, the value is calculated from Quantity using the measurement ratios.
Message -
Introduced In Version 2018.2
Revocable NO

* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.