I'm creating a Vendor Bill approval workflow where I need a condition (saved search condition) that needs aggregating the total Vendor Bill amount if the PO has multiple Vendor Bills.
For example, a PO for 100 has 2 Vendor Bills. One for 40 and another for 70.
The first bill is approved automatically because it is lower than the PO amount.
However, the second bill must be added to the existing bills from the same PO. So, 40 + 70 is 110 which exceeds the PO. This should be routed for approval.
I tried creating a saved search condition but I wasn't able to make it work.