Gift info added to trello
This commit is contained in:
@@ -5,7 +5,9 @@ class Cart < ActiveRecord::Base
|
||||
belongs_to :delivery_destination
|
||||
|
||||
def delivery_cost
|
||||
place = Place.by_code_or_default(delivery_destination.place)
|
||||
place = delivery_destination.gift ? Place.by_code_or_default(delivery_destination.recipient_place)
|
||||
: Place.by_code_or_default(delivery_destination.place)
|
||||
|
||||
if delivery_destination.instant_delivery
|
||||
place.instant_delivery_price
|
||||
else
|
||||
@@ -21,5 +23,4 @@ class Cart < ActiveRecord::Base
|
||||
def confirmed_at
|
||||
delivery_destination.updated_at.in_time_zone('Europe/Sarajevo')
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user