mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 23:52:57 +00:00
feat: sticky column in various reports (#53960)
Co-authored-by: diptanilsaha <diptanil@frappe.io> Co-authored-by: mihir-kandoi <kandoimihir@gmail.com>
This commit is contained in:
@@ -149,6 +149,7 @@ class AccountsReceivableSummary(ReceivablePayableReport):
|
|||||||
fieldtype="Dynamic Link",
|
fieldtype="Dynamic Link",
|
||||||
options="party_type",
|
options="party_type",
|
||||||
width=180,
|
width=180,
|
||||||
|
sticky=(self.party_naming_by not in ["Naming Series", "Auto Name"]),
|
||||||
)
|
)
|
||||||
|
|
||||||
if self.party_naming_by == "Naming Series":
|
if self.party_naming_by == "Naming Series":
|
||||||
@@ -156,6 +157,7 @@ class AccountsReceivableSummary(ReceivablePayableReport):
|
|||||||
label=_("Supplier Name") if self.account_type == "Payable" else _("Customer Name"),
|
label=_("Supplier Name") if self.account_type == "Payable" else _("Customer Name"),
|
||||||
fieldname="party_name",
|
fieldname="party_name",
|
||||||
fieldtype="Data",
|
fieldtype="Data",
|
||||||
|
sticky=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
credit_debit_label = "Credit Note" if self.account_type == "Receivable" else "Debit Note"
|
credit_debit_label = "Credit Note" if self.account_type == "Receivable" else "Debit Note"
|
||||||
|
|||||||
@@ -135,6 +135,7 @@ def get_columns(filters: Filters) -> list[dict]:
|
|||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"options": "Item",
|
"options": "Item",
|
||||||
"width": 100,
|
"width": 100,
|
||||||
|
"sticky": "True",
|
||||||
},
|
},
|
||||||
{"label": _("Item Name"), "fieldname": "item_name", "fieldtype": "Data", "width": 100},
|
{"label": _("Item Name"), "fieldname": "item_name", "fieldtype": "Data", "width": 100},
|
||||||
{"label": _("Description"), "fieldname": "description", "fieldtype": "Data", "width": 200},
|
{"label": _("Description"), "fieldname": "description", "fieldtype": "Data", "width": 200},
|
||||||
@@ -162,6 +163,7 @@ def get_columns(filters: Filters) -> list[dict]:
|
|||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"options": "Warehouse",
|
"options": "Warehouse",
|
||||||
"width": 100,
|
"width": 100,
|
||||||
|
"sticky": "True",
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -475,6 +475,7 @@ class StockBalanceReport:
|
|||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"options": "Item",
|
"options": "Item",
|
||||||
"width": 100,
|
"width": 100,
|
||||||
|
"sticky": "True",
|
||||||
},
|
},
|
||||||
{"label": _("Item Name"), "fieldname": "item_name", "width": 150},
|
{"label": _("Item Name"), "fieldname": "item_name", "width": 150},
|
||||||
{
|
{
|
||||||
@@ -490,6 +491,7 @@ class StockBalanceReport:
|
|||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"options": "Warehouse",
|
"options": "Warehouse",
|
||||||
"width": 100,
|
"width": 100,
|
||||||
|
"sticky": "True",
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -520,6 +522,7 @@ class StockBalanceReport:
|
|||||||
"fieldtype": "Float",
|
"fieldtype": "Float",
|
||||||
"width": 100,
|
"width": 100,
|
||||||
"convertible": "qty",
|
"convertible": "qty",
|
||||||
|
"sticky": "True",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": _("Balance Value"),
|
"label": _("Balance Value"),
|
||||||
@@ -527,6 +530,7 @@ class StockBalanceReport:
|
|||||||
"fieldtype": "Currency",
|
"fieldtype": "Currency",
|
||||||
"width": 100,
|
"width": 100,
|
||||||
"options": "Company:company:default_currency",
|
"options": "Company:company:default_currency",
|
||||||
|
"sticky": "True",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": _("Opening Qty"),
|
"label": _("Opening Qty"),
|
||||||
|
|||||||
@@ -106,6 +106,7 @@ def get_columns():
|
|||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"options": "Item",
|
"options": "Item",
|
||||||
"width": 140,
|
"width": 140,
|
||||||
|
"sticky": "True",
|
||||||
},
|
},
|
||||||
{"label": _("Item Name"), "fieldname": "item_name", "width": 100},
|
{"label": _("Item Name"), "fieldname": "item_name", "width": 100},
|
||||||
{"label": _("Description"), "fieldname": "description", "width": 200},
|
{"label": _("Description"), "fieldname": "description", "width": 200},
|
||||||
@@ -129,6 +130,7 @@ def get_columns():
|
|||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"options": "Warehouse",
|
"options": "Warehouse",
|
||||||
"width": 120,
|
"width": 120,
|
||||||
|
"sticky": "True",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": _("UOM"),
|
"label": _("UOM"),
|
||||||
|
|||||||
Reference in New Issue
Block a user