Skip to content

Commit

Permalink
fix(Trial Balance): ensure grid export works
Browse files Browse the repository at this point in the history
This commit ensures the export method is called when the export link is
clicked on the Trial Balance.
  • Loading branch information
jniles committed Sep 25, 2017
1 parent 8009e59 commit bd506b4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion client/src/modules/journal/trial-balance/overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
10 changes: 6 additions & 4 deletions client/src/modules/journal/trial-balance/structure.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@
</li>

<span class="badge badge-danger" ng-show="TrialBalanceCtrl.showErrorMessage">
<strong translate translate-values="{ numErrors : TrialBalanceCtrl.numErrors }">
POSTING_JOURNAL.TRIAL_BALANCE.HAS_ERRORS
<strong>
<i class="fa fa-times-circle-o"></i>
<span translate translate-values="{ numErrors : TrialBalanceCtrl.numErrors }">POSTING_JOURNAL.TRIAL_BALANCE.HAS_ERRORS</span>
</strong>
</span>

<span class="badge badge-success" ng-show="TrialBalanceCtrl.showSuccessMessage">
<strong translate>
POSTING_JOURNAL.TRIAL_BALANCE.IS_BALANCED
<strong>
<i class="fa fa-check-circle-o"></i>
<span translate>POSTING_JOURNAL.TRIAL_BALANCE.IS_BALANCED</span>
</strong>
</span>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ function TrialBalanceController(TrialBalance) {
}

// attach the grid exporter as needed
vm.export = TrialBalance.exportGrid;
vm.export = function exporter() {
TrialBalance.exportGrid();
};

startup();
}

0 comments on commit bd506b4

Please sign in to comment.