Skip to content
Snippets Groups Projects

Ensure price ratio is Decimal for product kit

Merged Cédric Krier requested to merge topic/default/product-kit-ratio-decimal into branch/default
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -315,7 +315,7 @@
if sum_:
ratio = list_prices[component] / sum_
else:
ratio = 1 / len(components)
ratio = Decimal(1) / len(components)
if component.fixed:
ratio /= Decimal(str(component.quantity / quantity))
else:
Loading