เงินเดือนไม่มีค่าให้เป็นnull

This commit is contained in:
Kittapath 2024-02-29 14:07:27 +07:00
parent 6791dde26f
commit 0888d3d8d8
3 changed files with 30 additions and 15 deletions

View file

@ -388,7 +388,7 @@ export class SalaryPeriodController extends Controller {
if (body.type == "NONE") {
salaryProfile.amountSpecial = 0;
salaryProfile.amountUse = 0;
salaryProfile.positionSalaryAmount = salaryProfile.amount;
salaryProfile.positionSalaryAmount = salaryProfile.amount == null ? 0 : salaryProfile.amount;
} else if (body.type == "PENDING") {
salaryProfile.amountSpecial = 0;
salaryProfile.amountUse = 0;