fix amountOld

This commit is contained in:
Bright 2024-11-18 13:51:25 +07:00
parent d08b4ca723
commit 9e99e985cd
7 changed files with 16 additions and 13 deletions

View file

@ -941,7 +941,7 @@ namespace BMA.EHR.Placement.Service.Controllers
? p.PositionOld == null ? $"{p.rootOld}" : $"{p.PositionOld}/{p.rootOld}" : "-",
OldPositionType = p.PositionTypeOld ?? "-",
OldPositionLevel = p.PositionLevelOld ?? "-",
OldSalary = p.Amount == null ? "-" : p.Amount.Value.ToNumericNoDecimalText().ToThaiNumber(),
OldSalary = p.AmountOld == null ? "-" : p.AmountOld.Value.ToNumericNoDecimalText().ToThaiNumber(),
NewOc = p.root == null ? p.position == null ? "-" : $"{p.position}/-" :
p.node == 4
? p.position == null ? $"{p.child4}/{p.child3}/{p.child2}/{p.child1}/{p.root}" : $"{p.position}/{p.child4}/{p.child3}/{p.child2}/{p.child1}/{p.root}" :