mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 17:15:04 +00:00
* fix: cast POS query inputs to integers (#32975)
fix: cast POS query inputs to integers
(cherry picked from commit c013db6ea1)
# Conflicts:
# erpnext/selling/page/point_of_sale/point_of_sale.py
* chore: conflicts
Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
import json
|
||||
|
||||
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
|
||||
@@ -105,11 +106,11 @@ def get_items(start, page_length, price_list, item_group, pos_profile, search_te
|
||||
ORDER BY
|
||||
item.name asc
|
||||
LIMIT
|
||||
{start}, {page_length}""".format(
|
||||
start=start,
|
||||
page_length=page_length,
|
||||
lft=lft,
|
||||
rgt=rgt,
|
||||
{page_length} offset {start}""".format(
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user