Add transport costs to Order
This commit is contained in:
parent
8cb70d819e
commit
4c567fece1
16 changed files with 141 additions and 6 deletions
|
|
@ -94,4 +94,9 @@ class GroupOrder < ApplicationRecord
|
|||
ordergroup ? ordergroup.name : I18n.t('model.group_order.stock_ordergroup_name', :user => updated_by.try(:name) || '?')
|
||||
end
|
||||
|
||||
def total
|
||||
return price + transport if transport
|
||||
price
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue