mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-25 13:03:02 +00:00
Multiple fixes
This commit is contained in:
@@ -314,10 +314,10 @@ def create_items(args):
|
||||
is_stock_item = item_group!=_("Services")
|
||||
default_warehouse = ""
|
||||
if is_stock_item:
|
||||
if is_sales_item:
|
||||
default_warehouse = _("Finished Goods") + " - " + args.get("company_abbr")
|
||||
else:
|
||||
default_warehouse = _("Stores") + " - " + args.get("company_abbr")
|
||||
default_warehouse = frappe.db.get_value("Warehouse", filters={
|
||||
"warehouse_name": _("Finished Goods") if is_sales_item else _("Stores"),
|
||||
"company": args.get("company_name").strip()
|
||||
})
|
||||
|
||||
frappe.get_doc({
|
||||
"doctype":"Item",
|
||||
|
||||
Reference in New Issue
Block a user