Merge branch 'main' of git.avatic.de:avatic/lcc_tool

This commit is contained in:
Anja Guenther 2025-09-21 21:18:21 +02:00
commit 9fe7da4a33

View file

@ -21,7 +21,7 @@
</div>
<div class="edit-calculation-cell--price copyable-cell" v-if="showPrice"
@click="action('price')">
<div class="edit-calculation-cell-line">{{ premise.material_cost }} EUR</div>
<div class="edit-calculation-cell-line">{{ toFixed(premise.material_cost) }} EUR</div>
<div class="edit-calculation-cell-line edit-calculation-cell-subline">Oversea share:
{{ toPercent(premise.oversea_share) }} %
</div>
@ -190,6 +190,9 @@ export default {
...mapStores(usePremiseEditStore),
},
methods: {
toFixed(value) {
return value !== null ? (value).toFixed(2) : '0.00';
},
toPercent(value) {
return value !== null ? (value * 100).toFixed(2) : '0.00';
},