Fixed bug 22842 Show the date when the entries have different Acctdate in JER
authorSandra Huguet <sandra.huguet@openbravo.com>
Mon, 21 Jan 2013 10:31:14 +0100
changeset 19371 da93d8479c9d
parent 19370 7ed16d9929d7
child 19372 0260044c71e2
Fixed bug 22842 Show the date when the entries have different Acctdate in JER
src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedgerJournal.java
--- a/src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedgerJournal.java	Mon Jan 21 13:09:28 2013 +0100
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedgerJournal.java	Mon Jan 21 10:31:14 2013 +0100
@@ -609,7 +609,8 @@
   private ReportGeneralLedgerJournalData[] notshow(ReportGeneralLedgerJournalData[] data,
       VariablesSecureApp vars) {
     for (int i = 0; i < data.length - 1; i++) {
-      if (data[i].identifier.toString().equals(data[i + 1].identifier.toString())) {
+      if ((data[i].identifier.toString().equals(data[i + 1].identifier.toString()))
+          && (data[i].dateacct.toString().equals(data[i + 1].dateacct.toString()))) {
         data[i + 1].newstyle = "visibility: hidden";
       }
     }