erp.type | erp.entity |
---|---|
business-rule |
Logistics.Procurement.PurchaseInvoices |
+-------------------+--------------------------------------------------------------------------------------------------+
| Code | R30990 |
+-------------------+--------------------------------------------------------------------------------------------------+
| Entity | @Logistics.Procurement.PurchaseInvoices |
+-------------------+--------------------------------------------------------------------------------------------------+
| Name | ValidateTotalAmountSignRestriction |
+-------------------+--------------------------------------------------------------------------------------------------+
| Attribute | Product |
+-------------------+--------------------------------------------------------------------------------------------------+
| Layer | Back-End |
+-------------------+--------------------------------------------------------------------------------------------------+
| Events | Planning + |
+-------------------+--------------------------------------------------------------------------------------------------+
| Modify | NO |
+-------------------+--------------------------------------------------------------------------------------------------+
| Action | Validate that: |
| |
|
| | - If 'PurchaseInvoice.DocumentType.InvoicesOption.TotalAmountSignRestriction == |
| | (-1) AllowOnlyNegative', then the sign of the total amount to pay of the Purchase Invoice |
| | is '-' ; |
| | - If 'PurchaseInvoice.DocumentType.InvoicesOption.TotalAmountSignRestriction == (0) |
| | AllowAll', then the sign of the total amount to pay of the Purchase Invoice is '-' or |
| | '+'; |
| | - If 'PurchaseInvoice.DocumentType.InvoicesOption.TotalAmountSignRestriction == (1) |
| | AllowOnlyPositive', then the sign of the total amount to pay of the Purchase Invoice' |
| | is '+'. |
+-------------------+--------------------------------------------------------------------------------------------------+
| Description | According to the particular business purpose of the Purchase Invoice, we are able to manually |
| | restrict the sign of the Total Amount of the document. For example, using this option we can |
| | specify that a certain document can be used when returning goods (in this situation the Total |
| | Amount is with a negative sign) or not. |
| |
|
| | The option is called 'Total amount Sign Restriction' and is set in the Entity Settings panel |
| | in the Document Type's definition. In order to assure that this restriction is not violated - |
| | we need to check if the sign of the Total Amount of the Purchase Invoice corresponds to the |
| | value set 'Total amount Sign Restriction' for the particular document type. |
+-------------------+--------------------------------------------------------------------------------------------------+
| Message | Use the message from R28177 Invoice - Total Amount Sign Restriction. |
+-------------------+--------------------------------------------------------------------------------------------------+
| ** Version** | Introduced: 2020.1 |
+-------------------+--------------------------------------------------------------------------------------------------+
| Revocable | NO |
+-------------------+--------------------------------------------------------------------------------------------------+
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.