Skip to content

Commit 713032b

Browse files
authored
Merge pull request #11354 from hmislk/11329-improvements-in-laboratory-order-report---outpatient
11329 improvements in laboratory order report outpatient
2 parents 8e4146d + e8cf008 commit 713032b

File tree

4 files changed

+5
-14
lines changed

4 files changed

+5
-14
lines changed

src/main/java/com/divudi/bean/common/BillSearch.java

+2
Original file line numberDiff line numberDiff line change
@@ -2868,6 +2868,8 @@ private List<BillItem> cancelBillItems(Bill originalBill, Bill cancellationBill,
28682868
b.setHospitalFee(0 - nB.getHospitalFee());
28692869
b.setCollectingCentreFee(0 - nB.getCollectingCentreFee());
28702870
b.setStaffFee(0 - nB.getStaffFee());
2871+
b.setReagentFee(0 - nB.getReagentFee());
2872+
b.setOtherFee(0 - nB.getOtherFee());
28712873

28722874
b.setNetValue(0 - nB.getNetValue());
28732875
b.setGrossValue(0 - nB.getGrossValue());

src/main/java/com/divudi/bean/lab/LaborataryReportController.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ public void processLaboratoryOrderReport() {
302302
IncomeRow billItemIncomeRow = new IncomeRow(billItem);
303303
bundle.getRows().add(billItemIncomeRow);
304304
checkInInvestigationBillItem = true;
305-
totalHospitalFee += billItem.getHospitalFee();
305+
totalHospitalFee += (billItem.getHospitalFee() - billItem.getReagentFee()- billItem.getOtherFee());
306306
totalReagentFee += billItem.getReagentFee();
307307
totalOtherFee += billItem.getOtherFee();
308308
totalNetTotal += billItem.getNetValue();
@@ -314,7 +314,6 @@ public void processLaboratoryOrderReport() {
314314
} else {
315315
bundle.getRows().remove(billIncomeRow);
316316
}
317-
318317
}
319318
}
320319

src/main/webapp/reportLab/lab_inward_order_report.xhtml

+2-5
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@
251251
</p:commandButton>
252252
</div>
253253
<p:commandButton
254-
value="Clesr"
254+
value="Clear"
255255
ajax="false"
256256
action="#{laborataryReportController.resetAllFiltersExceptDateRange()}"
257257
class="ui-button-danger m-1"
@@ -260,7 +260,6 @@
260260
</p:commandButton>
261261
</div>
262262

263-
264263
<p:dataTable
265264
id="tbl"
266265
style="padding: 2px!important; margin-top: 10px!important; margin: 0px!important; font-size: 20px!important;"
@@ -322,7 +321,6 @@
322321
</h:outputText>
323322
</div>
324323
</div>
325-
326324
</div>
327325
</f:facet>
328326

@@ -370,7 +368,6 @@
370368
</h:outputText>
371369
</div>
372370
</h:panelGroup>
373-
374371
</div>
375372

376373
<h:outputText
@@ -390,7 +387,7 @@
390387
<p:column headerText="Hos. Fee" width="8em" class="text-end" style="padding: 6px!important; margin: 2px!important;" >
391388
<h:outputText
392389
rendered="#{row.rowType eq 'BillItem'}"
393-
value="#{row.billItem.hospitalFee}">
390+
value="#{row.billItem.hospitalFee - (row.billItem.reagentFee + row.billItem.otherFee)}">
394391
<f:convertNumber pattern="#,##0.00" />
395392
</h:outputText>
396393
<f:facet name="footer" >

src/main/webapp/reports/index.xhtml

-7
Original file line numberDiff line numberDiff line change
@@ -440,13 +440,6 @@
440440
<p:commandButton class="w-100" ajax="false" value="Lab Register" action="#{reportController.navigateToLabRegisterReport()}"/>
441441
<p:commandButton class="w-100" ajax="false" value="Collection center statement" action="#{reportController.navigateToCollectionCenterStatement()}"/>
442442

443-
<p:commandButton
444-
class="w-100"
445-
ajax="false"
446-
value="Laboratory Income Report"
447-
action="#{laborataryReportController.navigateToLaboratoryIncomeReportFromReport()}">
448-
</p:commandButton>
449-
450443
</div>
451444
</p:tab>
452445

0 commit comments

Comments
 (0)