Skip to content

Commit c86bb60

Browse files
authored
Merge pull request #11253 from hmislk/credit_reciept
2 parents d017ab5 + 703d556 commit c86bb60

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

src/main/java/com/divudi/bean/report/CashierReportController.java

+8
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,14 @@ public void recreteModal2() {
130130
recreteModal();
131131
}
132132

133+
134+
135+
public void init() {
136+
// Set the current cashier to the logged-in user
137+
currentCashier = sessionController.getLoggedUser();
138+
// ... rest of initialization code ...
139+
}
140+
133141
public String navigateToDepartmentAllCashierReport() {
134142
FacesContext context = FacesContext.getCurrentInstance();
135143
HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();

src/main/webapp/credit/credit_compnay_bill_opd_all.xhtml

+9-5
Original file line numberDiff line numberDiff line change
@@ -147,19 +147,23 @@
147147
<p:commandButton
148148
ajax="false"
149149
action="#{cashRecieveBillController.removeAll()}"
150-
value="Remove Selected"
150+
value="Remove Selected"
151+
icon="fa fa-trash"
151152
class="ui-button-danger mx-2"/>
152-
153-
<h:outputLabel value="Paying Institution : "/>
153+
<br />
154+
<h:outputLabel style="margin-left: 10px" value="Paying Institution : "/>
154155
<p:outputLabel value="#{cashRecieveBillController.institution.name}" id="ins"/>
156+
<br />
157+
<h:outputLabel style="margin-left: 10px" value="Cashier: "/>
158+
<p:outputLabel value="#{cashierReportController.currentCashier.name}" id="cash"/>
155159

156-
157-
</f:facet>
160+
</f:facet>
158161

159162
<p:dataTable value="#{cashRecieveBillController.billItems}"
160163
rowIndexVar="rowIndex" var="b" id="items"
161164
rowKey="#{b.searialNo}" selection="#{cashRecieveBillController.selectedBillItems}"
162165
selectionMode="multiple"
166+
163167
>
164168

165169

0 commit comments

Comments
 (0)