Skip to content

Commit

Permalink
Merge branch 'Issue#8665' of https://github.com/hmislk/hmis.git into …
Browse files Browse the repository at this point in the history
…Issue#8670
  • Loading branch information
DamithDeshan committed Nov 9, 2024
2 parents 58c0af6 + f4dbbb7 commit c3ec620
Show file tree
Hide file tree
Showing 9 changed files with 77 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3645,7 +3645,10 @@ public void addChannelBooking(boolean reservedBooking) {

}

sendSmsAfterBooking();
boolean sendSmsAfterBooking = configOptionApplicationController.getBooleanValueByKey("Send SMS after Channel Booking", true);
if (sendSmsAfterBooking) {
sendSmsAfterBooking();
}

if (selectedSessionInstance.isStarted()) {
sendChannellingStatusUpdateNotificationSms(printingBill.getSingleBillSession());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1558,6 +1558,10 @@ public List<Item> getPackaes() {

private List<Item> listOfTheNonExpiredPackages;

public void reloadPackages(){
itemController.reloadItems();
}

private void fillPackages() {
packaes = itemController.getPackaes();
if (packaes == null) {
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/com/divudi/bean/common/ItemController.java
Original file line number Diff line number Diff line change
Expand Up @@ -3202,6 +3202,12 @@ public List<ItemLight> fillItemsByInstitution(Institution institution) {

return insItems;
}

public void reloadItems(){
departmentItems=null;
institutionItems=null;
packaes=null;
}

public List<ItemLight> getDepartmentItems() {
if (departmentItems == null) {
Expand Down
16 changes: 10 additions & 6 deletions src/main/java/com/divudi/bean/inward/BillBhtController.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public class BillBhtController implements Serializable {

private List<ItemLight> inwardItems;
private ItemLight itemLight;

public String navigateToAddServiceFromMenu() {
resetBillData();
return "/inward/inward_bill_service?faces-redirect=true";
Expand All @@ -164,7 +164,7 @@ public String navigateToPrintLabelsForInvestigations() {
stickers = convertJsonToList(json);
return "/inward/inward_bill_service_investigation_label_print?faces-redirect=true";
}

public String navigateToNewBillFromPrintLabelsForInvestigations() {
resetBillData();
return "/inward/inward_bill_service?faces-redirect=true";
Expand Down Expand Up @@ -500,7 +500,6 @@ public void settleBill() {
paymentMethod = null;
settleBill(getPatientEncounter().getCurrentPatientRoom().getRoomFacilityCharge().getDepartment(), getPatientEncounter().getPaymentMethod());


}

public void settleBillSurgery() {
Expand Down Expand Up @@ -530,7 +529,6 @@ public void settleBillSurgery() {
getBillBean().saveEncounterComponents(getBills(), batchBill, getSessionController().getLoggedUser());
getBillBean().updateBatchBill(getBatchBill());


}

@EJB
Expand Down Expand Up @@ -710,14 +708,14 @@ public void addToBill() {
if (errorCheckForPatientRoomDepartment()) {
return;
}

for (BillEntry bi : lstBillEntries) {
if (bi.getBillItem() != null && getCurrentBillItem() != null && getCurrentBillItem().getItem() != null && bi.getBillItem().getItem().equals(getCurrentBillItem().getItem())) {
JsfUtil.addErrorMessage("Can't select same item " + getCurrentBillItem().getItem());
return;
}
}

if (getCurrentBillItem().getQty() == null) {
getCurrentBillItem().setQty(1.0);
}
Expand Down Expand Up @@ -1282,6 +1280,12 @@ public List<ItemLight> getInwardItems() {
return inwardItems;
}

public void reloadItemLights() {
itemApplicationController.reloadItems();
itemController.reloadItems();
fillInwardItems();
}

public void setInwardItems(List<ItemLight> inwardItems) {
this.inwardItems = inwardItems;
}
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/divudi/bean/opd/OpdBillController.java
Original file line number Diff line number Diff line change
Expand Up @@ -4408,6 +4408,7 @@ public void fillDepartmentOpdItems() {
departmentOpdItems = null;
opdItems = null;
itemApplicationController.reloadItems();
itemController.reloadItems();
getDepartmentOpdItems();
}

Expand Down
9 changes: 7 additions & 2 deletions src/main/webapp/analytics/bills.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,12 @@
<p:column rendered="#{webUserController.hasPrivilege('Developers')}" headerText="Bill ID" sortBy="#{bill.id}" filterBy="#{bill.id}" filterMatchMode="contains" >
<h:outputLabel value="#{bill.id}"/>
</p:column>
<p:column headerText="Bill No" sortBy="#{bill.deptId}" filterBy="#{bill.deptId}" filterMatchMode="contains" >
<p:column rendered="#{webUserController.hasPrivilege('Developers')}" headerText="Ins ID" sortBy="#{bill.insId}" filterBy="#{bill.insId}" filterMatchMode="contains" >
<h:outputLabel value="#{bill.insId}"/>
</p:column>
<p:column
headerText="Bill No" sortBy="#{bill.deptId}" filterBy="#{bill.deptId}"
filterMatchMode="contains" >
<h:outputLabel value="#{bill.deptId}"/>
</p:column>
<p:column headerText="Bill Class" >
Expand All @@ -203,7 +208,7 @@
<p:column headerText="User">
<h:outputText value="#{bill.creater.name}" ></h:outputText>
</p:column>
<p:column headerText="Status">
<p:column headerText="Status" exportable="false">
<h:panelGroup>
<p:badge value="Retired" styleClass="ui-badge-info" rendered="#{bill.retired}" />
<p:badge value="Cancelled" styleClass="ui-badge-danger" rendered="#{bill.cancelled}" />
Expand Down
8 changes: 8 additions & 0 deletions src/main/webapp/inward/inward_bill_service.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,13 @@
<div class="row m-1">
<div class="col-4">
<h:outputLabel value="Investigation or Service"/>
<p:commandButton
ajax="false"
action="#{billBhtController.reloadItemLights()}"
title="Reload"
styleClass="ui-button-warning d-block text-start p-1 m-1"
icon="fa fa-refresh">
</p:commandButton>
</div>
<div class="col-8">
<p:selectOneListbox
Expand All @@ -299,6 +306,7 @@
</p:column>
<p:ajax process="itm" update="gpQtyLbl gpQtyTxt" />
</p:selectOneListbox>

</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/opd/opd_bill_package.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@

<p:commandButton
id="btnAddIx"
value="Add"
value="Add Package"
process="advanced btnAddIx"
update="tblBillItem pBillDetails pIxAdd msg"
icon="fa fa-plus"
Expand Down
41 changes: 36 additions & 5 deletions src/main/webapp/resources/ezcomp/bmsChannelBill.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@

<tr>
<td>
<h:outputLabel value="Bill At" ></h:outputLabel>
<h:outputLabel value="Booking At" ></h:outputLabel>
</td>
<td>
<p:spacer width="10" ></p:spacer>
Expand All @@ -379,10 +379,40 @@
</h:outputLabel>
</td>
</tr>

<tr>
<td>
<h:outputLabel value="Cashier Name" ></h:outputLabel>
<h:outputLabel value="Booked by" ></h:outputLabel>
</td>
<td>
<p:spacer width="10" ></p:spacer>
</td>
<td>
<h:outputLabel value=":" ></h:outputLabel>
</td>
<td>
<h:outputLabel value="#{cc.attrs.bill.creater.webUserPerson.name}" ></h:outputLabel>
</td>
</tr>

<tr>
<td>
<h:outputLabel value="Paid At" ></h:outputLabel>
</td>
<td>
<p:spacer width="10" ></p:spacer>
</td>
<td>
<h:outputLabel value=":" ></h:outputLabel>
</td>
<td>
<h:outputLabel value="#{cc.attrs.bill.paidBill.createdAt}">
<f:convertDateTime pattern="dd MM yy hh:mm a" ></f:convertDateTime>
</h:outputLabel>
</td>
</tr>
<tr>
<td>
<h:outputLabel value="Cashier:" ></h:outputLabel>
</td>
<td>
<p:spacer width="10" ></p:spacer>
Expand All @@ -391,11 +421,12 @@
<h:outputLabel value=":" ></h:outputLabel>
</td>
<td>
<h:outputLabel value="#{cc.attrs.bill.creater.webUserPerson.name}" rendered="#{cc.attrs.bill.paidBill eq null}" ></h:outputLabel>
<h:outputLabel value="#{cc.attrs.bill.paidBill.creater.name}" rendered="#{cc.attrs.bill.paidBill ne null}" ></h:outputLabel>
<h:outputLabel value="#{cc.attrs.bill.paidBill.creater.name}" ></h:outputLabel>
</td>
</tr>



<tr>
<td>
<h:outputLabel value="Cashier Sign" ></h:outputLabel>
Expand Down

0 comments on commit c3ec620

Please sign in to comment.