Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 25 additions & 17 deletions app/controllers/account/billing/invoices/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
columns = [
{
name : 'Invoice ID',
valuePath : 'id'
valuePath : 'identifier'
},
{
name : 'Name',
name : 'Event Name',
valuePath : 'event',
cellComponent : 'ui-table/cell/events/cell-event-invoice'
},
Expand All @@ -22,8 +22,10 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
valuePath : 'createdAt'
},
{
name : 'Outstanding Amount',
valuePath : 'amount'
name : 'Outstanding Amount',
valuePath : 'amount',
extraValuePaths : ['event'],
cellComponent : 'ui-table/cell/events/cell-amount'
},
{
name : 'View Invoice',
Expand All @@ -34,10 +36,10 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
columns = [
{
name : 'Invoice ID',
valuePath : 'id'
valuePath : 'identifier'
},
{
name : 'Name',
name : 'Event Name',
valuePath : 'event',
cellComponent : 'ui-table/cell/events/cell-event-invoice'
},
Expand All @@ -46,8 +48,10 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
valuePath : 'createdAt'
},
{
name : 'Amount',
valuePath : 'amount'
name : 'Amount',
valuePath : 'amount',
extraValuePaths : ['event'],
cellComponent : 'ui-table/cell/events/cell-amount'
},
{
name : 'Date Paid',
Expand All @@ -63,10 +67,10 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
columns = [
{
name : 'Invoice ID',
valuePath : 'id'
valuePath : 'identifier'
},
{
name : 'Name',
name : 'Event Name',
valuePath : 'event',
cellComponent : 'ui-table/cell/events/cell-event-invoice'

Expand All @@ -76,29 +80,33 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
valuePath : 'createdAt'
},
{
name : 'Amount Due',
valuePath : 'amount'
name : 'Amount Due',
valuePath : 'amount',
extraValuePaths : ['event'],
cellComponent : 'ui-table/cell/events/cell-amount'
},
{
name : 'View Invoice',
valuePath : 'invoicePdfUrl'
}

];
} else if (this.model.params.invoice_status === 'due') {
} else if (this.model.params.invoice_status === 'all') {
columns = [
{
name : 'Invoice ID',
valuePath : 'id'
valuePath : 'identifier'
},
{
name : 'Name',
name : 'Event Name',
valuePath : 'event',
cellComponent : 'ui-table/cell/events/cell-event-invoice'
},
{
name : 'Amount',
valuePath : 'amount'
name : 'Amount',
valuePath : 'amount',
extraValuePaths : ['event'],
cellComponent : 'ui-table/cell/events/cell-amount'
},
{
name : 'Status',
Expand Down
8 changes: 8 additions & 0 deletions app/routes/account/billing/invoices/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import Route from '@ember/routing/route';

export default Route.extend({
beforeModel() {
this._super(...arguments);
this.transitionTo('account.billing.invoices.list', 'all');
}
});
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{currency-symbol extraRecords.event.paymentCurrency}} {{format-number record}}