add req bill and payment #left order and sale
This commit is contained in:
@@ -255,7 +255,14 @@ class Origami::PaymentsController < BaseOrigamiController
|
||||
def show
|
||||
path = request.fullpath
|
||||
sale_id = params[:sale_id]
|
||||
@cashier_type = params[:type]
|
||||
@trans_flag = true
|
||||
if params[:type] == "transaction"
|
||||
@trans_flag = false
|
||||
@cashier_type = "cashier"
|
||||
else
|
||||
@cashier_type = params[:type]
|
||||
end
|
||||
|
||||
if path.include? ("credit_payment")
|
||||
@sale_payment = SalePayment.get_credit_amount_due_left(sale_id)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user