Merge branch 'develop' into hr-separation
This commit is contained in:
commit
2ae48fbdd4
@ -68,9 +68,6 @@ frappe.query_reports["Purchase Analytics"] = {
|
||||
}
|
||||
|
||||
],
|
||||
after_datatable_render: function(datatable_obj) {
|
||||
$(datatable_obj.wrapper).find(".dt-row-0").find('input[type=checkbox]').click();
|
||||
},
|
||||
get_datatable_options(options) {
|
||||
return Object.assign(options, {
|
||||
checkboxColumn: true,
|
||||
@ -130,11 +127,8 @@ frappe.query_reports["Purchase Analytics"] = {
|
||||
labels: raw_data.labels,
|
||||
datasets: new_datasets,
|
||||
};
|
||||
chart_options = {
|
||||
data: new_data,
|
||||
type: "line",
|
||||
};
|
||||
frappe.query_report.render_chart(chart_options);
|
||||
const new_options = Object.assign({}, frappe.query_report.chart_options, {data: new_data});
|
||||
frappe.query_report.render_chart(new_options);
|
||||
|
||||
frappe.query_report.raw_chart_data = new_data;
|
||||
},
|
||||
|
@ -304,5 +304,5 @@ erpnext.patches.v13_0.job_card_status_on_hold
|
||||
erpnext.patches.v14_0.copy_is_subcontracted_value_to_is_old_subcontracting_flow
|
||||
erpnext.patches.v14_0.migrate_gl_to_payment_ledger
|
||||
erpnext.patches.v14_0.crm_ux_cleanup
|
||||
erpnext.patches.v14_0.remove_india_localisation
|
||||
erpnext.patches.v14_0.delete_hr_payroll_doctypes
|
||||
erpnext.patches.v14_0.remove_india_localisation # 14-07-2022
|
||||
erpnext.patches.v14_0.delete_hr_payroll_doctypes
|
@ -3,7 +3,10 @@ import frappe
|
||||
|
||||
|
||||
def execute():
|
||||
if not frappe.db.exists("Company", {"country": "India"}):
|
||||
if (
|
||||
not frappe.db.exists("Company", {"country": "India"})
|
||||
or "india_compliance" in frappe.get_installed_apps()
|
||||
):
|
||||
return
|
||||
|
||||
click.secho(
|
||||
|
@ -3,6 +3,24 @@ import frappe
|
||||
|
||||
|
||||
def execute():
|
||||
if "india_compliance" in frappe.get_installed_apps():
|
||||
return
|
||||
|
||||
delete_docs()
|
||||
unlink_custom_fields()
|
||||
|
||||
if not frappe.db.exists("Company", {"country": "India"}):
|
||||
return
|
||||
|
||||
click.secho(
|
||||
"India-specific regional features have been moved to a separate app."
|
||||
" Please install India Compliance to continue using these features:"
|
||||
" https://github.com/resilient-tech/india-compliance",
|
||||
fg="yellow",
|
||||
)
|
||||
|
||||
|
||||
def delete_docs():
|
||||
to_delete = {
|
||||
"DocType": [
|
||||
"C-Form",
|
||||
@ -12,6 +30,7 @@ def execute():
|
||||
"E Invoice Settings",
|
||||
"E Invoice User",
|
||||
"GST HSN Code",
|
||||
"HSN Tax Rate",
|
||||
"GST Settings",
|
||||
"GSTR 3B Report",
|
||||
],
|
||||
@ -43,12 +62,10 @@ def execute():
|
||||
ignore_missing=True,
|
||||
)
|
||||
|
||||
if not frappe.db.exists("Company", {"country": "India"}):
|
||||
return
|
||||
|
||||
click.secho(
|
||||
"India-specific regional features have been moved to a separate app."
|
||||
" Please install India Compliance to continue using these features:"
|
||||
" https://github.com/resilient-tech/india-compliance",
|
||||
fg="yellow",
|
||||
def unlink_custom_fields():
|
||||
frappe.db.set_value(
|
||||
"Custom Field",
|
||||
{"dt": "Item", "fieldname": "gst_hsn_code"},
|
||||
{"fieldtype": "Data", "options": ""},
|
||||
)
|
||||
|
@ -1,9 +0,0 @@
|
||||
{{ address_line1 }}<br>{% if address_line2 %}{{ address_line2 }}<br>{% endif -%}{{ city }}<br>
|
||||
{% if gst_state %}{{ gst_state }}{% endif -%}
|
||||
{% if gst_state_number %}, State Code: {{ gst_state_number }}<br>{% endif -%}
|
||||
{% if pincode %}Postal Code: {{ pincode }}<br>{% endif -%}
|
||||
{{ country }}<br>
|
||||
{% if phone %}Phone: {{ phone }}<br>{% endif -%}
|
||||
{% if fax %}Fax: {{ fax }}<br>{% endif -%}
|
||||
{% if email_id %}Email: {{ email_id }}<br>{% endif -%}
|
||||
{% if gstin %}GSTIN: {{ gstin }}<br>{% endif -%}
|
File diff suppressed because it is too large
Load Diff
@ -1,39 +0,0 @@
|
||||
{
|
||||
"actions": [],
|
||||
"allow_rename": 1,
|
||||
"creation": "2022-05-11 13:32:42.534779",
|
||||
"doctype": "DocType",
|
||||
"editable_grid": 1,
|
||||
"engine": "InnoDB",
|
||||
"field_order": [
|
||||
"minimum_taxable_value",
|
||||
"tax_rate"
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"columns": 2,
|
||||
"fieldname": "minimum_taxable_value",
|
||||
"fieldtype": "Currency",
|
||||
"in_list_view": 1,
|
||||
"label": "Minimum Taxable Value"
|
||||
},
|
||||
{
|
||||
"columns": 2,
|
||||
"fieldname": "tax_rate",
|
||||
"fieldtype": "Float",
|
||||
"in_list_view": 1,
|
||||
"label": "Tax Rate"
|
||||
}
|
||||
],
|
||||
"index_web_pages_for_search": 1,
|
||||
"istable": 1,
|
||||
"links": [],
|
||||
"modified": "2022-05-15 15:37:56.152470",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Regional",
|
||||
"name": "HSN Tax Rate",
|
||||
"owner": "Administrator",
|
||||
"permissions": [],
|
||||
"sort_field": "modified",
|
||||
"sort_order": "DESC"
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
# Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and contributors
|
||||
# For license information, please see license.txt
|
||||
|
||||
# import frappe
|
||||
from frappe.model.document import Document
|
||||
|
||||
|
||||
class HSNTaxRate(Document):
|
||||
pass
|
@ -67,9 +67,6 @@ frappe.query_reports["Sales Analytics"] = {
|
||||
reqd: 1
|
||||
}
|
||||
],
|
||||
after_datatable_render: function(datatable_obj) {
|
||||
$(datatable_obj.wrapper).find(".dt-row-0").find('input[type=checkbox]').click();
|
||||
},
|
||||
get_datatable_options(options) {
|
||||
return Object.assign(options, {
|
||||
checkboxColumn: true,
|
||||
@ -109,11 +106,8 @@ frappe.query_reports["Sales Analytics"] = {
|
||||
labels: raw_data.labels,
|
||||
datasets: new_datasets,
|
||||
};
|
||||
|
||||
frappe.query_report.render_chart({
|
||||
data: new_data,
|
||||
type: "line",
|
||||
});
|
||||
const new_options = Object.assign({}, frappe.query_report.chart_options, {data: new_data});
|
||||
frappe.query_report.render_chart(new_options);
|
||||
|
||||
frappe.query_report.raw_chart_data = new_data;
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user