diff --git a/src/components/PriceAlreadyUploadedListCard.vue b/src/components/PriceAlreadyUploadedListCard.vue
index 4f5bef09af6..8aebfb78686 100644
--- a/src/components/PriceAlreadyUploadedListCard.vue
+++ b/src/components/PriceAlreadyUploadedListCard.vue
@@ -77,7 +77,7 @@ export default {
},
proofPriceUploadedListSum() {
return this.proofPriceUploadedList.reduce((acc, priceUploaded) => {
- return acc + parseFloat(priceUploaded.price)*parseInt(priceUploaded.receipt_quantity)
+ return acc + parseFloat(priceUploaded.price)*parseFloat(priceUploaded.receipt_quantity)
}, 0)
}
},
diff --git a/src/components/PriceInputRow.vue b/src/components/PriceInputRow.vue
index 3c3fbcefce0..e72ce2bff67 100644
--- a/src/components/PriceInputRow.vue
+++ b/src/components/PriceInputRow.vue
@@ -64,7 +64,7 @@
density="compact"
:label="$t('Common.QuantityBought')"
type="text"
- inputmode="numeric"
+ inputmode="decimal"
:rules="receiptQuantityRules"
:prepend-inner-icon="PROOF_TYPE_RECEIPT_ICON"
hide-details="auto"
@@ -143,7 +143,7 @@ export default {
if (!this.priceForm.receipt_quantity) return [() => true] // optional field
return [
value => !isNaN(value) || this.$t('PriceRules.Number'),
- value => Number(value) >= 1 || this.$t('PriceRules.Positive'),
+ value => Number(value) >= 0 || this.$t('PriceRules.Positive'),
]
},
productIsTypeCategory() {
diff --git a/src/components/PricePriceRow.vue b/src/components/PricePriceRow.vue
index bd55b7450a5..99eff78bb87 100644
--- a/src/components/PricePriceRow.vue
+++ b/src/components/PricePriceRow.vue
@@ -9,7 +9,7 @@
{{ $t('PriceCard.FullPrice') }} {{ getPriceValueDisplay(price.price_without_discount) }}
-
+
x{{ price.receipt_quantity }}