diff --git a/erpnext/buying/report/purchase_person_commission_summary/purchase_person_commission_summary.js b/erpnext/buying/report/purchase_person_commission_summary/purchase_person_commission_summary.js index 478e9f7c408..c019c879f0a 100644 --- a/erpnext/buying/report/purchase_person_commission_summary/purchase_person_commission_summary.js +++ b/erpnext/buying/report/purchase_person_commission_summary/purchase_person_commission_summary.js @@ -41,11 +41,5 @@ frappe.query_reports["Purchase Person Commission Summary"] = { fieldtype: "Link", options: "Supplier", }, - { - fieldname: "territory", - label: __("Territory"), - fieldtype: "Link", - options: "Territory", - }, ], }; diff --git a/erpnext/buying/report/purchase_person_commission_summary/purchase_person_commission_summary.py b/erpnext/buying/report/purchase_person_commission_summary/purchase_person_commission_summary.py index b9fcf54153e..7ba89d9332c 100644 --- a/erpnext/buying/report/purchase_person_commission_summary/purchase_person_commission_summary.py +++ b/erpnext/buying/report/purchase_person_commission_summary/purchase_person_commission_summary.py @@ -18,7 +18,6 @@ def execute(filters=None): [ d.name, d.supplier, - d.territory, d.posting_date, d.base_net_amount, d.purchase_person, @@ -55,13 +54,6 @@ def get_columns(filters): "fieldtype": "Link", "width": 140, }, - { - "label": _("Territory"), - "options": "Territory", - "fieldname": "territory", - "fieldtype": "Link", - "width": 100, - }, {"label": _("Posting Date"), "fieldname": "posting_date", "fieldtype": "Date", "width": 100}, {"label": _("Amount"), "fieldname": "amount", "fieldtype": "Currency", "width": 120}, { @@ -106,7 +98,6 @@ def get_entries(filters): .select( dt.name, dt.supplier, - dt.territory, date_field.as_("posting_date"), dt.base_net_total.as_("base_net_amount"), pt.commission_rate, @@ -133,7 +124,7 @@ def get_conditions(dt, pt, filters, date_field): elif to_dt: conditions.append(date_field.lte(to_dt)) - for field in ["company", "supplier", "territory"]: + for field in ["company", "supplier"]: if filters.get(field): conditions.append(dt[field].eq(filters.get(field))) diff --git a/erpnext/buying/report/purchase_person_wise_transaction_summary/purchase_person_wise_transaction_summary.js b/erpnext/buying/report/purchase_person_wise_transaction_summary/purchase_person_wise_transaction_summary.js index 84f6f8ea927..acd132d1a0f 100644 --- a/erpnext/buying/report/purchase_person_wise_transaction_summary/purchase_person_wise_transaction_summary.js +++ b/erpnext/buying/report/purchase_person_wise_transaction_summary/purchase_person_wise_transaction_summary.js @@ -54,12 +54,6 @@ frappe.query_reports["Purchase Person-wise Transaction Summary"] = { fieldtype: "Link", options: "Supplier", }, - { - fieldname: "territory", - label: __("Territory"), - fieldtype: "Link", - options: "Territory", - }, { fieldname: "show_return_entries", label: __("Show Return Entries"), diff --git a/erpnext/buying/report/purchase_person_wise_transaction_summary/purchase_person_wise_transaction_summary.py b/erpnext/buying/report/purchase_person_wise_transaction_summary/purchase_person_wise_transaction_summary.py index 5ac58512a4a..48cc7c13d1d 100644 --- a/erpnext/buying/report/purchase_person_wise_transaction_summary/purchase_person_wise_transaction_summary.py +++ b/erpnext/buying/report/purchase_person_wise_transaction_summary/purchase_person_wise_transaction_summary.py @@ -28,7 +28,6 @@ def execute(filters=None): [ d.name, d.supplier, - d.territory, d.warehouse, d.posting_date, d.item_code, @@ -77,13 +76,6 @@ def get_columns(filters): "fieldtype": "Link", "width": 140, }, - { - "label": _("Territory"), - "options": "Territory", - "fieldname": "territory", - "fieldtype": "Link", - "width": 140, - }, { "label": _("Warehouse"), "options": "Warehouse", @@ -192,7 +184,6 @@ def get_entries(filters): .select( dt.name, dt.supplier, - dt.territory, dt[date_field].as_("posting_date"), dt_item.item_code, pt.purchase_person, @@ -215,7 +206,7 @@ def get_entries(filters): def get_conditions(dt, pt, filters, date_field): conditions = [] - for field in ["company", "supplier", "territory"]: + for field in ["company", "supplier"]: if filters.get(field): conditions.append(dt[field].eq(filters[field]))