mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-20 17:59:57 +00:00
Co-authored-by: Diptanil Saha <diptanil@frappe.io>
This commit is contained in:
@@ -47,6 +47,7 @@
|
|||||||
{
|
{
|
||||||
"fieldname": "default_warehouse",
|
"fieldname": "default_warehouse",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
|
"ignore_user_permissions": 1,
|
||||||
"in_list_view": 1,
|
"in_list_view": 1,
|
||||||
"label": "Default Warehouse",
|
"label": "Default Warehouse",
|
||||||
"options": "Warehouse",
|
"options": "Warehouse",
|
||||||
@@ -75,6 +76,7 @@
|
|||||||
"fieldname": "buying_cost_center",
|
"fieldname": "buying_cost_center",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"label": "Default Buying Cost Center",
|
"label": "Default Buying Cost Center",
|
||||||
|
"ignore_user_permissions": 1,
|
||||||
"options": "Cost Center",
|
"options": "Cost Center",
|
||||||
"show_description_on_click": 1
|
"show_description_on_click": 1
|
||||||
},
|
},
|
||||||
@@ -94,6 +96,7 @@
|
|||||||
"fieldname": "expense_account",
|
"fieldname": "expense_account",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"label": "Default Expense Account",
|
"label": "Default Expense Account",
|
||||||
|
"ignore_user_permissions": 1,
|
||||||
"options": "Account",
|
"options": "Account",
|
||||||
"show_description_on_click": 1
|
"show_description_on_click": 1
|
||||||
},
|
},
|
||||||
@@ -146,6 +149,7 @@
|
|||||||
"fieldname": "deferred_expense_account",
|
"fieldname": "deferred_expense_account",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"label": "Deferred Expense Account",
|
"label": "Deferred Expense Account",
|
||||||
|
"ignore_user_permissions": 1,
|
||||||
"options": "Account",
|
"options": "Account",
|
||||||
"show_description_on_click": 1
|
"show_description_on_click": 1
|
||||||
},
|
},
|
||||||
@@ -183,6 +187,7 @@
|
|||||||
"description": "Account to record additional purchase expenses like freight or customs for this item",
|
"description": "Account to record additional purchase expenses like freight or customs for this item",
|
||||||
"fieldname": "purchase_expense_account",
|
"fieldname": "purchase_expense_account",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
|
"ignore_user_permissions": 1,
|
||||||
"label": "Purchase Expense Account",
|
"label": "Purchase Expense Account",
|
||||||
"options": "Account",
|
"options": "Account",
|
||||||
"show_description_on_click": 1
|
"show_description_on_click": 1
|
||||||
@@ -191,6 +196,7 @@
|
|||||||
"description": "Used to balance the books when recording extra purchase costs like freight or customs",
|
"description": "Used to balance the books when recording extra purchase costs like freight or customs",
|
||||||
"fieldname": "purchase_expense_contra_account",
|
"fieldname": "purchase_expense_contra_account",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
|
"ignore_user_permissions": 1,
|
||||||
"label": "Purchase Expense Contra Account",
|
"label": "Purchase Expense Contra Account",
|
||||||
"options": "Account"
|
"options": "Account"
|
||||||
},
|
},
|
||||||
@@ -198,6 +204,7 @@
|
|||||||
"description": "Account to track value added to stock via Stock Entry, Stock Reconciliation or Landed Cost Voucher",
|
"description": "Account to track value added to stock via Stock Entry, Stock Reconciliation or Landed Cost Voucher",
|
||||||
"fieldname": "expenses_added_to_stock_account",
|
"fieldname": "expenses_added_to_stock_account",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
|
"ignore_user_permissions": 1,
|
||||||
"label": "Expenses Added To Stock Account",
|
"label": "Expenses Added To Stock Account",
|
||||||
"options": "Account",
|
"options": "Account",
|
||||||
"show_description_on_click": 1
|
"show_description_on_click": 1
|
||||||
@@ -206,6 +213,7 @@
|
|||||||
"description": "Used to balance the books when recording expenses added to stock",
|
"description": "Used to balance the books when recording expenses added to stock",
|
||||||
"fieldname": "expenses_added_to_stock_contra_account",
|
"fieldname": "expenses_added_to_stock_contra_account",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
|
"ignore_user_permissions": 1,
|
||||||
"label": "Expenses Added To Stock Contra Account",
|
"label": "Expenses Added To Stock Contra Account",
|
||||||
"options": "Account",
|
"options": "Account",
|
||||||
"show_description_on_click": 1
|
"show_description_on_click": 1
|
||||||
@@ -215,6 +223,7 @@
|
|||||||
"fieldname": "default_inventory_account",
|
"fieldname": "default_inventory_account",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"label": "Default Inventory Account",
|
"label": "Default Inventory Account",
|
||||||
|
"ignore_user_permissions": 1,
|
||||||
"options": "Account",
|
"options": "Account",
|
||||||
"show_description_on_click": 1
|
"show_description_on_click": 1
|
||||||
},
|
},
|
||||||
@@ -229,7 +238,7 @@
|
|||||||
],
|
],
|
||||||
"istable": 1,
|
"istable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2026-07-27 12:00:00.000000",
|
"modified": "2026-07-28 15:39:44.848087",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Stock",
|
"module": "Stock",
|
||||||
"name": "Item Default",
|
"name": "Item Default",
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ class ItemDefault(Document):
|
|||||||
parenttype: DF.Data
|
parenttype: DF.Data
|
||||||
purchase_expense_account: DF.Link | None
|
purchase_expense_account: DF.Link | None
|
||||||
purchase_expense_contra_account: DF.Link | None
|
purchase_expense_contra_account: DF.Link | None
|
||||||
|
purchase_price_variance_account: DF.Link | None
|
||||||
selling_cost_center: DF.Link | None
|
selling_cost_center: DF.Link | None
|
||||||
# end: auto-generated types
|
# end: auto-generated types
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"actions": [],
|
"actions": [],
|
||||||
|
"allow_bulk_edit": 1,
|
||||||
"autoname": "hash",
|
"autoname": "hash",
|
||||||
"creation": "2013-03-07 11:42:59",
|
"creation": "2013-03-07 11:42:59",
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
@@ -18,6 +19,7 @@
|
|||||||
"columns": 3,
|
"columns": 3,
|
||||||
"fieldname": "warehouse_group",
|
"fieldname": "warehouse_group",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
|
"ignore_user_permissions": 1,
|
||||||
"in_list_view": 1,
|
"in_list_view": 1,
|
||||||
"label": "Check Availability in Warehouse",
|
"label": "Check Availability in Warehouse",
|
||||||
"options": "Warehouse"
|
"options": "Warehouse"
|
||||||
@@ -26,6 +28,7 @@
|
|||||||
"columns": 2,
|
"columns": 2,
|
||||||
"fieldname": "warehouse",
|
"fieldname": "warehouse",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
|
"ignore_user_permissions": 1,
|
||||||
"in_list_view": 1,
|
"in_list_view": 1,
|
||||||
"label": "Request for",
|
"label": "Request for",
|
||||||
"options": "Warehouse",
|
"options": "Warehouse",
|
||||||
@@ -59,7 +62,7 @@
|
|||||||
"in_create": 1,
|
"in_create": 1,
|
||||||
"istable": 1,
|
"istable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2025-12-02 16:02:23.254963",
|
"modified": "2026-07-28 15:54:36.089238",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Stock",
|
"module": "Stock",
|
||||||
"name": "Item Reorder",
|
"name": "Item Reorder",
|
||||||
|
|||||||
@@ -84,6 +84,7 @@ def get_item_details(ctx, doc=None, for_validate=False, overwrite_warehouse=True
|
|||||||
for_validate = parse_json(for_validate)
|
for_validate = parse_json(for_validate)
|
||||||
overwrite_warehouse = parse_json(overwrite_warehouse)
|
overwrite_warehouse = parse_json(overwrite_warehouse)
|
||||||
item = frappe.get_cached_doc("Item", ctx.item_code)
|
item = frappe.get_cached_doc("Item", ctx.item_code)
|
||||||
|
item.check_permission()
|
||||||
validate_item_details(ctx, item)
|
validate_item_details(ctx, item)
|
||||||
|
|
||||||
if isinstance(doc, str):
|
if isinstance(doc, str):
|
||||||
|
|||||||
Reference in New Issue
Block a user