erp.type | erp.entity |
---|---|
business-rule |
Logistics.Procurement.PurchaseInvoices |
+------------------------+---------------------------------------------------------------------------------------------+
| Code | R27444 |
+------------------------+---------------------------------------------------------------------------------------------+
| Entity | @Logistics.Procurement.PurchaseInvoices |
+------------------------+---------------------------------------------------------------------------------------------+
| Name | LineCheckRequiredProductTypePurchaseInvoiceLineProperties |
+------------------------+---------------------------------------------------------------------------------------------+
| Attribute | Not an attribute of the PurchaseInvoice entity. The current rule validates the specified |
| | required ProductTypePurchaseInvoiceLineProperties in the current line product's type. |
+------------------------+---------------------------------------------------------------------------------------------+
| Layer | Back-End |
+------------------------+---------------------------------------------------------------------------------------------+
| Events | Planning + |
+------------------------+---------------------------------------------------------------------------------------------+
| Modify | NO |
+------------------------+---------------------------------------------------------------------------------------------+
| Action | For each line and for each Product.ProductType.ProductTypePurchaseInvoiceLineProperty in |
| | each line validate that: |
| |
|
| | If (PurchaseInvoiceLine.Product.ProductType.ProductTypePurchaseInvoiceLineProperty.Required |
| | == True) |
| |
|
| | PurchaseInvoiceLine.PurchaseInvoiceLineUserProperty != null AND |
| | PurchaseInvoiceLine.PurchaseInvoiceLineUserProperty != "" |
+------------------------+---------------------------------------------------------------------------------------------+
| Description | The idea behind the Purchase Invoice Line user properties is to allow the user to specify |
| | values of the properties in the accounts in the voucher created from the current Purchase |
| | Invoice. If they are marked as required, this is because this value is necessary for the |
| | voucher to be created properly. |
+------------------------+---------------------------------------------------------------------------------------------+
| Message | "The properties {[ListOfRequiredProductTypePurchaseInvoiceLineProperties]} of line |
| | {[LineNo]} in {[DocumentText]} must have values because they are marked as required. |
| | The required properties for the current line are specified in the product type definition |
| | of the product in the line." |
| |
|
| | Sort Messages By Attribute: LineNo |
+------------------------+---------------------------------------------------------------------------------------------+
| Introduced In | 2017 |
| Version | |
+------------------------+---------------------------------------------------------------------------------------------+
| Revocable | NO |
+------------------------+---------------------------------------------------------------------------------------------+
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.