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