Files
thetool/public/js/pages/HistoricBill/HistoricBill.js
2025-01-21 08:47:46 +00:00

24 lines
848 B
JavaScript

Vue.component('historic-bill', {
//language=Vue
template: `
<tt-card>
<tt-table-crud>
<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>
`, data() {
return {
window: window, historyModal: false, historyModalId: null,
}
},
})