From bd506b433c8a4cddef0ad902c45ee543cdcb95ff Mon Sep 17 00:00:00 2001 From: Jonathan Niles Date: Wed, 16 Aug 2017 10:45:24 +0100 Subject: [PATCH] fix(Trial Balance): ensure grid export works This commit ensures the export method is called when the export link is clicked on the Trial Balance. --- client/src/modules/journal/trial-balance/overview.js | 2 +- .../src/modules/journal/trial-balance/structure.html | 10 ++++++---- .../journal/trial-balance/trial-balance.ctrl.js | 4 +++- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/client/src/modules/journal/trial-balance/overview.js b/client/src/modules/journal/trial-balance/overview.js index 5d52f17c48..206e041100 100644 --- a/client/src/modules/journal/trial-balance/overview.js +++ b/client/src/modules/journal/trial-balance/overview.js @@ -87,7 +87,7 @@ function TrialBalanceOverviewController(Session, TrialBalance, Notify, uiGridCon vm.gridApi = api; // TODO - should we really cache the trial balance transactions? - api.expandable.on.rowExpandedStateChanged(null, loadSubGridRecords); + // api.expandable.on.rowExpandedStateChanged(null, loadSubGridRecords); } function loadSubGridRecords(row) { diff --git a/client/src/modules/journal/trial-balance/structure.html b/client/src/modules/journal/trial-balance/structure.html index ae99cc12a6..7777c37507 100644 --- a/client/src/modules/journal/trial-balance/structure.html +++ b/client/src/modules/journal/trial-balance/structure.html @@ -10,14 +10,16 @@ - - POSTING_JOURNAL.TRIAL_BALANCE.HAS_ERRORS + + + POSTING_JOURNAL.TRIAL_BALANCE.HAS_ERRORS - - POSTING_JOURNAL.TRIAL_BALANCE.IS_BALANCED + + + POSTING_JOURNAL.TRIAL_BALANCE.IS_BALANCED diff --git a/client/src/modules/journal/trial-balance/trial-balance.ctrl.js b/client/src/modules/journal/trial-balance/trial-balance.ctrl.js index 80e49e5fab..d54b3bdf23 100644 --- a/client/src/modules/journal/trial-balance/trial-balance.ctrl.js +++ b/client/src/modules/journal/trial-balance/trial-balance.ctrl.js @@ -29,7 +29,9 @@ function TrialBalanceController(TrialBalance) { } // attach the grid exporter as needed - vm.export = TrialBalance.exportGrid; + vm.export = function exporter() { + TrialBalance.exportGrid(); + }; startup(); }