
diff -r e61f23d9708e -r ad0561f34202 src/org/openbravo/retail/posterminal/InvoicesHeader.java
--- a/src/org/openbravo/retail/posterminal/InvoicesHeader.java	Mon Dec 16 12:11:35 2019 +0530
+++ b/src/org/openbravo/retail/posterminal/InvoicesHeader.java	Mon Dec 16 12:12:55 2019 +0530
@@ -1,6 +1,6 @@
 /*
  ************************************************************************************
- * Copyright (C) 2018 Openbravo S.L.U.
+ * Copyright (C) 2018-2019 Openbravo S.L.U.
  * Licensed under the Openbravo Commercial License version 1.0
  * You may obtain a copy of the License at http://www.openbravo.com/legal/obcl.html
  * or in the legal folder of this module distribution.
@@ -28,7 +28,6 @@
     JSONObject filters = jsonsent.getJSONObject("filters");
     Map<String, Object> paramValues = new HashMap<String, Object>();
     paramValues.put("client", filters.getString("client"));
-    paramValues.put("client", filters.getString("organization"));
     paramValues.put("orderId", filters.getString("orderId"));
     return paramValues;
   }
@@ -39,7 +38,7 @@
     String hqlInvoices = "select i.id as id, i.documentNo as documentNo, i.invoiceDate as orderDate, "
         + " i.businessPartner.name as businessPartner, i.grandTotalAmount as totalamount "
         + " from InvoiceLine il join il.salesOrderLine ol join ol.salesOrder ord  join il.invoice i  "
-        + " where ord.client.id=:client and ord.organization.id=:organization and ord.id =:orderId "
+        + " where ord.client.id=:client and ord.id =:orderId "
         + " group by i.id, i.documentNo, i.invoiceDate, i.businessPartner.name, i.grandTotalAmount "
         + " order by i.documentNo asc";
 




