order reservation data
This commit is contained in:
@@ -95,6 +95,7 @@
|
||||
discount_amount = order_reservation.discount_amount
|
||||
delivery_fee = order_reservation.delivery_fee ? order_reservation.delivery_fee : 0.0
|
||||
convenience_charge = order_reservation.convenience_charge
|
||||
if !JSON.parse(order_reservation.taxes).empty?
|
||||
JSON.parse(order_reservation.taxes).each do |tax_data|
|
||||
if tax_data[0] == "delivery_tax"
|
||||
delivery_tax = tax_data[1]
|
||||
@@ -104,6 +105,7 @@
|
||||
commercial_tax = tax_data[1]
|
||||
end
|
||||
end
|
||||
end
|
||||
total_discount_amount += discount_amount.to_f
|
||||
total_delivery_fee += delivery_fee.to_f
|
||||
total_convenience_charge += convenience_charge.to_f
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
discount_amount = order_reservation.discount_amount
|
||||
delivery_fee = order_reservation.delivery_fee ? order_reservation.delivery_fee : 0.0
|
||||
convenience_charge = order_reservation.convenience_charge
|
||||
|
||||
if !JSON.parse(order_reservation.taxes).empty?
|
||||
JSON.parse(order_reservation.taxes).each do |tax_data|
|
||||
if tax_data[0] == "delivery_tax"
|
||||
delivery_tax = tax_data[1]
|
||||
@@ -78,6 +78,7 @@
|
||||
commercial_tax = tax_data[1]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
total_discount_amount += discount_amount.to_f
|
||||
total_delivery_fee += delivery_fee.to_f
|
||||
|
||||
Reference in New Issue
Block a user