Skip to content

Commit

Permalink
fix(invoices): currency right-align
Browse files Browse the repository at this point in the history
The currency is now right-aligned on the invoice registry for
faster comparison.  It also matches the footer.
  • Loading branch information
jniles committed Jul 28, 2017
1 parent 5a04825 commit 19da4f7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/src/modules/invoices/registry/registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ function InvoiceRegistryController(
field : 'cost',
displayName : 'TABLE.COLUMNS.COST',
headerCellFilter : 'translate',
cellClass : 'text-right',
cellFilter : 'currency:'.concat(Session.enterprise.currency_id),
aggregationType : uiGridConstants.aggregationTypes.sum,
aggregationHideLabel : true,
Expand Down Expand Up @@ -161,9 +162,9 @@ function InvoiceRegistryController(
// startup function. Checks for cached filters and loads them. This behavior could be changed.
function startup() {
if ($state.params.filters) {
// Fix me, generate change dynamically
// Fix me, generate change dynamically
var change = [{ key : $state.params.filters.key, value : $state.params.filters.value }];

Invoices.filters.replaceFilters(change);
Invoices.cacheFilters();
}
Expand Down

0 comments on commit 19da4f7

Please sign in to comment.