Merge branch 'main' of git.avatic.de:avatic/lcc_tool
This commit is contained in:
commit
9fe7da4a33
1 changed files with 4 additions and 1 deletions
|
|
@ -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';
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue