mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-08 22:56:06 +00:00
Fixing cart total in checkout
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user