Decrease Inventory Asset Quantity
Please i have an asset resource that i can add product with quantity and i have an inventoryRequest resource that i can retrieve the product added from asset with quantity, I want the quantity to reduce or decrease whenever i retrieve in inventoryRequest
4 Replies
Solution
in your
inventoryRequest
you can use a hook
since the delete is an action, so you can do before and after
it's in the actions docs too π
will, this is a business decision π
so it depends on the business .
but I would decrease the quantity as you said
This is great Thankyou All