This commit is contained in:
AdisakKanthawilang 2025-05-01 16:20:51 +07:00
parent 85377ca291
commit aaaeb6cc00

View file

@ -2765,6 +2765,7 @@ export class SalaryPeriodController extends Controller {
salaryProfileNew.amountUse = salaryOld == null ? 0 : salaryOld.amountUse; salaryProfileNew.amountUse = salaryOld == null ? 0 : salaryOld.amountUse;
salaryProfileNew.positionSalaryAmount = salaryProfileNew.positionSalaryAmount =
salaryOld == null ? 0 : salaryOld.positionSalaryAmount; salaryOld == null ? 0 : salaryOld.positionSalaryAmount;
salaryProfileNew.remark = salaryOld == null ? null : salaryOld.remark;
salaryProfileNew.isNext = salaryOld == null ? false : salaryOld.isNext; salaryProfileNew.isNext = salaryOld == null ? false : salaryOld.isNext;
salaryProfileNew.isSpecial = salaryOld == null ? false : salaryOld.isSpecial; salaryProfileNew.isSpecial = salaryOld == null ? false : salaryOld.isSpecial;
salaryProfileNew.isReserve = salaryOld == null ? false : salaryOld.isReserve; salaryProfileNew.isReserve = salaryOld == null ? false : salaryOld.isReserve;
@ -2834,6 +2835,11 @@ export class SalaryPeriodController extends Controller {
salaryProfileNew.amountUse = salaryOld == null ? 0 : salaryOld.amountUse; salaryProfileNew.amountUse = salaryOld == null ? 0 : salaryOld.amountUse;
salaryProfileNew.positionSalaryAmount = salaryProfileNew.positionSalaryAmount =
salaryOld == null ? 0 : salaryOld.positionSalaryAmount; salaryOld == null ? 0 : salaryOld.positionSalaryAmount;
salaryProfileNew.positionSalaryDayAmount =
salaryOld == null ? 0 : salaryOld.positionSalaryDayAmount;
salaryProfileNew.positionSalaryAmountPer =
salaryOld == null ? 0 : salaryOld.positionSalaryAmountPer;
salaryProfileNew.remark = salaryOld == null ? null : salaryOld.remark;
salaryProfileNew.isNext = salaryOld == null ? false : salaryOld.isNext; salaryProfileNew.isNext = salaryOld == null ? false : salaryOld.isNext;
salaryProfileNew.isSpecial = salaryOld == null ? false : salaryOld.isSpecial; salaryProfileNew.isSpecial = salaryOld == null ? false : salaryOld.isSpecial;
salaryProfileNew.isReserve = salaryOld == null ? false : salaryOld.isReserve; salaryProfileNew.isReserve = salaryOld == null ? false : salaryOld.isReserve;
@ -3083,7 +3089,9 @@ export class SalaryPeriodController extends Controller {
}), }),
); );
} }
console.log(
`✅✅✅ [SNAPSHOT:${snapshot} เสร็จสิ้น]) ✅✅✅`,
);
return new HttpSuccess(); return new HttpSuccess();
} catch (err) { } catch (err) {
console.error(`❌ error processing employee:`, err); console.error(`❌ error processing employee:`, err);