Skip to content

Commit

Permalink
fix: cast POS query inputs to integers (frappe#32975)
Browse files Browse the repository at this point in the history
fix: cast POS query inputs to integers
  • Loading branch information
ankush authored Nov 15, 2022
1 parent b3bc1c6 commit c013db6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions erpnext/selling/page/point_of_sale/point_of_sale.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from typing import Dict, Optional

import frappe
from frappe.utils import cint
from frappe.utils.nestedset import get_root_of

from erpnext.accounts.doctype.pos_invoice.pos_invoice import get_stock_availability
Expand Down Expand Up @@ -108,10 +109,10 @@ def get_items(start, page_length, price_list, item_group, pos_profile, search_te
item.name asc
LIMIT
{page_length} offset {start}""".format(
start=start,
page_length=page_length,
lft=lft,
rgt=rgt,
start=cint(start),
page_length=cint(page_length),
lft=cint(lft),
rgt=cint(rgt),
condition=condition,
bin_join_selection=bin_join_selection,
bin_join_condition=bin_join_condition,
Expand Down

0 comments on commit c013db6

Please sign in to comment.