Historic bill fix decimal

This commit is contained in:
Luca Haid
2025-01-21 08:47:46 +00:00
parent 977c4eb399
commit ec39072a39
2 changed files with 6 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ class HistoricBillController extends TTCrud {
['key' => 'address2', 'text' => 'Adresse 2', 'required' => true],
['key' => 'address3', 'text' => 'Adresse 3', 'required' => true],
['key' => 'address4', 'text' => 'Adresse 4', 'required' => true],
['key' => 'brutto_sum', 'text' => 'Brutto Summe', 'required' => true],
['key' => 'brutto_sum', 'text' => 'Brutto Summe', 'required' => true, 'table' => ['class' => 'text-right']],
['key' => 'fibu_number', 'text' => 'FIBU', 'required' => true],
['key' => 'date_outgoing', 'text' => 'Ausgangsdatum', 'required' => true],
];

View File

@@ -7,6 +7,11 @@ Vue.component('historic-bill', {
<template v-slot:invoice_number="{ row }">
<a :href="'/HistoricBillData/' + row.invoice_number + '_' + row.cinvoice_number +'.pdf'" target="_blank">{{ row.invoice_number }}</a>
</template>
<!-- brutto_sum always show 2 decimal with €-->
<template v-slot:brutto_sum="{ row }">
<span class="text-right">€ {{ row.brutto_sum.toFixed(2) }}</span>
</template>
</tt-table-crud>
</tt-card>