chore: code clean up

This commit is contained in:
Ritvik Sardana 2023-08-14 11:52:49 +05:30
parent 68df3f9729
commit d4cc9daca1

View File

@ -167,7 +167,7 @@ def get_test_item_qty(pos_profile):
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