This commit is contained in:
AdisakKanthawilang 2024-05-08 14:10:22 +07:00
parent f3c66103a9
commit b63d998442
2 changed files with 8 additions and 4 deletions

View file

@ -342,8 +342,8 @@ export class kpiPlanController extends Controller {
id: kpiPlan.id,
// year: kpiPlan.kpiPeriod == null ? null : kpiPlan.kpiPeriod.year,
// round: kpiPlan.kpiPeriod == null ? null : kpiPlan.kpiPeriod.durationKPI,
year: kpiPlan.kpiPeriod == null ? null : kpiPlan.year,
round: kpiPlan.kpiPeriod == null ? null : kpiPlan.period,
year: kpiPlan.year == null ? null : kpiPlan.year,
round: kpiPlan.period == null ? null : kpiPlan.period,
kpiPeriodId: kpiPlan.kpiPeriodId,
including: kpiPlan.including,
includingName: kpiPlan.includingName,

View file

@ -296,8 +296,10 @@ export class kpiRoleController extends Controller {
}
const formattedData = {
id: kpiRole.id,
year: kpiRole.kpiPeriod == null ? null : kpiRole.kpiPeriod.year,
round: kpiRole.kpiPeriod == null ? null : kpiRole.kpiPeriod.durationKPI,
// year: kpiRole.kpiPeriod == null ? null : kpiRole.kpiPeriod.year,
// round: kpiRole.kpiPeriod == null ? null : kpiRole.kpiPeriod.durationKPI,
year: kpiRole.year == null ? null : kpiRole.year,
round: kpiRole.period == null ? null : kpiRole.period,
kpiPeriodId: kpiRole.kpiPeriodId,
including: kpiRole.including,
includingName: kpiRole.includingName,
@ -321,6 +323,8 @@ export class kpiRoleController extends Controller {
nodeName: nodeName,
orgRevisionId: kpiRole.orgRevisionId,
position: kpiRole.position,
documentInfoEvidence: kpiRole.documentInfoEvidence,
};
return new HttpSuccess(formattedData);
}