R28177 Invoice - Total Amount Sign Restriction

Code R28177
Entity Crm.Invoicing.Invoices Entity
Name TotalAmountSignRestriction
Attribute -
Layer Back-End
Events Planning +
Modify NO
Action

Validate that:

  • If 'Invoice.DocumentType.InvoicesOption.TotalAmountSignRestriction == (-1) AllowOnlyNegative', then the sign of the 'Total Amount' of the Invoice is '-' ;
  • If 'Invoice.DocumentType.InvoicesOption.TotalAmountSignRestriction == (0) AllowAll', then the sign of the 'Total Amount' of the Invoice is '-' or '+';
  • If 'Invoice.DocumentType.InvoicesOption.TotalAmountSignRestriction == (1) AllowOnlyPositive', then the sign of the 'Total Amount' of the Invoice' is '+'.
Description According to the particular business purpose of the Invoice, we are able to manually restrict the sign of the Total Amount the document. For example, using this option we can specify that the certain document can be used when returning goods (in this situation the Total Amount is with 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 Invoice corresponds to the value set 'Total amount Sign Restriction' for the particular document.
Message The total amount of document '{DocumentText}' is with an invalid sign. There is a sign restriction set in the document type's definition, but the total amount's sign of the current document violates this setting.





The message is also used in:

R30990 PurchaseInvoice - Validate Total Amount Sign Restriction
Introduced In Version 2018
Revocable NO

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