details: https://code.openbravo.com/erp/devel/pi/rev/8fef3f886c45 changeset: 35560:8fef3f886c45 user: Mark Molina <mark.molina <at> doceleguas.com> date: Mon Mar 25 22:17:37 2019 -0300 summary: Fixes issue 40333: Advance Filters in Trial Balance is not working
The account from/to filters should be shown just if the Account Level filter is "Subaccount" in any other case it should be hidden as they are used in the report just for this particular case. The display logic of this section/fields was incorrect defined because after a previous search it was setting as TRUE to display the fields if the Advanced Filters section is expanded, but it might take into account also the display logic explained before asking if the selected account level is "Subaccount". When the Advanced filters section is expanded then these fields will be hidden if the selected Account level is different than "Subaccount" diffstat: src/org/openbravo/erpCommon/ad_reports/ReportTrialBalance.html | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diffs (27 lines): diff -r a121302dfba6 -r 8fef3f886c45 src/org/openbravo/erpCommon/ad_reports/ReportTrialBalance.html --- a/src/org/openbravo/erpCommon/ad_reports/ReportTrialBalance.html Mon Mar 18 18:27:33 2019 -0300 +++ b/src/org/openbravo/erpCommon/ad_reports/ReportTrialBalance.html Mon Mar 25 22:17:37 2019 -0300 @@ -13,7 +13,7 @@ * under the License. * The Original Code is Openbravo ERP. * The Initial Developer of the Original Code is Openbravo SLU - * All portions are Copyright (C) 2001-2016 Openbravo SLU + * All portions are Copyright (C) 2001-2019 Openbravo SLU * All Rights Reserved. * Contributor(s): ______________________________________. ************************************************************************ @@ -77,13 +77,12 @@ if (advancedFiltersrow1.style.display == 'none') { displayLogicElement('advancedFiltersrow1', true); displayLogicElement('advancedFiltersrow2', true); - displayLogicElement('AcctFromTo', true); + displayLogicElement('AcctFromTo', (inputValue(document.frmMain.inpLevel) == 'S')); } else{ displayLogicElement('advancedFiltersrow1', false); displayLogicElement('advancedFiltersrow2', false); displayLogicElement('AcctFromTo', false); - } } _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits