+-----------------------------+----------------------------------------------------------------------------------------+
| Code | R30746 |
+-----------------------------+----------------------------------------------------------------------------------------+
| Entity | @Finance.Payments.PaymentTransactions |
+-----------------------------+----------------------------------------------------------------------------------------+
| Name | ReversalPaymentRequirements |
+-----------------------------+----------------------------------------------------------------------------------------+
| Attribute | OriginalPaymentTransaction |
+-----------------------------+----------------------------------------------------------------------------------------+
| Layer | Back-End |
+-----------------------------+----------------------------------------------------------------------------------------+
| Events | Releasing + |
+-----------------------------+----------------------------------------------------------------------------------------+
| Priority | Early |
+-----------------------------+----------------------------------------------------------------------------------------+
| Modify | NO |
+-----------------------------+----------------------------------------------------------------------------------------+
| Applicable Legislations | ALL // no condition |
| | needed |
+-----------------------------+----------------------------------------------------------------------------------------+
| Action | If OriginalPaymentTransaction is not NULL Then Check That: |
| |
|
| | Direction == OriginalPaymentTransaction.Direction |
| |
|
| | Sign (TotalAmount) != Sign (OriginalPaymentTransaction.TotalAmount) |
| |
|
| | OriginalPaymentTransaction.State >= Completed |
| |
|
| | ReversalReason is not NULL |
+-----------------------------+----------------------------------------------------------------------------------------+
| Description | If the Payment Transаction is Reversal (the field Original Payment Transaction has a |
| | value), then on Releasing check that requirements are met. |
| |
|
| | The requirements are: |
| |
|
| | - The directions of the reversal and the original payment transactions must be the |
| | same. |
| |
|
| | - The sign of the total amount must be opposite to the sign of the total amount of |
| | the original payment. |
| |
|
| | - The document state of the original payment transaction must be Completed or higher. |
| |
|
| | - The field "Reversal Reason" must have a value. |
+-----------------------------+----------------------------------------------------------------------------------------+
| Message | The field 'Original Payment Transaction' in document '{DocumentText}' is filled in |
| | but not all requirements for a reversal payment transaction are met. |
| |
|
| | The requirements for reversal payment transactions are: |
| |
|
| | - The directions of the reversal and the original payment transactions must be the |
| | same. |
| |
|
| | - The sign of the total amount must be opposite to the sign of the total amount of |
| | the original payment. |
| |
|
| | - The document state of the original payment transaction must be Completed or higher. |
| |
|
| | - The field 'Reversal Reason' must have a value. |
+-----------------------------+----------------------------------------------------------------------------------------+
| Version | Introduced: 2020.1 |
| |
|
| | Updated: - |
+-----------------------------+----------------------------------------------------------------------------------------+
| Revocable | NO |
+-----------------------------+----------------------------------------------------------------------------------------+
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.