- Add shop name in second display
- Slim scroll when order items are more than card's height
- Add change tax audit
This commit is contained in:
Aung Phyo Thant
2025-01-16 14:16:30 +06:30
parent 2350d10f70
commit f368295dea
4 changed files with 43 additions and 9 deletions

View File

@@ -645,9 +645,10 @@ class Foodcourt::PaymentsController < BaseFoodcourtController
sale_id = params[:sale_id]
order_source = params[:cashier_type]
tax_type = params[:tax_type]
remark = "Change tax to #{tax_type.upcase} for Sale ID #{sale_id} by #{current_login_employee.name}"
sale = Sale.find(sale_id)
sale.compute_by_sale_items(sale.total_discount, nil, order_source, tax_type)
SaleAudit.record_audit_change_tax(sale_id, remark, current_login_employee.name)
render json: JSON.generate({:status => true})
end