diff --git a/src/controllers/SalaryPeriodController.ts b/src/controllers/SalaryPeriodController.ts index 4647c80..fd1fde1 100644 --- a/src/controllers/SalaryPeriodController.ts +++ b/src/controllers/SalaryPeriodController.ts @@ -2765,6 +2765,7 @@ export class SalaryPeriodController extends Controller { salaryProfileNew.amountUse = salaryOld == null ? 0 : salaryOld.amountUse; salaryProfileNew.positionSalaryAmount = salaryOld == null ? 0 : salaryOld.positionSalaryAmount; + salaryProfileNew.remark = salaryOld == null ? null : salaryOld.remark; salaryProfileNew.isNext = salaryOld == null ? false : salaryOld.isNext; salaryProfileNew.isSpecial = salaryOld == null ? false : salaryOld.isSpecial; salaryProfileNew.isReserve = salaryOld == null ? false : salaryOld.isReserve; @@ -2834,6 +2835,11 @@ export class SalaryPeriodController extends Controller { salaryProfileNew.amountUse = salaryOld == null ? 0 : salaryOld.amountUse; salaryProfileNew.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.isSpecial = salaryOld == null ? false : salaryOld.isSpecial; salaryProfileNew.isReserve = salaryOld == null ? false : salaryOld.isReserve; @@ -3083,7 +3089,9 @@ export class SalaryPeriodController extends Controller { }), ); } - + console.log( + `✅✅✅ [SNAPSHOT:${snapshot} เสร็จสิ้น]) ✅✅✅`, + ); return new HttpSuccess(); } catch (err) { console.error(`❌ error processing employee:`, err);