Procházet zdrojové kódy

update dashboard (fix bugs)

tags/Baseline_30082024_FRONTEND_UAT
cyril.tsui před 1 rokem
rodič
revize
b925a8cdb4
2 změnil soubory, kde provedl 5 přidání a 4 odebrání
  1. +2
    -2
      src/components/CreateProject/ProjectClientDetails.tsx
  2. +3
    -2
      src/components/StaffUtilization/StaffUtilization.tsx

+ 2
- 2
src/components/CreateProject/ProjectClientDetails.tsx Zobrazit soubor

@@ -344,7 +344,7 @@ const ProjectClientDetails: React.FC<Props> = ({
/>
</Grid>

<Grid item xs={6}>
{/* <Grid item xs={6}>
<Checkbox
{...register("isClpProject")}
checked={Boolean(watch("isClpProject"))}
@@ -353,7 +353,7 @@ const ProjectClientDetails: React.FC<Props> = ({
<Typography variant="overline" display="inline">
{t("CLP Project")}
</Typography>
</Grid>
</Grid> */}
</Grid>
</Box>



+ 3
- 2
src/components/StaffUtilization/StaffUtilization.tsx Zobrazit soubor

@@ -362,7 +362,7 @@ const StaffUtilization: React.FC<Props> = ({ abilities, staff }) => {
const startCount = weeklyPlanned[i].startCount
const endCount = weeklyPlanned[i].endCount
for (var j = 0; j < weeklyPlanned[i].searchDuration; j++) {
if (j >= startCount && j < endCount) {
if (j >= startCount && j <= endCount) {
weeklyPlannedSubList.push(weeklyPlanned[i].AverageManhours)
} else {
weeklyPlannedSubList.push(0)
@@ -503,7 +503,8 @@ const StaffUtilization: React.FC<Props> = ({ abilities, staff }) => {


const fetchMonthlyUnsubmittedData = async () => {
const fetchResult = await fetchMonthlyUnsubmit(teamUnsubmitTeamId, unsubmitMonthlyFromValue.format('YYYY-MM-DD'), unsubmitMonthlyToValue.endOf('month').format('YYYY-MM-DD'), holidayDates);
const fetchResult = await fetchMonthlyUnsubmit(teamUnsubmitTeamId, unsubmitMonthlyFromValue.startOf('month').format('YYYY-MM-DD'), unsubmitMonthlyToValue.endOf('month').format('YYYY-MM-DD'), holidayDates);

const result = []
const staffList = []
var maxValue = 5


Načítá se…
Zrušit
Uložit