Skip to content

Commit

Permalink
fix(cash): sort registry amounts by number
Browse files Browse the repository at this point in the history
This commit fixes a bug in the sorting algorithm of the amounts.  The
page now sorts amounts by number instead of text.

Closes #176.
  • Loading branch information
Jonathan Niles committed Jan 20, 2017
1 parent ca955d8 commit a32f43f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/partials/cash/payments/registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function CashPaymentRegistryController(Cash, bhConstants, Notify, Session, uiGri
field : 'description', displayName : 'TABLE.COLUMNS.DESCRIPTION', headerCellFilter: 'translate'
}, {
field : 'amount', displayName : 'TABLE.COLUMNS.AMOUNT', headerCellFilter: 'translate',
cellTemplate : 'partials/cash/payments/templates/amount.grid.html',
cellTemplate : 'partials/cash/payments/templates/amount.grid.html', type: 'number',

// @TODO(jniles): This is temporary, as it doesn't take into account USD payments
aggregationType: uiGridConstants.aggregationTypes.sum, aggregationHideLabel : true,
Expand Down

0 comments on commit a32f43f

Please sign in to comment.