Skip to content

Commit

Permalink
Merge pull request #6639 from hmislk/issue#6635
Browse files Browse the repository at this point in the history
Issue#6635 Closes #6635
  • Loading branch information
DeshaniPubudu authored Jul 27, 2024
2 parents cba95cf + 8afb3c4 commit 4a418d0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nb-configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Any value defined here will override the pom.xml file value but is only applicab
<org-netbeans-modules-maven-j2ee.netbeans_2e_deploy_2e_on_2e_save>false</org-netbeans-modules-maven-j2ee.netbeans_2e_deploy_2e_on_2e_save>
<org-netbeans-modules-javascript2-requirejs.enabled>true</org-netbeans-modules-javascript2-requirejs.enabled>
<org-netbeans-modules-projectapi.jsf_2e_language>JSP</org-netbeans-modules-projectapi.jsf_2e_language>
<netbeans.compile.on.save>all</netbeans.compile.on.save>
<netbeans.compile.on.save>none</netbeans.compile.on.save>
<org-netbeans-modules-css-prep.less_2e_mappings>/less:/css</org-netbeans-modules-css-prep.less_2e_mappings>
<org-netbeans-modules-css-prep.less_2e_enabled>false</org-netbeans-modules-css-prep.less_2e_enabled>
<org-netbeans-modules-css-prep.sass_2e_enabled>false</org-netbeans-modules-css-prep.sass_2e_enabled>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ private TreeNode<PrivilegeHolder> createPrivilegeHolderTreeNodes() {
TreeNode paymentCancelNode = new DefaultTreeNode(new PrivilegeHolder(Privileges.PaymentBillCancel, "Payment Cancel"), paymentNode);
TreeNode paymentRefundNode = new DefaultTreeNode(new PrivilegeHolder(Privileges.PaymentBillRefund, "Payment Refund"), paymentNode);
TreeNode paymentReactivationNode = new DefaultTreeNode(new PrivilegeHolder(Privileges.PaymentBillReactivation, "Payment Reactivation"), paymentNode);
TreeNode changeCreditLimit = new DefaultTreeNode(new PrivilegeHolder(Privileges.ChangeCreditLimitInCC, "Change Credit Limit in Collecting Centre"), paymentNode);

TreeNode reportsNode = new DefaultTreeNode(new PrivilegeHolder(null, "Reports"), allNode);
TreeNode reportsMenuNode = new DefaultTreeNode(new PrivilegeHolder(Privileges.Reports, "Reports Menu"), reportsNode);
Expand Down Expand Up @@ -484,7 +485,7 @@ private TreeNode<PrivilegeHolder> createPrivilegeHolderTreeNodes() {
TreeNode cashInNode = new DefaultTreeNode(new PrivilegeHolder(Privileges.CashTransactionCashIn, "Cash In"), cashTransactionNode);
TreeNode cashOutNode = new DefaultTreeNode(new PrivilegeHolder(Privileges.CashTransactionCashOut, "Cash Out"), cashTransactionNode);
TreeNode listToCashReceiveNode = new DefaultTreeNode(new PrivilegeHolder(Privileges.CashTransactionListToCashRecieve, "List To Cash Receive"), cashTransactionNode);

//Pharmacy
TreeNode retailTransaction = new DefaultTreeNode("Pharmacy Retail Transaction", pharmacyNode);
TreeNode retailTransactionMenu = new DefaultTreeNode(new PrivilegeHolder(Privileges.PharmacyRetailTransactionMenue, "Pharmacy Retail Transaction Menu"), retailTransaction);
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/divudi/data/Privileges.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public enum Privileges {
Store,
Search,
CashTransaction,
ChangeCreditLimitInCC,
//Submenu Privileges
OpdBilling,
OpdCollectingCentreBillingMenu,
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/resources/ezcomp/menu.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@
<p:submenu label="Collecting Centre Book Issuing">
<p:menuitem ajax="false" action="/lab/agent_referece_book?faces-redirect=true" value="Add Lab Book to Collecting Centre" ></p:menuitem>
<p:menuitem ajax="false" action="/lab/report_collecting_center_referece_book?faces-redirect=true" value="Collecting Centre Book Report" ></p:menuitem>
<p:menuitem ajax="false" action="/lab/institutions_udate_credit_limit?faces-redirect=true" value="Collecting Centre Credit Limit Update" ></p:menuitem>
<p:menuitem ajax="false" action="/lab/institutions_udate_credit_limit?faces-redirect=true" value="Collecting Centre Credit Limit Update" rendered="#{webUserController.hasPrivilege('ChangeCreditLimitInCC')}"></p:menuitem>
<p:menuitem ajax="false" action="/reportLab/collecting_centre_report_agent_history?faces-redirect=true" value="Collecting Centre History" ></p:menuitem>
<p:menuitem ajax="false" action="/reportLab/collecting_center_report_history_1?faces-redirect=true" value="Collecting Centre Statement" ></p:menuitem>
<p:menuitem ajax="false" action="/reportLab/report_collecting_center_payment_bill?faces-redirect=true" value="Collecting Centre Diposits" ></p:menuitem>
Expand Down

0 comments on commit 4a418d0

Please sign in to comment.