Skip to content

Commit

Permalink
Fixes pack size calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
lentschi committed Jul 11, 2022
1 parent ec31210 commit b33728b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/group_order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def load_data
:used_tolerance => (goa ? goa.result(:tolerance) : 0),
:total_price => (goa ? goa.total_price : 0),
:missing_units => order_article.missing_units,
:ratio_group_order_unit_supplier_unit => order_article.article.convert_quantity(order_article.article.group_order_granularity, order_article.article.supplier_order_unit, order_article.article.group_order_unit),
:ratio_group_order_unit_supplier_unit => order_article.article.convert_quantity(1, order_article.article.supplier_order_unit, order_article.article.group_order_unit),
:quantity_available => (order.stockit? ? order_article.article.quantity_available : 0),
:minimum_order_quantity => order_article.price.minimum_order_quantity ? order_article.price.convert_quantity(order_article.price.minimum_order_quantity, order_article.article.supplier_order_unit, order_article.article.group_order_unit) : nil
}
Expand Down

0 comments on commit b33728b

Please sign in to comment.