fix: load price list rate for pos search term
This commit is contained in:
@@ -58,13 +58,17 @@ def search_by_term(search_term, warehouse, price_list):
|
|||||||
item_stock_qty = item_stock_qty // item.get("conversion_factor", 1)
|
item_stock_qty = item_stock_qty // item.get("conversion_factor", 1)
|
||||||
item.update({"actual_qty": item_stock_qty})
|
item.update({"actual_qty": item_stock_qty})
|
||||||
|
|
||||||
price = frappe.get_list(
|
price_filters = {
|
||||||
doctype="Item Price",
|
|
||||||
filters={
|
|
||||||
"price_list": price_list,
|
"price_list": price_list,
|
||||||
"item_code": item_code,
|
"item_code": item_code,
|
||||||
"batch_no": batch_no,
|
}
|
||||||
},
|
|
||||||
|
if batch_no:
|
||||||
|
price_filters["batch_no"] = batch_no
|
||||||
|
|
||||||
|
price = frappe.get_list(
|
||||||
|
doctype="Item Price",
|
||||||
|
filters=price_filters,
|
||||||
fields=["uom", "currency", "price_list_rate", "batch_no"],
|
fields=["uom", "currency", "price_list_rate", "batch_no"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user