R27107 PaymentTransaction - Line Payment Order Status

Code R27107
Entity Finance.Payments.PaymentTransactions Entity
Name LinePaymentOrderStatus
Attribute Line.PaymentOrder
Layer Back-End
Events Released +
Modify NO
Action For each PaymentTransactionLine:

If (PaymentTransactionLine.PaymentOrder.State >Released OR PaymentTransactionLine.PaymentOrder.Void = true)

Throw an error
Description The PaymentTransaction lines must contain only PaymentOrders which are not voided or their DocumentState is less then Completed.
Message "The state of document '{0}' cannot become 'Released' or higher, because the payment order '{1}' with reference to '{2}' in the lines is completed or void.", [DocumentText], [PaymentTransactionLine.PaymentOrder.DocumentText], [PaymentTransactionLine.PaymentOrder.Text]





Where: [PaymentTransactionLine.PaymentOrder.DocumentText] - the line that containts incorrect payment order [PaymentTransactionLine.PaymentOrder.Text] - the display text of [PaymentTransactionLine.PaymentOrder.DocumentText]
Introduced In Version 2017
Revocable NO

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