Added paid donation amount and status to donation detail

ref #133
This commit is contained in:
Nicolai Ort 2021-04-15 14:17:28 +02:00
parent 961477d522
commit 5645eeaafa
3 changed files with 23 additions and 2 deletions

View File

@ -219,7 +219,24 @@
<span>{(editable.amount / 100) <span>{(editable.amount / 100)
.toFixed(2) .toFixed(2)
.toLocaleString('de-DE', { valute: 'EUR' })}€</span> .toLocaleString('de-DE', { valute: 'EUR' })}€</span>
|
<span
class="font-medium text-gray-700">{$_('paid-amount')}:</span>
<span>{(editable.paidAmount / 100)
.toFixed(2)
.toLocaleString('de-DE', { valute: 'EUR' })}€</span>
|
<span
class="font-medium text-gray-700">{$_('status')}:</span>
{#if editable.status =="PAID"}
<span
class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">{$_('paid')}</span>
{:else}
<span
class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">{$_('open')}</span>
{/if}
</div> </div>
<br>
<div class=" w-full"> <div class=" w-full">
<label <label
for="donor" for="donor"

View File

@ -434,5 +434,7 @@
"you-must-create-at-least-one-card-or-cancel": "Du musst mindestens eine Blankokarte erstellen (oder abbrechen).", "you-must-create-at-least-one-card-or-cancel": "Du musst mindestens eine Blankokarte erstellen (oder abbrechen).",
"zip-postal-code": "Postleitzahl", "zip-postal-code": "Postleitzahl",
"total-paid-amount": "Gezahlter Gesamtbetrag", "total-paid-amount": "Gezahlter Gesamtbetrag",
"paid-amount": "Gezahlter Betrag" "paid-amount": "Gezahlter Betrag",
"paid": "BEZAHLT",
"open": "OFFEN"
} }

View File

@ -434,5 +434,7 @@
"you-must-create-at-least-one-card-or-cancel": "You must create at least one card (or cancel).", "you-must-create-at-least-one-card-or-cancel": "You must create at least one card (or cancel).",
"zip-postal-code": "ZIP/ postal code", "zip-postal-code": "ZIP/ postal code",
"total-paid-amount": "Total paid amount", "total-paid-amount": "Total paid amount",
"paid-amount": "Paid amount" "paid-amount": "Paid amount",
"paid": "PAID",
"open": "OPEN"
} }