This commit is contained in:
parent
26a224eeda
commit
0af89e7ecf
2 changed files with 391 additions and 9 deletions
|
|
@ -2953,8 +2953,8 @@ export class ReportController extends Controller {
|
|||
* @summary 04-แบบ ลจ.กทม.1-รายชื่อลูกจ้างผู้สมควรได้เลื่อนขั้นค่าจ้าง
|
||||
*
|
||||
*/
|
||||
@Get("emp-04/{rootId}/{salaryPeriodId}")
|
||||
async SalaryReportEmp1_4(@Path() rootId: string, @Path() salaryPeriodId: string) {
|
||||
@Get("emp-04/{rootId}/{salaryPeriodId}/{type}")
|
||||
async SalaryReportEmp1_4(@Path() rootId: string, @Path() salaryPeriodId: string, @Path() type: string = 'ALL') {
|
||||
const salaryPeriod = await this.salaryPeriodRepository.findOne({
|
||||
where: {
|
||||
id: salaryPeriodId,
|
||||
|
|
@ -2970,11 +2970,21 @@ export class ReportController extends Controller {
|
|||
salaryPeriodId: salaryPeriodId,
|
||||
},
|
||||
};
|
||||
|
||||
condition.type = In(["HAFT", "FULL", "FULLHAFT"]);
|
||||
if(salaryPeriod.period == "APR"){
|
||||
condition.type = In(["HAFT", "FULL"]);
|
||||
if(type == "HAFT"){
|
||||
condition.type = "HAFT";
|
||||
}else if(type == "FULL"){
|
||||
condition.type = "FULL";
|
||||
}
|
||||
}else{
|
||||
condition.type = In(["HAFT", "FULL", "FULLHAFT"]);
|
||||
if(type == "HAFT"){
|
||||
condition.type = "HAFT";
|
||||
}else if(type == "FULL"){
|
||||
condition.type = "FULL";
|
||||
}else if(type == "FULLHAFT"){
|
||||
condition.type = "FULLHAFT";
|
||||
}
|
||||
}
|
||||
|
||||
const _salaryPeriod = await this.salaryProfileEmployeeRepository.find({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue