1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

always use debit text

This commit is contained in:
Peng DU 2016-07-19 18:49:54 +02:00
parent 5d84dcb666
commit 56f2ea4172

View File

@ -13,10 +13,7 @@
<td>{{ t.created_at | amDateFormat:'L' }}</td>
<td>
<span ng-if="t.transaction_type == 'credit'" translate>{{ 'credit' }}</span>
<span ng-if="t.transaction_type == 'debit' && t.transactable_type == 'Subscription'" translate>{{ 'debit_subscription' }}</span>
<span ng-if="t.transaction_type == 'debit' && t.transactable_type == 'Reservation' && t.transactable.reservable_type == 'Training'" translate>{{ 'debit_reservation_training' }}</span>
<span ng-if="t.transaction_type == 'debit' && t.transactable_type == 'Reservation' && t.transactable.reservable_type == 'Machine'" translate>{{ 'debit_reservation_machine' }}</span>
<span ng-if="t.transaction_type == 'debit' && t.transactable_type == 'Reservation' && t.transactable.reservable_type == 'Event'" translate>{{ 'debit_reservation_event' }}</span>
<span ng-if="t.transaction_type == 'debit'" translate>{{ 'debit' }}</span>
</td>
<td>{{ t.user.full_name }}</td>
<td ng-class="{'green':t.transaction_type == 'credit', 'red':t.transaction_type == 'debit'}">