mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
fix: cannot jump to sales invoice in gross profit report
(cherry picked from commit 78dd364b0b)
This commit is contained in:
committed by
mergify-bot
parent
5a771dca46
commit
7c5480d729
@@ -42,6 +42,11 @@ frappe.query_reports["Gross Profit"] = {
|
|||||||
"parent_field": "parent_invoice",
|
"parent_field": "parent_invoice",
|
||||||
"initial_depth": 3,
|
"initial_depth": 3,
|
||||||
"formatter": function(value, row, column, data, default_formatter) {
|
"formatter": function(value, row, column, data, default_formatter) {
|
||||||
|
if (column.fieldname == "sales_invoice" && column.options == "Item" && data.indent == 0) {
|
||||||
|
column._options = "Sales Invoice";
|
||||||
|
} else {
|
||||||
|
column._options = "Item";
|
||||||
|
}
|
||||||
value = default_formatter(value, row, column, data);
|
value = default_formatter(value, row, column, data);
|
||||||
|
|
||||||
if (data && (data.indent == 0.0 || row[1].content == "Total")) {
|
if (data && (data.indent == 0.0 || row[1].content == "Total")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user