add price_per quantity unit to group order new
This commit is contained in:
parent
7ddb6ec0ef
commit
1106178e38
16 changed files with 40 additions and 8 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue