update sale audit all process in origami

This commit is contained in:
Aung Myo
2018-07-12 13:10:11 +06:30
parent b1a4f19b1c
commit 7945da99ed
18 changed files with 63 additions and 27 deletions

View File

@@ -60,14 +60,14 @@ class Origami::OtherChargesController < BaseOrigamiController
sale_item.price = di["price"] * 1
sale_item.save
action_by = current_user.id
action_by = current_user.name
if table.nil?
remark = "Add Other Charges - Receipt No #{sale.receipt_no} | Sale ID #{sale.sale_id} |Charges ->#{di["price"]} For ->#{di["name"]}- Table ->"
else
remark = "Add Other Charges - Receipt No #{sale.receipt_no} | Sale ID #{sale.sale_id} |Charges ->#{di["price"]} For ->#{di["name"]}- Table ->#{table.name}"
end
sale_audit = SaleAudit.record_audit_for_edit(sale.sale_id,sale.cashier_id, action_by,remark,"ADDOTHERCHARGES" )
sale_audit = SaleAudit.record_audit_for_edit(sale.sale_id,sale.cashier_name, action_by,remark,"ADDOTHERCHARGES" )
end
end