Merge branch 'master' into frontend-performance-improvements

This commit is contained in:
Darko Gjorgjijoski
2025-05-05 02:24:27 +02:00
committed by GitHub
257 changed files with 30966 additions and 11128 deletions

View File

@@ -264,22 +264,12 @@ const quantity = computed({
const price = computed({
get: () => {
const price = props.itemData.price
if (parseFloat(price) > 0) {
return price / 100
}
return price
return price / 100
},
set: (newValue) => {
if (parseFloat(newValue) > 0) {
let price = Math.round(newValue * 100)
updateItemAttribute('price', price)
} else {
updateItemAttribute('price', newValue)
}
let price = Math.round(newValue * 100)
updateItemAttribute('price', price)
setDiscount()
},
})