mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-05-29 14:44:55 +00:00
Merge branch 'master' into frontend-performance-improvements
This commit is contained in:
@@ -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()
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user