change COD to cash_on_delivery

This commit is contained in:
phyusin
2018-11-12 11:45:07 +06:30
parent 5aa02c9fec
commit d0ead177a1

View File

@@ -164,7 +164,7 @@ class OrderReservation < ApplicationRecord
#end rounding adjustment
sale_payment = SalePayment.new
if(order.payment_type == "COD")
if(order.payment_type == "cash_on_delivery")
sale_payment.process_payment(saleObj, current_user, saleObj.grand_total, "cash")
else
remark = "credit payment for Receipt No #{saleObj.receipt_no}"