renamed report
This commit is contained in:
parent
1c1d0bb1c7
commit
4ae221946b
@ -591,4 +591,4 @@ erpnext.patches.v12_0.add_item_name_in_work_orders
|
||||
erpnext.patches.v12_0.update_pricing_rule_fields
|
||||
erpnext.patches.v11_1.make_job_card_time_logs
|
||||
erpnext.patches.v12_0.rename_pricing_rule_child_doctypes
|
||||
erpnext.patches.v12_0.move_target_distribution_from_parent_to_child
|
||||
erpnext.patches.v12_0.move_target_distribution_from_parent_to_child #wmnfb
|
||||
|
@ -15,4 +15,8 @@ def execute():
|
||||
WHERE
|
||||
`tab{child_doc}`.parent = `tab{parent_doc}`.name
|
||||
and `tab{parent_doc}`.distribution_id is not null and `tab{parent_doc}`.distribution_id != ''
|
||||
""".format(parent_doc = d, child_doc = "Target Detail"))
|
||||
""".format(parent_doc = d, child_doc = "Target Detail"))
|
||||
|
||||
frappe.delete_doc("Report", "Sales Partner-wise Transaction Summary")
|
||||
frappe.delete_doc("Report", "Sales Person Target Variance Item Group-Wise")
|
||||
frappe.delete_doc("Report", "Territory Target Variance Item Group-Wise")
|
@ -195,7 +195,7 @@ def get_actual_data(filters, item_groups, sales_users_or_territory_data, date_fi
|
||||
parent_doc = filters.get("doctype"),
|
||||
child_doc = filters.get("doctype") + ' Item',
|
||||
item_groups = ','.join(['%s'] * len(item_groups))
|
||||
), tuple(sales_users_or_territory_data + item_groups + dates), as_dict=1, debug=1)
|
||||
), tuple(sales_users_or_territory_data + item_groups + dates), as_dict=1)
|
||||
|
||||
def get_parents_data(filters, partner_doctype):
|
||||
filters_dict = {'parenttype': partner_doctype}
|
@ -1,7 +1,8 @@
|
||||
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
||||
// License: GNU General Public License v3. See license.txt
|
||||
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors
|
||||
// For license information, please see license.txt
|
||||
/* eslint-disable */
|
||||
|
||||
frappe.query_reports["Territory Target Variance Item Group-Wise"] = {
|
||||
frappe.query_reports["Sales Partner Target Variance based on Item Group"] = {
|
||||
"filters": [
|
||||
{
|
||||
fieldname:"company",
|
@ -1,19 +1,21 @@
|
||||
{
|
||||
"add_total_row": 0,
|
||||
"apply_user_permissions": 1,
|
||||
"creation": "2013-06-21 12:15:00",
|
||||
"creation": "2019-03-25 18:22:37.323995",
|
||||
"disable_prepared_report": 0,
|
||||
"disabled": 0,
|
||||
"docstatus": 0,
|
||||
"doctype": "Report",
|
||||
"idx": 3,
|
||||
"idx": 0,
|
||||
"is_standard": "Yes",
|
||||
"modified": "2017-02-24 20:13:29.705321",
|
||||
"letter_head": "Gadgets International",
|
||||
"modified": "2019-03-25 18:22:37.323995",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Selling",
|
||||
"name": "Territory Target Variance Item Group-Wise",
|
||||
"name": "Sales Partner Target Variance based on Item Group",
|
||||
"owner": "Administrator",
|
||||
"prepared_report": 0,
|
||||
"ref_doctype": "Sales Order",
|
||||
"report_name": "Territory Target Variance Item Group-Wise",
|
||||
"report_name": "Sales Partner Target Variance based on Item Group",
|
||||
"report_type": "Script Report",
|
||||
"roles": [
|
||||
{
|
@ -3,7 +3,7 @@
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
from erpnext.selling.report.sales_partner_target_variance_item_group_wise.item_group_wise_sales_target_variance import get_data_column
|
||||
from erpnext.selling.report.sales_partner_target_variance_based_on_item_group.item_group_wise_sales_target_variance import get_data_column
|
||||
|
||||
def execute(filters=None):
|
||||
data = []
|
@ -2,7 +2,7 @@
|
||||
// For license information, please see license.txt
|
||||
/* eslint-disable */
|
||||
|
||||
frappe.query_reports["Sales Partner-wise Transaction Summary"] = {
|
||||
frappe.query_reports["Sales Partner Transaction Summary"] = {
|
||||
"filters": [
|
||||
{
|
||||
fieldname: "sales_partner",
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"add_total_row": 1,
|
||||
"creation": "2019-03-15 16:21:16.088831",
|
||||
"creation": "2019-03-25 18:15:09.920739",
|
||||
"disable_prepared_report": 0,
|
||||
"disabled": 0,
|
||||
"docstatus": 0,
|
||||
@ -8,14 +8,14 @@
|
||||
"idx": 0,
|
||||
"is_standard": "Yes",
|
||||
"letter_head": "Gadgets International",
|
||||
"modified": "2019-03-15 16:21:16.088831",
|
||||
"modified": "2019-03-25 18:15:09.920739",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Selling",
|
||||
"name": "Sales Partner-wise Transaction Summary",
|
||||
"name": "Sales Partner Transaction Summary",
|
||||
"owner": "Administrator",
|
||||
"prepared_report": 0,
|
||||
"ref_doctype": "Sales Order",
|
||||
"report_name": "Sales Partner-wise Transaction Summary",
|
||||
"report_name": "Sales Partner Transaction Summary",
|
||||
"report_type": "Script Report",
|
||||
"roles": [
|
||||
{
|
@ -1,7 +1,8 @@
|
||||
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
||||
// License: GNU General Public License v3. See license.txt
|
||||
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors
|
||||
// For license information, please see license.txt
|
||||
/* eslint-disable */
|
||||
|
||||
frappe.query_reports["Sales Person Target Variance Item Group-Wise"] = {
|
||||
frappe.query_reports["Sales Person Target Variance Based On Item Group"] = {
|
||||
"filters": [
|
||||
{
|
||||
fieldname:"company",
|
@ -1,19 +1,21 @@
|
||||
{
|
||||
"add_total_row": 0,
|
||||
"apply_user_permissions": 1,
|
||||
"creation": "2013-06-21 12:14:15",
|
||||
"creation": "2019-03-25 22:16:49.040998",
|
||||
"disable_prepared_report": 0,
|
||||
"disabled": 0,
|
||||
"docstatus": 0,
|
||||
"doctype": "Report",
|
||||
"idx": 3,
|
||||
"idx": 0,
|
||||
"is_standard": "Yes",
|
||||
"modified": "2017-02-24 20:14:50.589149",
|
||||
"letter_head": "Gadgets International",
|
||||
"modified": "2019-03-25 22:16:49.040998",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Selling",
|
||||
"name": "Sales Person Target Variance Item Group-Wise",
|
||||
"name": "Sales Person Target Variance Based On Item Group",
|
||||
"owner": "Administrator",
|
||||
"prepared_report": 0,
|
||||
"ref_doctype": "Sales Order",
|
||||
"report_name": "Sales Person Target Variance Item Group-Wise",
|
||||
"report_name": "Sales Person Target Variance Based On Item Group",
|
||||
"report_type": "Script Report",
|
||||
"roles": [
|
||||
{
|
@ -3,10 +3,9 @@
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
from erpnext.selling.report.sales_partner_target_variance_item_group_wise.item_group_wise_sales_target_variance import get_data_column
|
||||
from erpnext.selling.report.sales_partner_target_variance_based_on_item_group.item_group_wise_sales_target_variance import get_data_column
|
||||
|
||||
def execute(filters=None):
|
||||
data = []
|
||||
|
||||
return get_data_column(filters, "Sales Person")
|
||||
|
||||
return get_data_column(filters, "Sales Person")
|
@ -2,7 +2,7 @@
|
||||
// For license information, please see license.txt
|
||||
/* eslint-disable */
|
||||
|
||||
frappe.query_reports["Sales Partner Target Variance Item Group-Wise"] = {
|
||||
frappe.query_reports["Territory Target Variance Based On Item Group"] = {
|
||||
"filters": [
|
||||
{
|
||||
fieldname:"company",
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"add_total_row": 0,
|
||||
"creation": "2019-03-15 17:42:00.631020",
|
||||
"creation": "2019-03-25 22:20:59.033199",
|
||||
"disable_prepared_report": 0,
|
||||
"disabled": 0,
|
||||
"docstatus": 0,
|
||||
@ -8,14 +8,14 @@
|
||||
"idx": 0,
|
||||
"is_standard": "Yes",
|
||||
"letter_head": "Gadgets International",
|
||||
"modified": "2019-03-15 17:42:00.631020",
|
||||
"modified": "2019-03-25 22:20:59.033199",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Selling",
|
||||
"name": "Sales Partner Target Variance Item Group-Wise",
|
||||
"name": "Territory Target Variance Based On Item Group",
|
||||
"owner": "Administrator",
|
||||
"prepared_report": 0,
|
||||
"ref_doctype": "Sales Order",
|
||||
"report_name": "Sales Partner Target Variance Item Group-Wise",
|
||||
"report_name": "Territory Target Variance Based On Item Group",
|
||||
"report_type": "Script Report",
|
||||
"roles": [
|
||||
{
|
@ -3,10 +3,9 @@
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
from erpnext.selling.report.sales_partner_target_variance_item_group_wise.item_group_wise_sales_target_variance import get_data_column
|
||||
from erpnext.selling.report.sales_partner_target_variance_based_on_item_group.item_group_wise_sales_target_variance import get_data_column
|
||||
|
||||
def execute(filters=None):
|
||||
data = []
|
||||
|
||||
return get_data_column(filters, "Territory")
|
||||
|
@ -23,6 +23,6 @@ frappe.ui.form.on('Sales Partner', {
|
||||
'fiscal_year': row.fiscal_year
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
|
@ -18,7 +18,7 @@ frappe.ui.form.on('Sales Person', {
|
||||
'fiscal_year': row.fiscal_year
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -10,9 +10,9 @@ frappe.ui.form.on("Territory", {
|
||||
'fiscal_year': row.fiscal_year
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
cur_frm.cscript.refresh = function(doc, cdt, cdn) {
|
||||
cur_frm.cscript.set_root_readonly(doc);
|
||||
|
Loading…
x
Reference in New Issue
Block a user