Skip to content

Commit

Permalink
BAH-3833 | Fix. Add line items to report when there is only inventory…
Browse files Browse the repository at this point in the history
… adjustment (#185)
  • Loading branch information
mohan-13 authored Aug 5, 2024
1 parent b24bf55 commit ced9e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bahmni_reports/report/stock_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ced9e0a

Please sign in to comment.