fix: cast POS query inputs to integers (#32975)
fix: cast POS query inputs to integers
This commit is contained in:
parent
b3bc1c66a3
commit
c013db6ea1
@ -6,6 +6,7 @@ import json
|
|||||||
from typing import Dict, Optional
|
from typing import Dict, Optional
|
||||||
|
|
||||||
import frappe
|
import frappe
|
||||||
|
from frappe.utils import cint
|
||||||
from frappe.utils.nestedset import get_root_of
|
from frappe.utils.nestedset import get_root_of
|
||||||
|
|
||||||
from erpnext.accounts.doctype.pos_invoice.pos_invoice import get_stock_availability
|
from erpnext.accounts.doctype.pos_invoice.pos_invoice import get_stock_availability
|
||||||
@ -108,10 +109,10 @@ def get_items(start, page_length, price_list, item_group, pos_profile, search_te
|
|||||||
item.name asc
|
item.name asc
|
||||||
LIMIT
|
LIMIT
|
||||||
{page_length} offset {start}""".format(
|
{page_length} offset {start}""".format(
|
||||||
start=start,
|
start=cint(start),
|
||||||
page_length=page_length,
|
page_length=cint(page_length),
|
||||||
lft=lft,
|
lft=cint(lft),
|
||||||
rgt=rgt,
|
rgt=cint(rgt),
|
||||||
condition=condition,
|
condition=condition,
|
||||||
bin_join_selection=bin_join_selection,
|
bin_join_selection=bin_join_selection,
|
||||||
bin_join_condition=bin_join_condition,
|
bin_join_condition=bin_join_condition,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user