Skip to content

Commit

Permalink
fix(journal): trial balance errors show trans_id (#1596)
Browse files Browse the repository at this point in the history
The API to the Trial Balance changed for performance reasons, however, the error state was not
updated correctly and did not show the trans_ids affected by the errors.  This commit fixes that
issue.

Closes #1594.
  • Loading branch information
jniles committed May 4, 2017
1 parent 6b2fdcd commit 22c70f3
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions client/src/modules/journal/modals/trialBalanceError.body.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,18 @@ TrialBalanceErrorBodyController.$inject = [
function TrialBalanceErrorBodyController(trialBalanceService, Grouping, $stateParams) {
var vm = this;
var cssClass = trialBalanceService.getCSSClass($stateParams.feedBack);
var columns = [
{ field: 'code', displayName : 'TABLE.COLUMNS.ERROR_TYPE', headerCellFilter : 'translate', headerCellClass : cssClass},
{ field: 'transaction', displayName : 'TABLE.COLUMNS.TRANSACTION', headerCellFilter : 'translate', headerCellClass : cssClass}
];

var columns = [{
field : 'code',
displayName : 'TABLE.COLUMNS.ERROR_TYPE',
headerCellFilter : 'translate',
headerCellClass : cssClass,
}, {
field : 'trans_id',
displayName : 'TABLE.COLUMNS.TRANSACTION',
headerCellFilter : 'translate',
headerCellClass : cssClass,
}];

vm.gridOptions = {
enableColumnMenus : false,
Expand Down

0 comments on commit 22c70f3

Please sign in to comment.