add price_per quantity unit to group order new

This commit is contained in:
viehlieb 2023-02-21 16:50:53 +01:00
parent 7ddb6ec0ef
commit 1106178e38
16 changed files with 40 additions and 8 deletions

View file

@ -12,6 +12,14 @@ module PriceCalculation
add_percent(gross_price, FoodsoftConfig[:price_markup])
end
def fc_price_per
if price_per > 0
add_percent(add_percent(price_per, tax), FoodsoftConfig[:price_markup])
else
fc_price
end
end
private
def add_percent(value, percent)