Stock Update After Approver 1 Approval in Multi-Level Approval Flow

Stock Update After Approver 1 Approval in Multi-Level Approval Flow

Hi Team,

We have configured a multi-level approval process for POs/Bills. Our requirement is to update the item stock quantity based on the billed quantity immediately after Approver 1 approves the bill.

Please find the script attached below. However, when executing it, we encounter the message: "Inventory adjustment has not been approved."

Kindly assist us in resolving this issue.