mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-26 18:18:30 +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",
|
||||
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"
|
||||
|
||||
@@ -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",
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
@@ -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"),
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user