diff --git a/src/app/(main)/dashboard/ProjectFinancialSummary/page.tsx b/src/app/(main)/dashboard/ProjectFinancialSummary/page.tsx index 3549f77..fcfd256 100644 --- a/src/app/(main)/dashboard/ProjectFinancialSummary/page.tsx +++ b/src/app/(main)/dashboard/ProjectFinancialSummary/page.tsx @@ -17,7 +17,7 @@ const ProjectFinancialSummary: React.FC = () => { return ( - Project Financial Summary + Financial Summary diff --git a/src/components/CustomerDetail/CustomerDetail.tsx b/src/components/CustomerDetail/CustomerDetail.tsx index 47b47c0..2c81e17 100644 --- a/src/components/CustomerDetail/CustomerDetail.tsx +++ b/src/components/CustomerDetail/CustomerDetail.tsx @@ -75,7 +75,9 @@ const CustomerDetail: React.FC = ({ const customer = await fetchCustomer(parseInt(id)) - if (customer !== null && Object.keys(customer).length > 0) { + console.log(customer) + + if (customer !== null && Object.keys(customer).length > 0 && !Object.values(customer.customer).every(x => x === null)) { const tempCustomerInput = { id: customer.customer.id, code: customer.customer.code ?? "", diff --git a/src/components/DashboardPage/DashboardPage.tsx b/src/components/DashboardPage/DashboardPage.tsx index d3d70c7..7fb107c 100644 --- a/src/components/DashboardPage/DashboardPage.tsx +++ b/src/components/DashboardPage/DashboardPage.tsx @@ -31,9 +31,9 @@ const DashboardPage: React.FC = () => { return ( - + - + diff --git a/src/components/DashboardPage/DashboardTabButton.tsx b/src/components/DashboardPage/DashboardTabButton.tsx index 1f95098..b822605 100644 --- a/src/components/DashboardPage/DashboardTabButton.tsx +++ b/src/components/DashboardPage/DashboardTabButton.tsx @@ -16,7 +16,7 @@ const DashboardTabButton: React.FC = () => { const renderContent = () => { switch (activeTab) { case "financialSummary": - return
Project Financial Summary
; + return
Financial Summary
; case "cashFlow": return
Project Cash Flow
; case "progressByClient": @@ -26,7 +26,7 @@ const DashboardTabButton: React.FC = () => { case "staffUtilization": return
Staff Utilization
; default: - return
Project Financial Summary
; + return
Financial Summary
; } }; const [tabIndex, setTabIndex] = useState(0); @@ -40,16 +40,16 @@ const DashboardTabButton: React.FC = () => { // //
// {activeTab !== 'financialSummary' ? - // : - // + // : + // // } // {activeTab !== 'cashFlow' ? // : // // } // {activeTab !== 'progressByClient' ? - // : - // + // : + // // } // {activeTab !== 'resourceUtilization' ? // : @@ -65,9 +65,9 @@ const DashboardTabButton: React.FC = () => { //
//
- + - + diff --git a/src/components/DashboardPage/ProgressByClient.tsx b/src/components/DashboardPage/ProgressByClient.tsx index 6475c03..2392c97 100644 --- a/src/components/DashboardPage/ProgressByClient.tsx +++ b/src/components/DashboardPage/ProgressByClient.tsx @@ -298,7 +298,7 @@ const ProgressByClient: React.FC = () => { const series: ApexAxisChartSeries | ApexNonAxisChartSeries = [ { - name: "Current Stage Completion Percentage", + name: "Project Resource Consumption Percentage", data: [80, 55, 40, 65, 70], }, ]; @@ -372,7 +372,7 @@ const ProgressByClient: React.FC = () => { }, }, title: { - text: "Current Stage Completion Percentage", + text: "Project Resource Consumption Percentage", align: "center", }, grid: { @@ -426,7 +426,7 @@ const ProgressByClient: React.FC = () => {
- +
, - label: "Project Financial Summary", + label: "Financial Summary", path: "/dashboard/ProjectFinancialSummary", }, { @@ -84,12 +84,12 @@ const navigationItems: NavigationItem[] = [ children: [ { icon: , - label: "ClaimApproval", + label: "Claim Approval", path: "/staffReimbursement/ClaimApproval", }, { icon: , - label: "ClaimSummary", + label: "Claim Summary", path: "/staffReimbursement/ClaimSummary", }, ], diff --git a/src/components/ProgressByClient/ProgressByClient.tsx b/src/components/ProgressByClient/ProgressByClient.tsx index 939f5d3..6815f73 100644 --- a/src/components/ProgressByClient/ProgressByClient.tsx +++ b/src/components/ProgressByClient/ProgressByClient.tsx @@ -333,7 +333,7 @@ const ProgressByClient: React.FC = () => { const series: ApexAxisChartSeries | ApexNonAxisChartSeries = [ { - name: "Current Stage Completion Percentage", + name: "Project Resource Consumption Percentage", data: [80, 55, 40, 65, 70], }, ]; @@ -426,7 +426,7 @@ const ProgressByClient: React.FC = () => { }, }, title: { - text: "Current Stage Completion Percentage", + text: "Project Resource Consumption Percentage", align: "center", }, grid: { @@ -503,7 +503,7 @@ const ProgressByClient: React.FC = () => {
- +
{ const series: ApexAxisChartSeries | ApexNonAxisChartSeries = [ { - name: "Current Stage Completion Percentage", + name: "Project Resource Consumption Percentage", data: [80, 55, 40, 65, 70], }, ]; @@ -403,7 +403,7 @@ const ProgressByTeam: React.FC = () => { }, }, title: { - text: "Current Stage Completion Percentage", + text: "Project Resource Consumption Percentage", align: "center", }, grid: { @@ -480,7 +480,7 @@ const ProgressByTeam: React.FC = () => {
- +
{ className="text-sm font-medium ml-5 mt-2" style={{ color: "#898d8d" }} > - Total A. Receivable + Total Invoiced Amount
{ className="text-sm font-medium ml-5" style={{ color: "#898d8d" }} > - Amount Received + Total Received Amount
{ className="text-sm font-medium ml-5" style={{ color: "#898d8d" }} > - Remaining Balance + Accounts Receivable
{ className="text-sm font-medium ml-5 mt-2" style={{ color: "#898d8d" }} > - Budgeted Expenditure + Total Budget
{ className="text-sm font-medium ml-5" style={{ color: "#898d8d" }} > - Actual Expenditure + Total Cumulative Expenditure
{ className="text-sm font-medium ml-5" style={{ color: "#898d8d" }} > - Remaining Balance + Accounts Receivable
= ({ const subsidiary = await fetchSubsidiary(parseInt(id)) - if (subsidiary !== null && Object.keys(subsidiary).length > 0) { - console.log(subsidiary) + if (subsidiary !== null && Object.keys(subsidiary).length > 0 && !Object.values(subsidiary.subsidiary).every(x => x === null)) { const tempSubsidiaryInput = { id: subsidiary.subsidiary.id, code: subsidiary.subsidiary.code ?? "",