This commit is contained in:
parent
5caa7db75a
commit
7c6991abe5
4 changed files with 70 additions and 70 deletions
|
|
@ -1516,16 +1516,16 @@ export class ProfileSalaryTempController extends Controller {
|
|||
const before = structuredClone(record);
|
||||
|
||||
Object.assign(record, body);
|
||||
// // 12,15,16 isGovernment = false & dateGovernment = commandDateAffect
|
||||
// if (["12", "15", "16"].includes(body.commandCode ?? "")) {
|
||||
// record.isGovernment = false;
|
||||
// if (body.commandDateAffect) record.dateGovernment = body.commandDateAffect;
|
||||
// }
|
||||
// // 1,2,3,4,10,11,20 isGovernment = true & dateGovernment = commandDateAffect
|
||||
// else if (["1", "2", "3", "4", "10", "11", "20"].includes(body.commandCode ?? "")) {
|
||||
// record.isGovernment = true;
|
||||
// if (body.commandDateAffect) record.dateGovernment = body.commandDateAffect;
|
||||
// }
|
||||
// 12,15,16 isGovernment = false & dateGovernment = commandDateAffect
|
||||
if (["12", "15", "16"].includes(body.commandCode ?? "")) {
|
||||
record.isGovernment = false;
|
||||
if (body.commandDateAffect) record.dateGovernment = body.commandDateAffect;
|
||||
}
|
||||
// 1,2,3,4,10,11,20 isGovernment = true & dateGovernment = commandDateAffect
|
||||
else if (["1", "2", "3", "4", "10", "11", "20"].includes(body.commandCode ?? "")) {
|
||||
record.isGovernment = true;
|
||||
if (body.commandDateAffect) record.dateGovernment = body.commandDateAffect;
|
||||
}
|
||||
|
||||
record.isEdit = true;
|
||||
record.lastUpdateUserId = req.user.sub;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue