Skip to content

Commit 0dd19b4

Browse files
fix: Use issued-at for event invoice (#5199)
1 parent e0e232f commit 0dd19b4

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

app/controllers/account/billing/invoices/list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
1717
},
1818
{
1919
name : 'Date',
20-
valuePath : 'createdAt',
20+
valuePath : 'issuedAt',
2121
isSortable : true
2222
},
2323
{

app/models/event-invoice.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default ModelBase.extend({
1414
transactionId : attr('string'),
1515
brand : attr('string'),
1616
createdAt : attr('moment'),
17+
issuedAt : attr('moment'),
1718
paymentMode : attr('string'),
1819
stripeToken : attr('string'),
1920
last4 : attr('string'),

app/routes/account/billing/invoices/list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default class extends Route.extend(EmberTableRouteMixin) {
3535
val : null
3636
},
3737
{
38-
name : 'created-at',
38+
name : 'issued-at',
3939
op : 'ge',
4040
val : moment().subtract(30, 'days').toISOString()
4141
}

app/templates/components/event-invoice/invoice-summary.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<tbody>
2727
<tr>
2828
<td>{{this.event.name}}</td>
29-
<td>{{moment-format this.data.createdAt 'MM/DD/YYYY'}}</td>
29+
<td>{{moment-format this.data.issuedAt 'MM/DD/YYYY'}}</td>
3030
<td>{{moment-format this.data.completedAt 'MM/DD/YYYY'}}</td>
3131
<td>{{currency-symbol this.eventCurrency}} {{format-money this.data.amount}}</td>
3232
</tr>

app/templates/event-invoice/review.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<strong>{{t 'Event Name'}}:</strong> {{this.model.event.name}}
1616
</div>
1717
<div class="item">
18-
<strong>{{t 'Date Issued'}}:</strong> {{moment-format this.model.createdAt 'MM/DD/YYYY'}}
18+
<strong>{{t 'Date Issued'}}:</strong> {{moment-format this.model.issuedAt 'MM/DD/YYYY'}}
1919
</div>
2020
<div class="item">
2121
<strong>{{t 'Total Invoice Amount'}}:</strong> {{currency-symbol this.model.event.paymentCurrency}} {{format-money this.model.amount}}

0 commit comments

Comments
 (0)