Fixing cart total in checkout

This commit is contained in:
Rob H
2014-08-06 13:58:52 +10:00
parent 5d2dda2ee4
commit 5a34fa41b3

View File

@@ -10,4 +10,8 @@ class Api::CurrentOrderSerializer < ActiveModel::Serializer
def payment_method_id
object.payments.first.andand.payment_method_id
end
def display_total
object.display_total.money.to_f
end
end