Auto approving the AP invoice by using the Invoice Group (BatchName) attribute
Summary
Auto approving the AP invoice by using the Invoice Group (BatchName) attributeContent
We have a requirement to auto-approve the AP invoices based invoice group name. if the invoice group name is null or not in ("AA","BB") then the Invoice should route for approval.
if the invoice group name is not null and in ("AA","BB") then the Invoice should auto approve. In the auto-approval case, the rule is getting executed and invoice is getting auto-approved.
when in the case of the invoice group name is null or not in ("AA","BB") condition, the system is rejecting the approval request and gigving the below error. I believe this is because of the Invcoie group name gets stored in AP_BATCHES_ALL and when the invoice group name is null on the invoice, the logic "invoice group name is null or not in ("AA","BB")" is not beeing executed and returing error.