From ced9e0a6161007fbcc63906c9ac780747e4cf982 Mon Sep 17 00:00:00 2001 From: MOHANKUMAR T <31698165+mohan-13@users.noreply.github.com> Date: Mon, 5 Aug 2024 10:27:10 +0530 Subject: [PATCH] BAH-3833 | Fix. Add line items to report when there is only inventory adjustment (#185) --- bahmni_reports/report/stock_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bahmni_reports/report/stock_report.py b/bahmni_reports/report/stock_report.py index 509d15a..07e24da 100644 --- a/bahmni_reports/report/stock_report.py +++ b/bahmni_reports/report/stock_report.py @@ -513,7 +513,7 @@ def get_xlsx_report(self, data, response): s_no = 1 grand_total = 0 for drug in data['drug']: - if drug['open_stock_qty'] or drug['purchase_qty'] or drug['issue_qty'] or drug['internal_inward_qty'] or drug['internal_outward_qty']: + if drug['open_stock_qty'] or drug['purchase_qty'] or drug['issue_qty'] or drug['internal_inward_qty'] or drug['internal_outward_qty'] or drug['inventory_adj_qty']: sheet.write(row_num, 0, s_no, sno_format) if data['report_type'] == 'details': sheet.write(row_num, 1, drug['date'], basic_format)