mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
shortage qty column added in stock projected qty report
This commit is contained in:
@@ -10,7 +10,8 @@ def execute(filters=None):
|
|||||||
data = frappe.db.sql("""select
|
data = frappe.db.sql("""select
|
||||||
item.name, item.item_name, description, item_group, brand, warehouse, item.stock_uom,
|
item.name, item.item_name, description, item_group, brand, warehouse, item.stock_uom,
|
||||||
actual_qty, planned_qty, indented_qty, ordered_qty, reserved_qty,
|
actual_qty, planned_qty, indented_qty, ordered_qty, reserved_qty,
|
||||||
projected_qty, item.re_order_level, item.re_order_qty
|
projected_qty, item.re_order_level, item.re_order_qty,
|
||||||
|
(item.re_order_level - projected_qty) as shortage_qty
|
||||||
from `tabBin` bin,
|
from `tabBin` bin,
|
||||||
(select name, company from tabWarehouse
|
(select name, company from tabWarehouse
|
||||||
{warehouse_conditions}) wh,
|
{warehouse_conditions}) wh,
|
||||||
@@ -29,7 +30,8 @@ def get_columns():
|
|||||||
"Item Group:Link/Item Group:100", "Brand:Link/Brand:100", "Warehouse:Link/Warehouse:120",
|
"Item Group:Link/Item Group:100", "Brand:Link/Brand:100", "Warehouse:Link/Warehouse:120",
|
||||||
"UOM:Link/UOM:100", "Actual Qty:Float:100", "Planned Qty:Float:100",
|
"UOM:Link/UOM:100", "Actual Qty:Float:100", "Planned Qty:Float:100",
|
||||||
"Requested Qty:Float:110", "Ordered Qty:Float:100", "Reserved Qty:Float:100",
|
"Requested Qty:Float:110", "Ordered Qty:Float:100", "Reserved Qty:Float:100",
|
||||||
"Projected Qty:Float:100", "Reorder Level:Float:100", "Reorder Qty:Float:100"]
|
"Projected Qty:Float:100", "Reorder Level:Float:100", "Reorder Qty:Float:100",
|
||||||
|
"Shortage Qty:Float:100"]
|
||||||
|
|
||||||
def get_item_conditions(filters):
|
def get_item_conditions(filters):
|
||||||
conditions = []
|
conditions = []
|
||||||
|
|||||||
Reference in New Issue
Block a user