Reject a non-PO invoice based on Distribution Segment4 & POETA Combination
Summary:
In the FinApInvoiceApproval, we have a requirement to validate the invoice distribution line Segment4 against the POETA fields. If they are not aligned, the invoice should be automatically rejected. This functionality works correctly when there is only one line/distribution or when all lines produce the same result. However, when multiple lines have different outcomes, the workflow always returns APPROVED. Our requirement is to reject the invoice if ANY line/distribution fails the validation. I am attaching the screenshots of our validation and return condition. I tried this rule with in the InvoiceHeader collection and as well as in Distributions collection.
Tagged:
0