handle credit types
This commit is contained in:
parent
0c63f65aa7
commit
af2b422730
|
@ -96,12 +96,13 @@
|
||||||
<tr *ngFor="let t of transactions">
|
<tr *ngFor="let t of transactions">
|
||||||
<td>{{t.createdDate | date:'mediumDate'}}</td>
|
<td>{{t.createdDate | date:'mediumDate'}}</td>
|
||||||
<td>
|
<td>
|
||||||
<span *ngIf="t.type === transactionType.Charge">{{'chargeNoun' | i18n}}</span>
|
<span *ngIf="t.type === transactionType.Charge || t.type === transactionType.Credit">
|
||||||
|
{{'chargeNoun' | i18n}}
|
||||||
|
</span>
|
||||||
<span *ngIf="t.type === transactionType.Refund">{{'refundNoun' | i18n}}</span>
|
<span *ngIf="t.type === transactionType.Refund">{{'refundNoun' | i18n}}</span>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<i class="fa fa-fw" *ngIf="t.type === transactionType.Charge || t.type === transactionType.Refund"
|
<i class="fa fa-fw" *ngIf="t.paymentMethodType" [ngClass]="{
|
||||||
[ngClass]="{
|
|
||||||
'fa-credit-card': t.paymentMethodType === paymentMethodType.Card,
|
'fa-credit-card': t.paymentMethodType === paymentMethodType.Card,
|
||||||
'fa-university': t.paymentMethodType === paymentMethodType.BankAccount,
|
'fa-university': t.paymentMethodType === paymentMethodType.BankAccount,
|
||||||
'fa-bitcoin text-warning': t.paymentMethodType === paymentMethodType.BitPay,
|
'fa-bitcoin text-warning': t.paymentMethodType === paymentMethodType.BitPay,
|
||||||
|
|
Loading…
Reference in New Issue