fix employee

This commit is contained in:
Adisak 2025-10-30 18:12:31 +07:00
parent 31d7902b88
commit 8a96794e53

View file

@ -11052,6 +11052,12 @@ export class ReportController extends Controller {
acc[key] = { ...curr, total: 1 };
} else {
acc[key].total += 1;
acc[key].total += 1;
const combinedPositions = new Set([
...acc[key].positions.split(", "),
...curr.positions.split(", "),
]);
acc[key].positions = Array.from(combinedPositions).join(", ");
}
return acc;
}, {});