From 2a37aa06d5619afad9dc63c9752849b5d5623b62 Mon Sep 17 00:00:00 2001 From: Wahyu Ramadhan Date: Tue, 21 Feb 2023 15:22:30 +0700 Subject: [PATCH] Floor invoice integration --- src/views/Dashboard/DashboardBOD.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/Dashboard/DashboardBOD.js b/src/views/Dashboard/DashboardBOD.js index 39797b4..bbb1397 100644 --- a/src/views/Dashboard/DashboardBOD.js +++ b/src/views/Dashboard/DashboardBOD.js @@ -449,7 +449,7 @@ const DashboardBOD = () => { data: [ PROJECT_EXPENDITURE && PROJECT_EXPENDITURE.total_budget ? PROJECT_EXPENDITURE.total_budget : 0, PROJECT_EXPENDITURE && PROJECT_EXPENDITURE.total_expenditure ? PROJECT_EXPENDITURE.total_expenditure : 0, - PROJECT_EXPENDITURE && PROJECT_EXPENDITURE.total_invoice ? PROJECT_EXPENDITURE.total_invoice : 0, + PROJECT_EXPENDITURE && PROJECT_EXPENDITURE.total_invoice ? Math.floor(PROJECT_EXPENDITURE.total_invoice) : 0, PROJECT_EXPENDITURE && PROJECT_EXPENDITURE.total_paid_invoice ? PROJECT_EXPENDITURE.total_paid_invoice : 0 ], borderColor: ['#480CA8', '#B5179E', '#A26A16', '#4C4747'], @@ -784,7 +784,7 @@ const DashboardBOD = () => { { label: "Invoiced", // data: [16, 8, 12, 10, 13, 12, 10, 10, 8], - data: PROJECT_INVOICE_VS_CASH_IN ? PROJECT_INVOICE_VS_CASH_IN.map((item, idx) => item.invoiced) : [], + data: PROJECT_INVOICE_VS_CASH_IN ? PROJECT_INVOICE_VS_CASH_IN.map((item, idx) => Math.floor(item.invoiced)) : [], borderColor: '#A36A16', backgroundColor: '#A36A16', // borderWidth: 2,