Skip to content

Commit

Permalink
Add juridiction col to ETPT AJUST extractor
Browse files Browse the repository at this point in the history
  • Loading branch information
MrJimmyChevallier committed Mar 3, 2025
1 parent f3b0a0f commit 2100222
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/src/utils/extractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -935,6 +935,7 @@ export const computeExtract = async (
Fonction: fonctionName,
["Fonction recodée"]: null,
["TJCPH"]:null,
["Juridiction"]:null,
Jirs: isJirs ? "x" : "",
["Date d'arrivée"]:
human.dateStart === null
Expand Down
14 changes: 14 additions & 0 deletions front/src/app/services/excel/excel.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,7 @@ export class ExcelService extends MainClass {
report.worksheets[etptAjustIndex].columns[7].width = 0;
report.worksheets[etptAjustIndex].columns[8].width = 0;
report.worksheets[etptAjustIndex].columns[9].width = 0;
report.worksheets[etptAjustIndex].columns[10].width = 0;
}

const agregatIndex =
Expand Down Expand Up @@ -1452,6 +1453,19 @@ export class ExcelService extends MainClass {
result: '',
};

const indexJuridictionAjust = this.getExcelFormulaFormat(
['Juridiction'],
indexCell,
viewModel.days
);

report.worksheets[indexTabAjust].getCell(indexJuridictionAjust).value = {
formula:
"='ETPT Format DDG'!" +
this.getExcelFormulaFormat(['Juridiction'], indexCell, viewModel.days1),
result: '',
};

return report;
}
}
Binary file modified front/src/assets/template4.xlsx
Binary file not shown.

0 comments on commit 2100222

Please sign in to comment.