remove per_spent amt in view_orders

This commit is contained in:
phyusin
2017-12-29 17:35:01 +06:30
parent 23422aa5a7
commit f7c4cb0733

View File

@@ -60,16 +60,16 @@ if (@booking)
end end
# For YGN BBQ # For YGN BBQ
if adult_count > 0 # if adult_count > 0
json.per_adult_spent (adult_spent/adult_count) * 0.05 # json.per_adult_spent (adult_spent/adult_count) * 0.05
else # else
json.per_adult_spent 0 json.per_adult_spent 0
end # end
if child_count > 0 # if child_count > 0
json.per_child_spent (child_spent/child_count) * 0.05 # json.per_child_spent (child_spent/child_count) * 0.05
else # else
json.per_child_spent 0 json.per_child_spent 0
end # end
# End YGN BBQ # End YGN BBQ
json.sub_total @total_amount json.sub_total @total_amount