Skip to content

Commit

Permalink
fix: POS opening Issue if Product Bundle is available (#37138)
Browse files Browse the repository at this point in the history
fix: POS opening issue because of Product Bundle
  • Loading branch information
RitvikSardana committed Sep 19, 2023
1 parent dfe5f63 commit af05864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/accounts/doctype/pos_invoice/pos_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ def get_bundle_availability(bundle_item_code, warehouse):
item_pos_reserved_qty = get_pos_reserved_qty(item.item_code, warehouse)
available_qty = item_bin_qty - item_pos_reserved_qty

max_available_bundles = available_qty / item.stock_qty
max_available_bundles = available_qty / item.qty
if bundle_bin_qty > max_available_bundles and frappe.get_value(
"Item", item.item_code, "is_stock_item"
):
Expand Down

0 comments on commit af05864

Please sign in to comment.