Skip to content

Commit

Permalink
Fixed #10791
Browse files Browse the repository at this point in the history
Signed-off-by: Lawan Samarasekara <[email protected]>
  • Loading branch information
DARKDRAGON-LK committed Feb 28, 2025
1 parent faef70d commit 9273154
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ public void save() {
double count = getInwardBean().calCount(timedItemFee, getCurrent().getPatientEncounter().getDateOfAdmission(), getCurrent().getToTime());

System.out.println("getCurrent().getPatientEncounter().isForiegner() = " + getCurrent().getPatientEncounter().isForiegner());

if (getCurrent().getPatientEncounter().isForiegner()) {
getCurrent().setServiceValue(count * timedItemFee.getFfee());
} else {
Expand Down Expand Up @@ -616,13 +616,13 @@ public void finalizeService(PatientItem pic) {

TimedItemFee timedItemFee = getInwardBean().getTimedItemFee((TimedItem) temPi.getItem());
double count = getInwardBean().calCount(timedItemFee, temPi.getFromTime(), temPi.getToTime());

System.out.println("pic.getPatientEncounter().isForiegner() = " + pic.getPatientEncounter().isForiegner());

if(pic.getPatientEncounter().isForiegner()){
if (pic.getPatientEncounter().isForiegner()) {
System.out.println("timedItemFee.getFfee() = " + timedItemFee.getFfee());
pic.setServiceValue(count * timedItemFee.getFfee());
}else{
} else {
System.out.println("timedItemFee.getFee() = " + timedItemFee.getFee());
pic.setServiceValue(count * timedItemFee.getFee());
}
Expand Down Expand Up @@ -650,12 +650,12 @@ public void createPatientItems() {
for (PatientItem pi : items) {
TimedItemFee timedItemFee = getInwardBean().getTimedItemFee((TimedItem) pi.getItem());
double count = getInwardBean().calCount(timedItemFee, pi.getFromTime(), pi.getToTime());
if(getCurrent().getPatientEncounter().isForiegner()){
if (getCurrent().getPatientEncounter().isForiegner()) {
pi.setServiceValue(count * timedItemFee.getFfee());
}else{
} else {
pi.setServiceValue(count * timedItemFee.getFee());
}

}
}

Expand Down

0 comments on commit 9273154

Please sign in to comment.