check no order

This commit is contained in:
phyusin
2018-11-28 11:29:43 +06:30
parent b750547066
commit 2dd940cc2e
2 changed files with 42 additions and 36 deletions

View File

@@ -37,8 +37,9 @@ if (@booking)
json.remark item.remark
json.item_status item.order_item_status
@total_amount = @total_amount + (item.price * item.qty)
else
json.success false
end
end
json.sub_total @total_amount