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

@@ -46,6 +46,12 @@ class Origami::RequestBillsController < ApplicationController
# @sale_data.shift_sale_id = shift.id
# @sale_data.save
action_by = current_user.name
type = "REQUEST_BILL"
remark = "Request bill Receipt No #{@sale_data.receipt_no}"
sale_audit = SaleAudit.record_audit_sale(@sale_data.sale_id,remark,action_by,type )
# Promotion Activation
Promotion.promo_activate(@sale)