Skip to content

Commit

Permalink
Closes #9571
Browse files Browse the repository at this point in the history
Signed-off-by: Buddhika Ariyaratne <buddhika.ari@gmail.com>
  • Loading branch information
buddhika75 committed Dec 21, 2024
1 parent 7fa05b6 commit 621893c
Show file tree
Hide file tree
Showing 4 changed files with 532 additions and 2,424 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

import com.divudi.data.BillTypeAtomic;
import com.divudi.data.IncomeBundle;
import com.divudi.data.IncomeRow;
import com.divudi.entity.Bill;
import com.divudi.entity.Category;
import com.divudi.entity.WebUser;
Expand Down Expand Up @@ -244,6 +245,17 @@ public void processPharmacyIncomeReport() {

List<Bill> bills = billService.fetchBills(fromDate, toDate, institution, site, department, webUser, billTypeAtomics);
bundle = new IncomeBundle(bills);
for (IncomeRow r : bundle.getRows()) {
if (r.getBill() == null) {
continue;
}
if (r.getBill().getPaymentMethod() == null) {
continue;
}
if(r.getBill().getPaymentMethod().equals(PaymentMethod.MultiplePaymentMethods)){
r.setPayments(billService.fetchBillPayments(r.getBill()));
}
}
bundle.generatePaymentDetailsForBills();
}

Expand Down
Loading

0 comments on commit 621893c

Please sign in to comment.