Related to issue 20262: remove unused code
authorMikel Irurita <mikel.irurita@openbravo.com>
Fri, 25 May 2012 14:47:07 +0200
changeset 16668 c49d26d67c20
parent 16667 d73979000468
child 16669 ba95c4bd8198
Related to issue 20262: remove unused code
src/org/openbravo/erpCommon/ad_forms/DocFINReconciliation.java
--- a/src/org/openbravo/erpCommon/ad_forms/DocFINReconciliation.java	Mon May 21 09:43:34 2012 +0200
+++ b/src/org/openbravo/erpCommon/ad_forms/DocFINReconciliation.java	Fri May 25 14:47:07 2012 +0200
@@ -543,18 +543,6 @@
         }
       }
       String Fact_Acct_Group_ID = SequenceIdData.getUUID();
-      FIN_Reconciliation reconciliation = OBDal.getInstance().get(FIN_Reconciliation.class,
-          Record_ID);
-      OBCriteria<FIN_FinancialAccountAccounting> obCriteria = OBDal.getInstance().createCriteria(
-          FIN_FinancialAccountAccounting.class);
-      obCriteria.add(Restrictions.eq(FIN_FinancialAccountAccounting.PROPERTY_ACCOUNT,
-          reconciliation.getAccount()));
-      obCriteria.add(Restrictions.eq(FIN_FinancialAccountAccounting.PROPERTY_ACCOUNTINGSCHEMA
-          + ".id", as.m_C_AcctSchema_ID));
-      obCriteria.setFilterOnReadableClients(false);
-      obCriteria.setFilterOnReadableOrganization(false);
-      List<FIN_FinancialAccountAccounting> accounts = obCriteria.list();
-
       for (int i = 0; p_lines != null && i < p_lines.length; i++) {
         DocLine_FINReconciliation line = (DocLine_FINReconciliation) p_lines[i];
         FIN_FinaccTransaction transaction = OBDal.getInstance().get(FIN_FinaccTransaction.class,