From d228940938ca52def81ec0b84a2f6a2ded6fbbef Mon Sep 17 00:00:00 2001 From: omair saleh Date: Sun, 19 Dec 2021 19:55:08 +0800 Subject: [PATCH] fix purchase order input bug --- .../bookings/forms/EditBookingAmountFormComponent.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/assets/vue/components/bookings/forms/EditBookingAmountFormComponent.vue b/resources/assets/vue/components/bookings/forms/EditBookingAmountFormComponent.vue index 0fa5e1ee..fae70c89 100644 --- a/resources/assets/vue/components/bookings/forms/EditBookingAmountFormComponent.vue +++ b/resources/assets/vue/components/bookings/forms/EditBookingAmountFormComponent.vue @@ -11,8 +11,8 @@
- - + +
@@ -43,7 +43,7 @@ return { error: '', parameters: { - fix_amount: this.data.amount + fix_amount: (Math.round((this.data.amount + Number.EPSILON) * 100) / 100).toFixed(2) } } }, @@ -54,7 +54,7 @@ }, watch: { 'data': function() { - this.parameters.fix_amount = this.data.amount; + this.parameters.fix_amount = (Math.round((this.data.amount + Number.EPSILON) * 100) / 100).toFixed(2); } }, methods: {