From 0f99568eafa3927d3f049c09a2910a56e8345ba9 Mon Sep 17 00:00:00 2001 From: yogesh_gohil Date: Wed, 1 Dec 2021 11:48:32 +0530 Subject: [PATCH] fix: quantity decimal value not allow --- .../components/estimate-invoice-common/CreateItemRow.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/scripts/components/estimate-invoice-common/CreateItemRow.vue b/resources/scripts/components/estimate-invoice-common/CreateItemRow.vue index 14bdaddc..6f8bf14d 100644 --- a/resources/scripts/components/estimate-invoice-common/CreateItemRow.vue +++ b/resources/scripts/components/estimate-invoice-common/CreateItemRow.vue @@ -54,6 +54,7 @@ type="number" small min="1" + step="any" @change="syncItemToStore()" @input="v$.quantity.$touch()" /> @@ -257,7 +258,7 @@ const quantity = computed({ return props.itemData.quantity }, set: (newValue) => { - updateItemAttribute('quantity', parseInt(newValue)) + updateItemAttribute('quantity', parseFloat(newValue)) }, })