commit | d4cc9daca1ac4ebe56828434181936f30e579c13 | [log] [tgz] |
---|---|---|
author | Ritvik Sardana <ritviksardana@Ritviks-MacBook-Air.local> | Mon Aug 14 11:52:49 2023 +0530 |
committer | Ritvik Sardana <ritviksardana@Ritviks-MacBook-Air.local> | Mon Aug 14 11:52:49 2023 +0530 |
tree | b428f337f799b041d8ebc0272c43ecd58e144a6a | |
parent | 68df3f9729940b2f241379e85e20ac9fb8f182ec [diff] |
chore: code clean up
diff --git a/erpnext/accounts/doctype/pos_closing_entry/test_pos_closing_entry.py b/erpnext/accounts/doctype/pos_closing_entry/test_pos_closing_entry.py index c551fdc..93ba90a 100644 --- a/erpnext/accounts/doctype/pos_closing_entry/test_pos_closing_entry.py +++ b/erpnext/accounts/doctype/pos_closing_entry/test_pos_closing_entry.py
@@ -167,7 +167,7 @@ item_group="All Item Groups", ) - test_item_qty = [item for item in test_item_pos["items"] if item["item_code"] == "_Test Item"][0][ - "actual_qty" - ] + test_item_qty = [item for item in test_item_pos["items"] if item["item_code"] == "_Test Item"][ + 0 + ].get("actual_qty") return test_item_qty