change person item code process
This commit is contained in:
@@ -37,11 +37,11 @@ if (@booking)
|
||||
|
||||
json.order_items order_items do |item|
|
||||
# For YGN BBQ
|
||||
if item.item_code == "P00001"
|
||||
if item.item_code.include? ("PSA_")
|
||||
adult_count += item.qty
|
||||
adult_spent += (item.price * item.qty)
|
||||
end
|
||||
if item.item_code == "P00002"
|
||||
if item.item_code.include? ("PSC_")
|
||||
child_count += item.qty
|
||||
child_spent += (item.price * item.qty)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user