mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-19 23:12:13 +00:00
@@ -36,7 +36,7 @@ frappe.query_reports["Gross Profit"] = {
|
|||||||
label: __("Group By"),
|
label: __("Group By"),
|
||||||
fieldtype: "Select",
|
fieldtype: "Select",
|
||||||
options:
|
options:
|
||||||
"Invoice\nItem Code\nItem Group\nBrand\nWarehouse\nCustomer\nCustomer Group\nTerritory\nSales Person\nProject\nMonthly\nPayment Term",
|
"Invoice\nItem Code\nItem Group\nBrand\nWarehouse\nCustomer\nCustomer Group\nTerritory\nSales Person\nProject\nCost Center\nMonthly\nPayment Term",
|
||||||
default: "Invoice",
|
default: "Invoice",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -125,6 +125,13 @@ def execute(filters=None):
|
|||||||
"gross_profit_percent",
|
"gross_profit_percent",
|
||||||
],
|
],
|
||||||
"project": ["project", "base_amount", "buying_amount", "gross_profit", "gross_profit_percent"],
|
"project": ["project", "base_amount", "buying_amount", "gross_profit", "gross_profit_percent"],
|
||||||
|
"cost_center": [
|
||||||
|
"cost_center",
|
||||||
|
"base_amount",
|
||||||
|
"buying_amount",
|
||||||
|
"gross_profit",
|
||||||
|
"gross_profit_percent",
|
||||||
|
],
|
||||||
"territory": [
|
"territory": [
|
||||||
"territory",
|
"territory",
|
||||||
"base_amount",
|
"base_amount",
|
||||||
@@ -304,7 +311,14 @@ def get_columns(group_wise_columns, filters):
|
|||||||
"fieldname": "project",
|
"fieldname": "project",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"options": "Project",
|
"options": "Project",
|
||||||
"width": 100,
|
"width": 140,
|
||||||
|
},
|
||||||
|
"cost_center": {
|
||||||
|
"label": _("Cost Center"),
|
||||||
|
"fieldname": "cost_center",
|
||||||
|
"fieldtype": "Link",
|
||||||
|
"options": "Cost Center",
|
||||||
|
"width": 140,
|
||||||
},
|
},
|
||||||
"sales_person": {
|
"sales_person": {
|
||||||
"label": _("Sales Person"),
|
"label": _("Sales Person"),
|
||||||
|
|||||||
Reference in New Issue
Block a user