Motorprise demonstrates how you can create your own custom approval conditions using Core Commerce. Two steps are involved in the approval verification process, which occurs when the user submits the order for confirmation:
We check the
approvalRequired
property of the user placing the order to determine whether the user should go through the entire approval verification process.For example, orders from Louis Veloso, buyer for NDAP, do not require approval so we don’t check for the approval conditions for orders he places. However, Nicole Hsu of USMW – US Division - Wholesale does require approvals for some orders. Her
approvalRequired
property istrue
, so we check for approval conditions for any orders she places.If the
approvalRequired
property istrue
for the user, then we check all the approval conditions for any order placed by that user. You can customize approval behavior by creating your own specific approval conditions. We created one such condition for Motorprise that restricts the maximum amount of the orders that can be placed.For example, Tim Hartwell of USMW has an order price limit of $10,000. If Tim places an order whose total is more than $10,000, then the order requires approval from Mary Granger, the approver for his division at USMW.