bx-1480-calc #81

Merged
ksenia_mikhailova merged 6 commits from bx-1480-calc into dev 2024-10-02 11:16:15 +03:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit c5d39aba91 - Show all commits

View File

@ -189,7 +189,7 @@ const total_txt = computed(() => {
if (isTopper) decor.topper = { txt: 'Колпак', value: getTopperName(pillar_topper.value) }
}
const total = [extra, regular, decor].map(item => Object.values(item).map(el => el ? el.value : 0)).flat().reduce((a, b) => a + b, 0)
const total = [extra, regular].map(item => Object.values(item).map(el => el ? el.value : 0)).flat().reduce((a, b) => a + b, 0)
const res_regular = Object.values(regular).map(item =>
Object.entries(item).map(el => el[0] == 'value' ? roubleSign.format(el[1] as number) : el[1]).join(': ')