feat(project-finance): enhance project finance view and calculations
- Added a new SQL view `project_finance_view` to aggregate project financial data. - Updated `project-finance-controller.ts` to fetch and group tasks by status, priority, or phases, including financial calculations for estimated costs, actual costs, and variances. - Enhanced frontend components to display total time logged, estimated costs, and fixed costs in the finance table. - Introduced new utility functions for formatting hours and calculating totals. - Updated localization files to include new financial columns in English, Spanish, and Portuguese. - Implemented Redux slice for managing project finance state and actions for updating task costs.
This commit is contained in:
7
worklenz-frontend/src/utils/format-hours-to-readable.ts
Normal file
7
worklenz-frontend/src/utils/format-hours-to-readable.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export const formatHoursToReadable = (hours: number) => {
|
||||
return hours / 60;
|
||||
};
|
||||
|
||||
export const convertToHoursMinutes = (hours: number) => {
|
||||
return `${Math.floor(hours / 60)} h ${hours % 60} min`;
|
||||
};
|
||||
Reference in New Issue
Block a user