From d2485eaae7e0a91c0c9d6aea26dc90de55a33b69 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Wed, 6 Oct 2021 21:49:05 +0800 Subject: [PATCH] fix sales report decimals --- .../MonthlySalesReportSectionComponent.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/resources/assets/vue/components/reports/sections/MonthlySalesReportSectionComponent.vue b/resources/assets/vue/components/reports/sections/MonthlySalesReportSectionComponent.vue index c4a4e237..6737e15c 100644 --- a/resources/assets/vue/components/reports/sections/MonthlySalesReportSectionComponent.vue +++ b/resources/assets/vue/components/reports/sections/MonthlySalesReportSectionComponent.vue @@ -19,15 +19,15 @@

{{(Math.ceil(report.total_cbm * 1000) / 1000).toFixed(3)}}

- {{ Math.ceil((((report.total_cbm / 1000) * 100) * 100) / 100).toFixed(2)}}% - Goal: 1000 CBM + {{ (report.total_cbm / 800).toFixed(2)}}% + Goal: 800 CBM
-
+
@@ -50,7 +50,7 @@

{{report.activated_orders}}

- {{ Math.ceil((((report.activated_orders / report.total_orders) * 100) * 100) / 100).toFixed(2)}}% + {{ (report.activated_orders / report.total_orders).toFixed(2)}}% Created Orders: {{report.total_orders}}
@@ -58,7 +58,7 @@
-
+
@@ -81,7 +81,7 @@

{{report.active_customers}}

- {{ Math.ceil((((report.active_customers / report.total_customers) * 100) * 100) / 100).toFixed(2)}}% + {{ (report.active_customers / report.total_customers).toFixed(2)}}% Total Customers: {{report.total_customers}}
@@ -89,7 +89,7 @@
-
+
@@ -112,7 +112,7 @@

{{report.new_customers}}

- {{ Math.ceil((((report.new_converted_customers / report.new_customers) * 100) * 100) / 100).toFixed(2)}}% + {{ (report.new_converted_customers / report.new_customers).toFixed(2)}}% Confirmed Order: {{report.new_converted_customers}}
@@ -120,7 +120,7 @@
-
+