Merge branch 'develop' into perf-bom-update-tool

This commit is contained in:
Ankush Menat 2022-06-09 11:45:37 +05:30 committed by GitHub
commit a6edce2397
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 78 additions and 83 deletions

View File

@ -13,7 +13,7 @@
"documentation_url": "https://docs.erpnext.com/docs/user/manual/en/accounts", "documentation_url": "https://docs.erpnext.com/docs/user/manual/en/accounts",
"idx": 0, "idx": 0,
"is_complete": 0, "is_complete": 0,
"modified": "2022-01-18 18:35:52.326688", "modified": "2022-06-07 14:29:21.352132",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Accounts", "module": "Accounts",
"name": "Accounts", "name": "Accounts",

View File

@ -1,8 +1,8 @@
{ {
"action": "Watch Video", "action": "Go to Page",
"action_label": "Learn more about Chart of Accounts", "action_label": "Learn more about Chart of Accounts",
"callback_message": "You can continue with the onboarding after exploring this page", "callback_message": "You can continue with the onboarding after exploring this page",
"callback_title": "Awesome Work", "callback_title": "Explore Chart of Accounts",
"creation": "2020-05-13 19:58:20.928127", "creation": "2020-05-13 19:58:20.928127",
"description": "# Chart Of Accounts\n\nERPNext sets up a simple chart of accounts for each Company you create, but you can modify it according to business and legal requirements.", "description": "# Chart Of Accounts\n\nERPNext sets up a simple chart of accounts for each Company you create, but you can modify it according to business and legal requirements.",
"docstatus": 0, "docstatus": 0,
@ -12,7 +12,7 @@
"is_complete": 0, "is_complete": 0,
"is_single": 0, "is_single": 0,
"is_skipped": 0, "is_skipped": 0,
"modified": "2021-08-13 11:46:25.878506", "modified": "2022-06-07 14:21:26.264769",
"modified_by": "Administrator", "modified_by": "Administrator",
"name": "Chart of Accounts", "name": "Chart of Accounts",
"owner": "Administrator", "owner": "Administrator",

View File

@ -2,14 +2,14 @@
"action": "Create Entry", "action": "Create Entry",
"action_label": "Manage Sales Tax Templates", "action_label": "Manage Sales Tax Templates",
"creation": "2020-05-13 19:29:43.844463", "creation": "2020-05-13 19:29:43.844463",
"description": "# Setting up Taxes\n\nERPNext lets you configure your taxes so that they are automatically applied in your buying and selling transactions. You can configure them globally or even on Items. ERPNext taxes are pre-configured for most regions.\n", "description": "# Setting up Taxes\n\nERPNext lets you configure your taxes so that they are automatically applied in your buying and selling transactions. You can configure them globally or even on Items. ERPNext taxes are pre-configured for most regions.\n\n[Checkout pre-configured taxes](/app/sales-taxes-and-charges-template)\n",
"docstatus": 0, "docstatus": 0,
"doctype": "Onboarding Step", "doctype": "Onboarding Step",
"idx": 0, "idx": 0,
"is_complete": 0, "is_complete": 0,
"is_single": 0, "is_single": 0,
"is_skipped": 0, "is_skipped": 0,
"modified": "2021-08-13 11:48:37.238610", "modified": "2022-06-07 14:27:15.906286",
"modified_by": "Administrator", "modified_by": "Administrator",
"name": "Setup Taxes", "name": "Setup Taxes",
"owner": "Administrator", "owner": "Administrator",

View File

@ -367,8 +367,8 @@ def get_conditions(filters):
if not filters.get(field) or field in accounting_dimensions_list: if not filters.get(field) or field in accounting_dimensions_list:
return "" return ""
return f""" and exists(select name from `tab{table}` return f""" and exists(select name from `tab{table}`
where parent=`tabSales Invoice`.name where parent=`tabSales Invoice`.name
and ifnull(`tab{table}`.{field}, '') = %({field})s)""" and ifnull(`tab{table}`.{field}, '') = %({field})s)"""
conditions += get_sales_invoice_item_field_condition("mode_of_payments", "Sales Invoice Payment") conditions += get_sales_invoice_item_field_condition("mode_of_payments", "Sales Invoice Payment")
conditions += get_sales_invoice_item_field_condition("cost_center") conditions += get_sales_invoice_item_field_condition("cost_center")

View File

@ -28,6 +28,7 @@ REPORT_FILTER_TEST_CASES: List[Tuple[ReportName, ReportFilters]] = [
("Item-wise Sales Register", {}), ("Item-wise Sales Register", {}),
("Item-wise Purchase Register", {}), ("Item-wise Purchase Register", {}),
("Sales Register", {}), ("Sales Register", {}),
("Sales Register", {"item_group": "All Item Groups"}),
("Purchase Register", {}), ("Purchase Register", {}),
( (
"Tax Detail", "Tax Detail",

View File

@ -38,7 +38,7 @@ def is_search_module_loaded():
out = cache.execute_command("MODULE LIST") out = cache.execute_command("MODULE LIST")
parsed_output = " ".join( parsed_output = " ".join(
(" ".join([s.decode() for s in o if not isinstance(s, int)]) for o in out) (" ".join([frappe.as_unicode(s) for s in o if not isinstance(s, int)]) for o in out)
) )
return "search" in parsed_output return "search" in parsed_output
except Exception: except Exception:

View File

@ -55,6 +55,9 @@ def validate_eligibility(doc):
return False return False
invalid_company = not frappe.db.get_value("E Invoice User", {"company": doc.get("company")}) invalid_company = not frappe.db.get_value("E Invoice User", {"company": doc.get("company")})
invalid_company_gstin = not frappe.db.get_value(
"E Invoice User", {"gstin": doc.get("company_gstin")}
)
invalid_supply_type = doc.get("gst_category") not in [ invalid_supply_type = doc.get("gst_category") not in [
"Registered Regular", "Registered Regular",
"Registered Composition", "Registered Composition",
@ -71,6 +74,7 @@ def validate_eligibility(doc):
if ( if (
invalid_company invalid_company
or invalid_company_gstin
or invalid_supply_type or invalid_supply_type
or company_transaction or company_transaction
or no_taxes_applied or no_taxes_applied

View File

@ -25,7 +25,7 @@
"documentation_url": "https://docs.erpnext.com/docs/v13/user/manual/en/setting-up/company-setup", "documentation_url": "https://docs.erpnext.com/docs/v13/user/manual/en/setting-up/company-setup",
"idx": 0, "idx": 0,
"is_complete": 0, "is_complete": 0,
"modified": "2021-12-15 14:23:52.460913", "modified": "2022-06-07 14:31:00.575193",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Setup", "module": "Setup",
"name": "Home", "name": "Home",

View File

@ -2,14 +2,14 @@
"action": "Watch Video", "action": "Watch Video",
"action_label": "Learn more about data migration", "action_label": "Learn more about data migration",
"creation": "2021-05-19 05:29:16.809610", "creation": "2021-05-19 05:29:16.809610",
"description": "# Import Data from Spreadsheet\n\nIn ERPNext, you can easily migrate your historical data using spreadsheets. You can use it for migrating not just masters (like Customer, Supplier, Items), but also for transactions like (outstanding invoices, opening stock and accounting entries, etc). If you are migrating from [Tally](https://tallysolutions.com/) or [Quickbooks](https://quickbooks.intuit.com/in/), we got special migration tools for you.", "description": "# Import Data from Spreadsheet\n\nIn ERPNext, you can easily migrate your historical data using spreadsheets. You can use it for migrating not just masters (like Customer, Supplier, Items), but also for transactions like (outstanding invoices, opening stock and accounting entries, etc).",
"docstatus": 0, "docstatus": 0,
"doctype": "Onboarding Step", "doctype": "Onboarding Step",
"idx": 0, "idx": 0,
"is_complete": 0, "is_complete": 0,
"is_single": 0, "is_single": 0,
"is_skipped": 0, "is_skipped": 0,
"modified": "2021-12-15 13:10:57.346422", "modified": "2022-06-07 14:28:51.390813",
"modified_by": "Administrator", "modified_by": "Administrator",
"name": "Data import", "name": "Data import",
"owner": "Administrator", "owner": "Administrator",

View File

@ -9,7 +9,7 @@
"is_complete": 0, "is_complete": 0,
"is_single": 0, "is_single": 0,
"is_skipped": 0, "is_skipped": 0,
"modified": "2021-12-15 14:20:55.441678", "modified": "2022-06-07 14:28:00.901082",
"modified_by": "Administrator", "modified_by": "Administrator",
"name": "Navigation Help", "name": "Navigation Help",
"owner": "Administrator", "owner": "Administrator",

View File

@ -11,7 +11,7 @@
"editable_grid": 1, "editable_grid": 1,
"engine": "InnoDB", "engine": "InnoDB",
"field_order": [ "field_order": [
"name_and_description_section", "details",
"naming_series", "naming_series",
"item_code", "item_code",
"variant_of", "variant_of",
@ -35,11 +35,11 @@
"over_billing_allowance", "over_billing_allowance",
"image", "image",
"section_break_11", "section_break_11",
"brand",
"description", "description",
"sb_barcodes", "brand",
"barcodes", "dashboard_tab",
"inventory_section", "inventory_section",
"inventory_settings_section",
"shelf_life_in_days", "shelf_life_in_days",
"end_of_life", "end_of_life",
"default_material_request_type", "default_material_request_type",
@ -49,6 +49,8 @@
"weight_per_unit", "weight_per_unit",
"weight_uom", "weight_uom",
"allow_negative_stock", "allow_negative_stock",
"sb_barcodes",
"barcodes",
"reorder_section", "reorder_section",
"reorder_levels", "reorder_levels",
"unit_of_measure_conversion", "unit_of_measure_conversion",
@ -67,13 +69,13 @@
"has_variants", "has_variants",
"variant_based_on", "variant_based_on",
"attributes", "attributes",
"defaults", "accounting",
"item_defaults", "item_defaults",
"purchase_details", "purchasing_tab",
"is_purchase_item",
"purchase_uom", "purchase_uom",
"min_order_qty", "min_order_qty",
"safety_stock", "safety_stock",
"is_purchase_item",
"purchase_details_cb", "purchase_details_cb",
"lead_time_days", "lead_time_days",
"last_purchase_rate", "last_purchase_rate",
@ -83,33 +85,31 @@
"delivered_by_supplier", "delivered_by_supplier",
"column_break2", "column_break2",
"supplier_items", "supplier_items",
"deferred_expense_section",
"enable_deferred_expense",
"deferred_expense_account",
"no_of_months_exp",
"foreign_trade_details", "foreign_trade_details",
"country_of_origin", "country_of_origin",
"column_break_59", "column_break_59",
"customs_tariff_number", "customs_tariff_number",
"sales_details", "sales_details",
"sales_uom", "sales_uom",
"is_sales_item",
"grant_commission", "grant_commission",
"is_sales_item",
"column_break3", "column_break3",
"max_discount", "max_discount",
"deferred_revenue", "deferred_revenue",
"deferred_revenue_account",
"enable_deferred_revenue", "enable_deferred_revenue",
"column_break_85", "deferred_revenue_account",
"no_of_months", "no_of_months",
"deferred_expense_section",
"deferred_expense_account",
"enable_deferred_expense",
"column_break_88",
"no_of_months_exp",
"customer_details", "customer_details",
"customer_items", "customer_items",
"item_tax_section_break", "item_tax_section_break",
"taxes", "taxes",
"inspection_criteria", "quality_tab",
"quality_inspection_template",
"inspection_required_before_purchase", "inspection_required_before_purchase",
"quality_inspection_template",
"inspection_required_before_delivery", "inspection_required_before_delivery",
"manufacturing", "manufacturing",
"default_bom", "default_bom",
@ -118,17 +118,10 @@
"customer_code", "customer_code",
"default_item_manufacturer", "default_item_manufacturer",
"default_manufacturer_part_no", "default_manufacturer_part_no",
"more_information_section",
"published_in_website", "published_in_website",
"total_projected_qty" "total_projected_qty"
], ],
"fields": [ "fields": [
{
"fieldname": "name_and_description_section",
"fieldtype": "Section Break",
"oldfieldtype": "Section Break",
"options": "fa fa-flag"
},
{ {
"fieldname": "naming_series", "fieldname": "naming_series",
"fieldtype": "Select", "fieldtype": "Select",
@ -315,7 +308,7 @@
"collapsible_depends_on": "is_stock_item", "collapsible_depends_on": "is_stock_item",
"depends_on": "is_stock_item", "depends_on": "is_stock_item",
"fieldname": "inventory_section", "fieldname": "inventory_section",
"fieldtype": "Section Break", "fieldtype": "Tab Break",
"label": "Inventory", "label": "Inventory",
"oldfieldtype": "Section Break", "oldfieldtype": "Section Break",
"options": "fa fa-truck" "options": "fa fa-truck"
@ -514,31 +507,17 @@
"label": "Attributes", "label": "Attributes",
"options": "Item Variant Attribute" "options": "Item Variant Attribute"
}, },
{
"depends_on": "eval:!doc.is_fixed_asset",
"fieldname": "defaults",
"fieldtype": "Section Break",
"label": "Sales, Purchase, Accounting Defaults"
},
{ {
"fieldname": "item_defaults", "fieldname": "item_defaults",
"fieldtype": "Table", "fieldtype": "Table",
"label": "Item Defaults", "label": "Item Defaults",
"options": "Item Default" "options": "Item Default"
}, },
{
"collapsible": 1,
"fieldname": "purchase_details",
"fieldtype": "Section Break",
"label": "Purchase, Replenishment Details",
"oldfieldtype": "Section Break",
"options": "fa fa-shopping-cart"
},
{ {
"default": "1", "default": "1",
"fieldname": "is_purchase_item", "fieldname": "is_purchase_item",
"fieldtype": "Check", "fieldtype": "Check",
"label": "Is Purchase Item" "label": "Allow Purchase"
}, },
{ {
"fieldname": "purchase_uom", "fieldname": "purchase_uom",
@ -646,8 +625,8 @@
{ {
"collapsible": 1, "collapsible": 1,
"fieldname": "sales_details", "fieldname": "sales_details",
"fieldtype": "Section Break", "fieldtype": "Tab Break",
"label": "Sales Details", "label": "Sales",
"oldfieldtype": "Section Break", "oldfieldtype": "Section Break",
"options": "fa fa-tag" "options": "fa fa-tag"
}, },
@ -661,7 +640,7 @@
"default": "1", "default": "1",
"fieldname": "is_sales_item", "fieldname": "is_sales_item",
"fieldtype": "Check", "fieldtype": "Check",
"label": "Is Sales Item" "label": "Allow Sales"
}, },
{ {
"fieldname": "column_break3", "fieldname": "column_break3",
@ -696,10 +675,6 @@
"fieldtype": "Check", "fieldtype": "Check",
"label": "Enable Deferred Revenue" "label": "Enable Deferred Revenue"
}, },
{
"fieldname": "column_break_85",
"fieldtype": "Column Break"
},
{ {
"depends_on": "enable_deferred_revenue", "depends_on": "enable_deferred_revenue",
"fieldname": "no_of_months", "fieldname": "no_of_months",
@ -726,10 +701,6 @@
"fieldtype": "Check", "fieldtype": "Check",
"label": "Enable Deferred Expense" "label": "Enable Deferred Expense"
}, },
{
"fieldname": "column_break_88",
"fieldtype": "Column Break"
},
{ {
"depends_on": "enable_deferred_expense", "depends_on": "enable_deferred_expense",
"fieldname": "no_of_months_exp", "fieldname": "no_of_months_exp",
@ -753,8 +724,8 @@
"collapsible": 1, "collapsible": 1,
"collapsible_depends_on": "taxes", "collapsible_depends_on": "taxes",
"fieldname": "item_tax_section_break", "fieldname": "item_tax_section_break",
"fieldtype": "Section Break", "fieldtype": "Tab Break",
"label": "Item Tax", "label": "Tax",
"oldfieldtype": "Section Break", "oldfieldtype": "Section Break",
"options": "fa fa-money" "options": "fa fa-money"
}, },
@ -767,15 +738,6 @@
"oldfieldtype": "Table", "oldfieldtype": "Table",
"options": "Item Tax" "options": "Item Tax"
}, },
{
"collapsible": 1,
"depends_on": "eval:!doc.is_fixed_asset",
"fieldname": "inspection_criteria",
"fieldtype": "Section Break",
"label": "Inspection Criteria",
"oldfieldtype": "Section Break",
"options": "fa fa-search"
},
{ {
"default": "0", "default": "0",
"fieldname": "inspection_required_before_purchase", "fieldname": "inspection_required_before_purchase",
@ -801,7 +763,7 @@
"collapsible": 1, "collapsible": 1,
"depends_on": "is_stock_item", "depends_on": "is_stock_item",
"fieldname": "manufacturing", "fieldname": "manufacturing",
"fieldtype": "Section Break", "fieldtype": "Tab Break",
"label": "Manufacturing", "label": "Manufacturing",
"oldfieldtype": "Section Break", "oldfieldtype": "Section Break",
"options": "fa fa-cogs" "options": "fa fa-cogs"
@ -880,12 +842,6 @@
"label": "Default Manufacturer Part No", "label": "Default Manufacturer Part No",
"read_only": 1 "read_only": 1
}, },
{
"collapsible": 1,
"fieldname": "more_information_section",
"fieldtype": "Section Break",
"label": "More Information"
},
{ {
"default": "0", "default": "0",
"depends_on": "published_in_website", "depends_on": "published_in_website",
@ -912,6 +868,40 @@
"fieldname": "allow_negative_stock", "fieldname": "allow_negative_stock",
"fieldtype": "Check", "fieldtype": "Check",
"label": "Allow Negative Stock" "label": "Allow Negative Stock"
},
{
"fieldname": "inventory_settings_section",
"fieldtype": "Section Break",
"label": "Inventory Settings"
},
{
"fieldname": "purchasing_tab",
"fieldtype": "Tab Break",
"label": "Purchasing"
},
{
"fieldname": "quality_tab",
"fieldtype": "Tab Break",
"label": "Quality"
},
{
"fieldname": "details",
"fieldtype": "Tab Break",
"label": "Details",
"oldfieldtype": "Section Break",
"options": "fa fa-flag"
},
{
"fieldname": "dashboard_tab",
"fieldtype": "Tab Break",
"label": "Dashboard",
"show_dashboard": 1
},
{
"depends_on": "eval:!doc.is_fixed_asset",
"fieldname": "accounting",
"fieldtype": "Tab Break",
"label": "Accounting"
} }
], ],
"icon": "fa fa-tag", "icon": "fa fa-tag",
@ -919,7 +909,7 @@
"image_field": "image", "image_field": "image",
"index_web_pages_for_search": 1, "index_web_pages_for_search": 1,
"links": [], "links": [],
"modified": "2022-04-28 04:52:10.272256", "modified": "2022-06-08 11:35:20.094546",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Stock", "module": "Stock",
"name": "Item", "name": "Item",