R30505-10 ReceivingOrderLine - Copy Values From Purchase Order Line

Code 30505-10
Entity Logistics.Procurement.ReceivingOrderLines Entity
Name CopyValuesFromPurchaseOrderLine
Attribute Product, ProductDescription, QuantityUnit, Quantity, PricePerUnit, PurchaseProductPrice
Layer Front-End
Events AttributeChanged(PurchaseOrderLine)
Priority Normal
Modify YES
Applicable Legislations ALL // no condition needed
Action if (PurchaseOrderLine != null)

{ Product = PurchaseOrderLine.Product;
ProductDescription = PurchaseOrderLine.ProductDescription;
QuantityUnit = PurchaseOrderLine.QuantityUnit;
Quantity = PurchaseOrderLine.ConfirmedQuantity ?? PurchaseOrderLine.Quantity;
PricePerUnit = PurchaseOrderLine.ConfirmedPricePerUnit ?? PurchaseOrderLine.PricePerUnit;
PurchaseProductPrice = PurchaseOrderLine.PurchaseProductPrice;
}
else
{
PurchaseProductPrice = DeterminePurchaseProductPrice( ReceivingOrder.DocumentDate, ReceivingOrder.Supplier, Product, (ConfirmedQuantity ?? Quantity), ReceivingOrder.EnterpriseCompany, ReceivingOrder.PurchasePriceList);
}
Description When Purchase Order Line is changed, copay values from its fields.
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.