Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates from development branch #9796

Merged
merged 89 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
6f661bf
Signed-off-by: Dr M H B Ariyaratne <buddhika.ari@gmail.com>
buddhika75 Dec 17, 2024
bfc942e
Merge branch '#9639_Initiate_Process' of https://github.com/hmislk/hm…
buddhika75 Dec 17, 2024
e9cd708
Merge branch 'Issue#9645_list_ongoing_processes' of https://github.co…
buddhika75 Dec 17, 2024
443f996
Merge branch 'Issue#9647_list_completed_processes' of https://github.…
buddhika75 Dec 17, 2024
3e316e7
Merge branch '#9708_Upload_PDF_Issue' of https://github.com/hmislk/hm…
ChinthakaPrasad Dec 18, 2024
a69145f
Merge branch 'Issue#9698_Inward_deposit_refund_isn't_working' of http…
DamithDeshan Dec 18, 2024
d8c1052
closes #9719
DamithDeshan Dec 18, 2024
264f71c
Merge branch 'development' of https://github.com/hmislk/hmis.git into…
buddhika75 Dec 18, 2024
a4ba25b
Merge branch 'Issue#9708_Upload_PDF_Issue' of https://github.com/hmis…
buddhika75 Dec 18, 2024
540905e
Merge branch '#9708_Upload_PDF_Issue' of https://github.com/hmislk/hm…
buddhika75 Dec 18, 2024
a5d9811
Merge branch '#9718_Upload_Report_in_Sample_Management' of https://gi…
buddhika75 Dec 18, 2024
deac79a
Merge branch '#9719_Upload_Report_View_in_Courier_Section' of https:/…
buddhika75 Dec 18, 2024
9f0520d
Signed-off-by: Buddhika Ariyaratne <buddhika.ari@gmail.com>
buddhika75 Dec 19, 2024
9f77ecf
factor: Add generate code functionality to when save the suppliers.
ChinthakaPrasad Dec 19, 2024
dd66b2c
added charts to route analysis report
imexh Dec 19, 2024
377c951
fix: phamacy bills return item and payment update drawer correctly.
ChinthakaPrasad Dec 19, 2024
0daadd9
Signed-off-by: Chinthaka Prasad <chinthakaprasad30@gmail.com>
ChinthakaPrasad Dec 19, 2024
e85f63c
closes #9456
ChinthakaPrasad Dec 19, 2024
cf61121
Signed-off-by: SandithP2001 <sandithpivithuru@gmail.com>
SandithP2001 Dec 19, 2024
8cf2d49
Merge branch 'Issue#9570_F15_report' of https://github.com/hmislk/hmi…
SandithP2001 Dec 19, 2024
38e7d69
Merge branch '9456-phamacy_disbursement_and_procument_improvements' o…
SandithP2001 Dec 19, 2024
1358b0b
Merge branch 'Issue-#9653-Route-Analysis-Report' of https://github.co…
SandithP2001 Dec 19, 2024
58425d4
Signed-off-by: SandithP2001 <sandithpivithuru@gmail.com>
SandithP2001 Dec 19, 2024
9a97d03
Signed-off-by: SandithP2001 <sandithpivithuru@gmail.com>
SandithP2001 Dec 19, 2024
4b2ab1d
Signed-off-by: SandithP2001 <sandithpivithuru@gmail.com>
SandithP2001 Dec 19, 2024
752e739
Merge branch 'issue#9673_Site_not_working_Stock_Ledger' of https://gi…
DARKDRAGON-LK Dec 19, 2024
670cd66
Merge branch 'issue#9674_Improvements_Closing_Stock' of https://githu…
DARKDRAGON-LK Dec 19, 2024
3e3fa5f
Fixed #9727
DARKDRAGON-LK Dec 19, 2024
1505322
Merge branch 'issue#9674_Improvements_Closing_Stock' of https://githu…
Pubudu-Piyankara Dec 19, 2024
d17f6f8
Merge branch 'Issue#9727-Added_Referance_To_Final_Bill_On_Credit_Comp…
Pubudu-Piyankara Dec 19, 2024
5a86c9e
Merge branch 'Issue#9517_WHT_need_for_inward_doctor_payments' of http…
PasinduW99 Dec 19, 2024
5667eca
Merge branch 'Issue#9727-Added_Referance_To_Final_Bill_On_Credit_Comp…
PasinduW99 Dec 19, 2024
8f75df0
Signed-off-by: Pubudu-Piyankara <pubudupiyankara.me@gmail.com>
Pubudu-Piyankara Dec 19, 2024
68f5b35
opd weekly detail report
imexh Dec 19, 2024
6b46d57
Merge branch 'refs/heads/development' into Issue-#9729-opd-weekly-rep…
imexh Dec 19, 2024
7b0bf52
Merge branch 'refs/heads/development' into Issue-#9729-opd-weekly-rep…
imexh Dec 19, 2024
58c9741
Signed-off-by: IsuruUdaraRanaweera <isuru.udara.ranaweera@gmail.com>
IsuruUdaraRanaweera Dec 19, 2024
f4d5ec9
bugfixes
imexh Dec 19, 2024
37bada1
Created New Controller to Manage Reservations
DARKDRAGON-LK Dec 19, 2024
01ce653
Added New Event Class For Reservation
DARKDRAGON-LK Dec 19, 2024
4d73399
Added New View to show Reservations on Calendar
DARKDRAGON-LK Dec 19, 2024
118c8a9
Added to the Menu
DARKDRAGON-LK Dec 19, 2024
1a3c0b8
Moved Reservation Event From Channel to Inward
DARKDRAGON-LK Dec 19, 2024
07e99c3
Added Search Methods
DARKDRAGON-LK Dec 19, 2024
0035393
Signed-off-by: Lawan Samarasekara <lawan.chaamindu1234@gmail.com>
DARKDRAGON-LK Dec 19, 2024
24bb0a2
Added Search and Colour Genaration Methods
DARKDRAGON-LK Dec 19, 2024
d1fbccb
Fixed #9728
DARKDRAGON-LK Dec 19, 2024
558bd5a
Signed-off-by: Pubudu-Piyankara <pubudupiyankara.me@gmail.com>
Pubudu-Piyankara Dec 19, 2024
38ae093
Signed-off-by: Pubudu-Piyankara <pubudupiyankara.me@gmail.com>
Pubudu-Piyankara Dec 19, 2024
fe1e495
Merge branch 'development' of https://github.com/hmislk/hmis.git into…
Pubudu-Piyankara Dec 19, 2024
7f99726
Merge branch 'Issue#9582/debtor-analysis-due-search' of https://githu…
Pubudu-Piyankara Dec 19, 2024
c0230fe
Merge branch 'Issue#9728-Inward_Reservations_On_a_Calendar' of https:…
Pubudu-Piyankara Dec 19, 2024
7f628b9
bugfixes
imexh Dec 19, 2024
d25ddfb
Signed-off-by: Pubudu-Piyankara <pubudupiyankara.me@gmail.com>
Pubudu-Piyankara Dec 19, 2024
58df692
Merge branch 'Issue#9697_Reports_Excel&PDF_Buttons' of https://github…
Pubudu-Piyankara Dec 19, 2024
4239980
Signed-off-by: Pubudu-Piyankara <pubudupiyankara.me@gmail.com>
Pubudu-Piyankara Dec 19, 2024
3e3b32a
Signed-off-by: PasinduW99 <pwathsara@gmail.com>
PasinduW99 Dec 19, 2024
87be0ce
Merge branch 'Issue#9700_staff_welfare_return_not_working' of https:/…
SandithP2001 Dec 19, 2024
6b8a425
Merge branch 'Issue#9761-Sample-Carrier-Report' of https://github.com…
SandithP2001 Dec 19, 2024
6eecbc8
Merge branch 'Issue#9731-Payment-settlement-report' of https://github…
SandithP2001 Dec 19, 2024
c62756c
Signed-off-by: SandithP2001 <sandithpivithuru@gmail.com>
SandithP2001 Dec 19, 2024
62294bb
Signed-off-by: SandithP2001 <sandithpivithuru@gmail.com>
SandithP2001 Dec 19, 2024
9ea562a
Merge branch 'Issue#9517_WHT_need_for_inward_doctor_payments' of http…
PasinduW99 Dec 19, 2024
39b2b25
Merge branch 'Issue#9697_Reports_Excel&PDF_Buttons' of https://github…
PasinduW99 Dec 19, 2024
0defd61
Merge branch 'Issue#9582/debtor-analysis-due-search' of https://githu…
PasinduW99 Dec 19, 2024
b0f62df
Merge branch 'Issue#9696_Disbursment_report_improvement' of https://g…
PasinduW99 Dec 19, 2024
7e6681c
Merge branch 'Issue#9700_staff_welfare_return_not_working' of https:/…
PasinduW99 Dec 19, 2024
4005ab4
Merge branch 'issue#9410_Good_In_Transit_Report' of https://github.co…
PasinduW99 Dec 19, 2024
43f799a
Signed-off-by: PasinduW99 <pwathsara@gmail.com>
PasinduW99 Dec 19, 2024
78f0483
External Laboratory Workload Report #9762
imexh Dec 19, 2024
0ebf422
Merge branch 'development' into 9456-phamacy_disbursement_and_procume…
ChinthakaPrasad Dec 20, 2024
91b51e5
Merge pull request #9721 from hmislk/#9719_Upload_Report_View_in_Cour…
Irani96 Dec 20, 2024
21d8e8e
Merge pull request #9722 from hmislk/Issue-#9653-Route-Analysis-Report
Irani96 Dec 20, 2024
51e6016
Merge pull request #9724 from hmislk/9456-phamacy_disbursement_and_pr…
Irani96 Dec 20, 2024
552c0ec
Merge branch 'development' into issue#9674_Improvements_Closing_Stock
SandithP2001 Dec 20, 2024
58c3913
Merge pull request #9726 from hmislk/issue#9674_Improvements_Closing_…
Irani96 Dec 20, 2024
fe229fd
Merge branch 'development' into Issue-#9729-opd-weekly-report-detail-…
DamithDeshan Dec 20, 2024
b6838b9
Merge branch 'development' into Issue#9762-External-Laboratory-Worklo…
DamithDeshan Dec 20, 2024
a9de64d
Merge pull request #9730 from hmislk/Issue-#9729-opd-weekly-report-de…
Irani96 Dec 20, 2024
ebd96b7
Merge pull request #9732 from hmislk/Issue#9582/debtor-analysis-due-s…
Irani96 Dec 20, 2024
3807d21
Merge pull request #9763 from hmislk/Issue#9697_Reports_Excel&PDF_But…
Irani96 Dec 20, 2024
69c09d4
Merge pull request #9764 from hmislk/Issue#9731-Payment-settlement-re…
Irani96 Dec 20, 2024
3a8133e
Merge pull request #9765 from hmislk/Issue#9761-Sample-Carrier-Report
Irani96 Dec 20, 2024
5b39673
Merge pull request #9766 from hmislk/Issue#9696_Disbursment_report_im…
Irani96 Dec 20, 2024
2d93a7d
Merge pull request #9767 from hmislk/Issue#9700_staff_welfare_return_…
Irani96 Dec 20, 2024
170244e
Merge pull request #9768 from hmislk/issue#9410_Good_In_Transit_Report
Irani96 Dec 20, 2024
105419e
Merge pull request #9770 from hmislk/Issue#9567_improvements_in_trans…
Irani96 Dec 20, 2024
f95d557
Merge branch 'development' into Issue#9762-External-Laboratory-Worklo…
DamithDeshan Dec 20, 2024
4bc7ab4
Merge pull request #9772 from hmislk/Issue#9762-External-Laboratory-W…
Irani96 Dec 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,30 @@ public ReportTemplate findReportTemplateByName(String name) {
public List<ReportTemplate> completeReportTemplate(String qry) {
List<ReportTemplate> list;
String jpql;
HashMap params = new HashMap();
jpql = "select c from ReportTemplate c "
+ " where c.retired=false "
+ " and (c.name) like :q "
+ " order by c.name";
params.put("q", "%" + qry.toUpperCase() + "%");
HashMap<String, Object> params = new HashMap<>();
jpql = "SELECT c FROM ReportTemplate c "
+ "WHERE c.retired = false "
+ "AND (LOWER(c.name) LIKE :q OR LOWER(c.code) LIKE :q) "
+ "ORDER BY c.name";
params.put("q", "%" + qry.toLowerCase() + "%");
list = getFacade().findByJpql(jpql, params);

if (list == null) {
list = new ArrayList<>();
}
return list;
}

public List<ReportTemplate> completeRootReportTemplate(String qry) {
List<ReportTemplate> list;
String jpql;
HashMap<String, Object> params = new HashMap<>();
jpql = "SELECT c FROM ReportTemplate c "
+ "WHERE c.retired = false "
+ "AND c.parent is null "
+ "AND (LOWER(c.name) LIKE :q OR LOWER(c.code) LIKE :q) "
+ "ORDER BY c.name";
params.put("q", "%" + qry.toLowerCase() + "%");
list = getFacade().findByJpql(jpql, params);

if (list == null) {
Expand Down Expand Up @@ -223,7 +241,6 @@ public ReportTemplateRowBundle generateValueByDepartmentReport(

jpql += " group by bill.department";


// Assuming you have an EJB or similar service to run the query
List<ReportTemplateRow> results = (List<ReportTemplateRow>) ejbFacade.findLightsByJpql(jpql, parameters, TemporalType.TIMESTAMP);

Expand All @@ -244,7 +261,7 @@ public ReportTemplateRowBundle generateBillReport(
Institution paramSite,
Boolean excludeCredit,
Boolean creditOnly) {
System.out.println("generateBillReport = " );
System.out.println("generateBillReport = ");
System.out.println("creditOnly = " + creditOnly);
System.out.println("excludeCredit = " + excludeCredit);

Expand Down Expand Up @@ -321,7 +338,7 @@ public ReportTemplateRowBundle generateBillReport(

return pb;
}

public ReportTemplateRowBundle generateBillReportWithoutProfessionalFees(
List<BillTypeAtomic> btas,
Date paramFromDate,
Expand Down Expand Up @@ -371,7 +388,6 @@ public ReportTemplateRowBundle generateBillReportWithoutProfessionalFees(

jpql += " group by bill";


// Assuming you have an EJB or similar service to run the query
List<ReportTemplateRow> results = (List<ReportTemplateRow>) ejbFacade.findLightsByJpql(jpql, parameters, TemporalType.TIMESTAMP);

Expand Down Expand Up @@ -411,9 +427,9 @@ public ReportTemplateRowBundle generateBillReportWithoutProfessionalFees(
jpql += " and bill.billTypeAtomic in :btas ";
parameters.put("btas", btas);
}
if(creditBillsOnly!=null && creditBillsOnly){
jpql += " and bill.paymentMethod in :pms ";

if (creditBillsOnly != null && creditBillsOnly) {
jpql += " and bill.paymentMethod in :pms ";
parameters.put("pms", PaymentMethod.getMethodsByType(PaymentType.NON_CREDIT));
}

Expand Down Expand Up @@ -444,7 +460,6 @@ public ReportTemplateRowBundle generateBillReportWithoutProfessionalFees(

jpql += " group by bill";


// Assuming you have an EJB or similar service to run the query
List<ReportTemplateRow> results = (List<ReportTemplateRow>) ejbFacade.findLightsByJpql(jpql, parameters, TemporalType.TIMESTAMP);

Expand Down Expand Up @@ -512,7 +527,6 @@ public ReportTemplateRowBundle generatePaymentReport(

jpql += " group by p";


// Assuming you have an EJB or similar service to run the query
List<ReportTemplateRow> results = (List<ReportTemplateRow>) ejbFacade.findLightsByJpql(jpql, parameters, TemporalType.TIMESTAMP);

Expand Down Expand Up @@ -1599,7 +1613,6 @@ private ReportTemplateRowBundle handleBillTypeAtomicTotalUsingBills(
parameters.put("wu", paramUser);
}


Double sumResult = ejbFacade.findSingleResultByJpql(jpql, parameters, TemporalType.DATE);

if (sumResult != null) {
Expand Down Expand Up @@ -2177,7 +2190,6 @@ private ReportTemplateRowBundle handleItemDepartmentummaryByBill(
Long paramStartId,
Long paramEndId) {


String jpql;
Map<String, Object> parameters = new HashMap<>();
ReportTemplateRowBundle bundle = new ReportTemplateRowBundle();
Expand Down Expand Up @@ -2264,7 +2276,6 @@ private ReportTemplateRowBundle handleItemDepartmentummaryByBill(
// + " and bi.item.department is not null ";
jpql += " group by bi.item.department ";


List<ReportTemplateRow> rs = (List<ReportTemplateRow>) ejbFacade.findLightsByJpql(jpql, parameters, TemporalType.TIMESTAMP);

if (rs == null || rs.isEmpty()) {
Expand Down
27 changes: 27 additions & 0 deletions src/main/java/com/divudi/bean/common/BillReturnController.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

import com.divudi.bean.cashTransaction.DrawerController;
import com.divudi.bean.cashTransaction.PaymentController;
import com.divudi.bean.collectingCentre.CollectingCentreBillController;
import com.divudi.bean.common.util.JsfUtil;
import com.divudi.data.BillTypeAtomic;
import com.divudi.data.FeeType;
import com.divudi.data.HistoryType;
import com.divudi.data.PaymentMethod;
import static com.divudi.data.PaymentMethod.Card;
Expand All @@ -19,11 +21,19 @@

import com.divudi.ejb.BillNumberGenerator;
import com.divudi.entity.Bill;
import com.divudi.entity.BillEntry;
import com.divudi.entity.BillFee;
import com.divudi.entity.BillItem;
import com.divudi.entity.Category;
import com.divudi.entity.Department;
import com.divudi.entity.Institution;
import com.divudi.entity.Item;
import com.divudi.entity.PatientDeposit;
import com.divudi.entity.Payment;
import com.divudi.entity.PaymentScheme;
import com.divudi.entity.PriceMatrix;
import com.divudi.entity.RefundBill;
import com.divudi.entity.Staff;

import com.divudi.entity.cashTransaction.Drawer;

Expand All @@ -36,6 +46,7 @@
import javax.inject.Named;
import javax.enterprise.context.SessionScoped;
import java.io.Serializable;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.List;
import javax.ejb.EJB;
Expand Down Expand Up @@ -83,6 +94,12 @@ public class BillReturnController implements Serializable, ControllerWithMultipl
AgentAndCcApplicationController agentAndCcApplicationController;
@Inject
PatientDepositController patientDepositController;
@Inject
PriceMatrixController priceMatrixController;
@Inject
private BillBeanController billBean;
@Inject
CollectingCentreBillController collectingCentreBillController;
// </editor-fold>

// <editor-fold defaultstate="collapsed" desc="Class Variable">
Expand Down Expand Up @@ -237,6 +254,8 @@ public boolean checkDraverBalance(Drawer drawer, PaymentMethod paymentMethod) {
}
return canReturn;
}

private Staff toStaff;

public String settleOpdReturnBill() {
if (returningStarted) {
Expand Down Expand Up @@ -688,4 +707,12 @@ public void recieveRemainAmountAutomatically() {
public void setPaymentMethodData(PaymentMethodData paymentMethodData) {
throw new UnsupportedOperationException("Multiple Payments Not supported in Returns and Refunds");
}

public Staff getToStaff() {
return toStaff;
}

public void setToStaff(Staff toStaff) {
this.toStaff = toStaff;
}
}
Loading