mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-14 15:11:52 +00:00
Co-authored-by: Diptanil Saha <diptanil@frappe.io>
This commit is contained in:
@@ -67,6 +67,14 @@ class PlantFloor(Document):
|
|||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def get_stock_summary(warehouse, start=0, item_code=None, item_group=None):
|
def get_stock_summary(warehouse, start=0, item_code=None, item_group=None):
|
||||||
|
frappe.has_permission("Warehouse", doc=warehouse, throw=True)
|
||||||
|
|
||||||
|
if item_code:
|
||||||
|
frappe.has_permission("Item", doc=item_code, throw=True)
|
||||||
|
|
||||||
|
if item_group:
|
||||||
|
frappe.has_permission("Item Group", doc=item_group, throw=True)
|
||||||
|
|
||||||
stock_details = get_stock_details(warehouse, start=start, item_code=item_code, item_group=item_group)
|
stock_details = get_stock_details(warehouse, start=start, item_code=item_code, item_group=item_group)
|
||||||
|
|
||||||
max_count = 0.0
|
max_count = 0.0
|
||||||
|
|||||||
Reference in New Issue
Block a user