diff --git a/app/models/sale.rb b/app/models/sale.rb
index 62354a4f..c2a6e6bc 100644
--- a/app/models/sale.rb
+++ b/app/models/sale.rb
@@ -878,10 +878,9 @@ def self.get_by_shift_sale_by_item(from,to,status)
end
def self.get_item_query(type)
-
- if type == "revenue" || type.nil?
- sale_type = "i.status IS NULL and i.qty >0 "
- elsif type == "all"
+ if type == "revenue"
+ sale_type = "i.qty > 0 and status IS NULL"
+ elsif type == "all" || type.nil?
sale_type = ""
elsif type == "discount"
sale_type = "i.status = 'Discount'"
diff --git a/app/views/origami/payments/show.html.erb b/app/views/origami/payments/show.html.erb
index fec0adda..6cb85113 100755
--- a/app/views/origami/payments/show.html.erb
+++ b/app/views/origami/payments/show.html.erb
@@ -401,26 +401,34 @@
<% if current_login_employee.role == "cashier" %>
- <% if @other_payment <= 0 && @sale_payment.nil? %>
+ <% if @other_payment < 0 && @sale_payment.nil? %>
<%if @sale_data.total_discount == 0 %>
FOC
<% end %>
<%end %>
<% if @sale_payment.nil? %>
Void
- Waste
- Spoile
+ <% if @other_payment < 0 %>
+ <%if @sale_data.total_discount == 0 %>
+ Waste
+ Spoile
+ <% end %>
+ <% end %>
<% end %>
<% else %>
- <% if @other_payment <= 0 && @sale_payment.nil?%>
+ <% if @other_payment < 0 && @sale_payment.nil?%>
<%if @sale_data.total_discount == 0 %>
<%end %>
<%end %>
<% if @sale_payment.nil? %>
-
-
+ <% if @other_payment < 0 %>
+ <%if @sale_data.total_discount == 0 %>
+
+
+ <% end %>
+ <% end %>
<% end %>
<% end %>