|
1 | 1 | import frappe |
2 | 2 | from frappe.desk.reportview import build_match_conditions |
3 | | -from frappe.utils import cint, flt |
| 3 | +from frappe.utils import cint, escape_html, flt |
4 | 4 |
|
5 | 5 | from erpnext.stock.doctype.stock_reservation_entry.stock_reservation_entry import ( |
6 | 6 | get_sre_reserved_qty_for_items_and_warehouses as get_reserved_stock_details, |
@@ -75,8 +75,10 @@ def get_data( |
75 | 75 | for item in items: |
76 | 76 | item.update( |
77 | 77 | { |
78 | | - "item_name": frappe.get_cached_value("Item", item.item_code, "item_name"), |
79 | | - "stock_uom": frappe.get_cached_value("Item", item.item_code, "stock_uom"), |
| 78 | + "item_code": escape_html(item.item_code), |
| 79 | + "item_name": escape_html(frappe.get_cached_value("Item", item.item_code, "item_name")), |
| 80 | + "stock_uom": escape_html(frappe.get_cached_value("Item", item.item_code, "stock_uom")), |
| 81 | + "warehouse": escape_html(item.warehouse), |
80 | 82 | "disable_quick_entry": frappe.get_cached_value("Item", item.item_code, "has_batch_no") |
81 | 83 | or frappe.get_cached_value("Item", item.item_code, "has_serial_no"), |
82 | 84 | "projected_qty": flt(item.projected_qty, precision), |
|
0 commit comments