R30505-15 ReceivingOrderLine - Update Product Dependant Fields
| Code | 30505-15 |
| Entity | Logistics.Procurement.ReceivingOrderLines Entity |
| Name | UpdateProductDependantFields |
| Attribute | ProductCode, Lot, Product |
| Layer | Front-End |
| Events | AttributeChanged(Product, ProductCode) |
| Priority | Normal |
| Modify | YES |
| Applicable Legislations | ALL // no condition needed |
| Action | if (Lot?.Product != Product) Lot = null;
if (ProductCode is changed and ProductCode.NewValue != null) Product = ProductCode.Product; if (Product != null) { IF(Product is Changed) {if (ProductCode?.Product != Product) ProductCode = null;} ProductDescription = Product.Name; } |
| Description | When Product or Product Code are changed, all Product relevant fields should be updated. |
| Message | |
| Version | Introduced: 2020.1
Updated: 20 and 21 (Removed setting Serial Number, because it's covered with 30707-2) (Removed setting Quantity Unit, because it's covered with R30505-16 ReceivingOrderLine - Set Quantity Unit) |
| Revocable | YES |
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.