From 1afc238993b09a30a63429863053e77ab9fbb154 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Sat, 2 Sep 2023 21:00:46 +0700 Subject: [PATCH] fix bug --- BMA.EHR.Command.Service/Controllers/OrderController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Command.Service/Controllers/OrderController.cs b/BMA.EHR.Command.Service/Controllers/OrderController.cs index 6de87780..3cbcc9ab 100644 --- a/BMA.EHR.Command.Service/Controllers/OrderController.cs +++ b/BMA.EHR.Command.Service/Controllers/OrderController.cs @@ -2643,7 +2643,7 @@ namespace BMA.EHR.Command.Service.Controllers { foreach (var r in receivers) { - var salary = await _repository.GetCommandReceiverSalary(r.PersonalId); + var salary = await _repository.GetCommandReceiverSalary(r.RefRecordId); r.SalaryAmount = salary.SalaryAmount; r.PositionSalaryAmount = salary.PositionSalaryAmount; r.MonthSalaryAmount = salary.MonthSalaryAmount; @@ -2715,7 +2715,7 @@ namespace BMA.EHR.Command.Service.Controllers { foreach (var r in receivers) { - var salary = await _repository.GetCommandReceiverSalary(r.PersonalId); + var salary = await _repository.GetCommandReceiverSalary(r.RefRecordId); r.SalaryAmount = salary.SalaryAmount; r.PositionSalaryAmount = salary.PositionSalaryAmount; r.MonthSalaryAmount = salary.MonthSalaryAmount;