Closed jacotec closed 11 months ago
In Grocy 4.0.0 the pruduct property "qu_factor_purchase_to_stock" was removed which led to a division by zero error.
Replacement for correct calculations is "qu_conversion_factor_purchase_to_stock" which is a product field in the store API.
This commit changes the calculation to use the new field, in addition it uses the plural quantity name if the amount to purchase is >1
In Grocy 4.0.0 the pruduct property "qu_factor_purchase_to_stock" was removed which led to a division by zero error.
Replacement for correct calculations is "qu_conversion_factor_purchase_to_stock" which is a product field in the store API.
This commit changes the calculation to use the new field, in addition it uses the plural quantity name if the amount to purchase is >1