Similar to other types of formulas, this formula aims to give you a more dynamic way to retract units from your stock.
Let’s say that you want to consider a meter of cable as a quantity unit
Normally, a customer ordering 100 meters will be considered as 1 unit but using this formula you can make the system retract 100 units
For that, you can configure the formula as follows
The module will evaluate this formula and find a result = 100 and tell the system to pull 100 units from the stock
It also works for any other scenario like m², here’s another example
[width] * [length]
You can also use PHP to calculate the desired unit quantity