From 23e7c8db97a6afb122e6cd5ec35773b336663d5a Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Thu, 28 Dec 2017 10:59:23 +0630 Subject: [PATCH] update payment control with first bill --- .../origami/others_payments_controller.rb | 2 +- app/views/origami/home/show.html.erb | 1 + app/views/origami/others_payments/index.html.erb | 16 +++++++++++++++- app/views/origami/payments/show.html.erb | 8 +++++++- 4 files changed, 24 insertions(+), 3 deletions(-) diff --git a/app/controllers/origami/others_payments_controller.rb b/app/controllers/origami/others_payments_controller.rb index fa88afb7..16c7edae 100755 --- a/app/controllers/origami/others_payments_controller.rb +++ b/app/controllers/origami/others_payments_controller.rb @@ -5,7 +5,7 @@ class Origami::OthersPaymentsController < BaseOrigamiController @payment_method_setting = PaymentMethodSetting.all @rebate = MembershipSetting.find_by_rebate(1) - + @sale_data = Sale.find_by_sale_id(@sale_id) # @sale_id = params[:sale_id] # sale_data = Sale.find_by_sale_id(@sale_id) diff --git a/app/views/origami/home/show.html.erb b/app/views/origami/home/show.html.erb index b77e3b96..6ca70e71 100755 --- a/app/views/origami/home/show.html.erb +++ b/app/views/origami/home/show.html.erb @@ -416,6 +416,7 @@