change COD to cash_on_delivery
This commit is contained in:
@@ -164,7 +164,7 @@ class OrderReservation < ApplicationRecord
|
|||||||
#end rounding adjustment
|
#end rounding adjustment
|
||||||
|
|
||||||
sale_payment = SalePayment.new
|
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")
|
sale_payment.process_payment(saleObj, current_user, saleObj.grand_total, "cash")
|
||||||
else
|
else
|
||||||
remark = "credit payment for Receipt No #{saleObj.receipt_no}"
|
remark = "credit payment for Receipt No #{saleObj.receipt_no}"
|
||||||
|
|||||||
Reference in New Issue
Block a user