From d7d376587532f9a1f0b8e100422932becde40727 Mon Sep 17 00:00:00 2001 From: phyusin Date: Thu, 10 May 2018 14:22:37 +0630 Subject: [PATCH] add sale_status for waste and spoile --- app/controllers/origami/table_invoices_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/origami/table_invoices_controller.rb b/app/controllers/origami/table_invoices_controller.rb index 1e8b1fbd..bc89d598 100755 --- a/app/controllers/origami/table_invoices_controller.rb +++ b/app/controllers/origami/table_invoices_controller.rb @@ -22,7 +22,7 @@ class Origami::TableInvoicesController < BaseOrigamiController end end #end rounding adjustment - if sale.sale_status != "completed" + if sale.sale_status != "completed" && sale.sale_status != "waste" && sale.sale_status != "spoile" @sale_array.push(sale) end end @@ -52,7 +52,7 @@ class Origami::TableInvoicesController < BaseOrigamiController end end #end rounding adjustment - if sale.sale_status != "completed" && sale.sale_status != 'void' + if sale.sale_status != "completed" && sale.sale_status != 'void' && sale.sale_status != "waste" && sale.sale_status != "spoile" @sale_array.push(sale) end end