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:
Shllokkk
2026-03-31 23:38:19 +05:30
committed by GitHub
parent d76ddf7271
commit fbe5d128a8
4 changed files with 10 additions and 0 deletions

View File

@@ -149,6 +149,7 @@ class AccountsReceivableSummary(ReceivablePayableReport):
fieldtype="Dynamic Link",
options="party_type",
width=180,
sticky=(self.party_naming_by not in ["Naming Series", "Auto Name"]),
)
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"),
fieldname="party_name",
fieldtype="Data",
sticky=True,
)
credit_debit_label = "Credit Note" if self.account_type == "Receivable" else "Debit Note"

View File

@@ -135,6 +135,7 @@ def get_columns(filters: Filters) -> list[dict]:
"fieldtype": "Link",
"options": "Item",
"width": 100,
"sticky": "True",
},
{"label": _("Item Name"), "fieldname": "item_name", "fieldtype": "Data", "width": 100},
{"label": _("Description"), "fieldname": "description", "fieldtype": "Data", "width": 200},
@@ -162,6 +163,7 @@ def get_columns(filters: Filters) -> list[dict]:
"fieldtype": "Link",
"options": "Warehouse",
"width": 100,
"sticky": "True",
}
]

View File

@@ -475,6 +475,7 @@ class StockBalanceReport:
"fieldtype": "Link",
"options": "Item",
"width": 100,
"sticky": "True",
},
{"label": _("Item Name"), "fieldname": "item_name", "width": 150},
{
@@ -490,6 +491,7 @@ class StockBalanceReport:
"fieldtype": "Link",
"options": "Warehouse",
"width": 100,
"sticky": "True",
},
]
@@ -520,6 +522,7 @@ class StockBalanceReport:
"fieldtype": "Float",
"width": 100,
"convertible": "qty",
"sticky": "True",
},
{
"label": _("Balance Value"),
@@ -527,6 +530,7 @@ class StockBalanceReport:
"fieldtype": "Currency",
"width": 100,
"options": "Company:company:default_currency",
"sticky": "True",
},
{
"label": _("Opening Qty"),

View File

@@ -106,6 +106,7 @@ def get_columns():
"fieldtype": "Link",
"options": "Item",
"width": 140,
"sticky": "True",
},
{"label": _("Item Name"), "fieldname": "item_name", "width": 100},
{"label": _("Description"), "fieldname": "description", "width": 200},
@@ -129,6 +130,7 @@ def get_columns():
"fieldtype": "Link",
"options": "Warehouse",
"width": 120,
"sticky": "True",
},
{
"label": _("UOM"),