mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 00:44:45 +00:00
refactor(UX): Stock ledger serial and batch number fields
This commit is contained in:
@@ -119,7 +119,7 @@ frappe.query_reports["Stock Ledger"] = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldname: "segregate_serial_batch_bundle",
|
fieldname: "segregate_serial_batch_bundle",
|
||||||
label: __("Segregate Serial / Batch Bundle"),
|
label: __("Enable Serial / Batch Bundle"),
|
||||||
fieldtype: "Check",
|
fieldtype: "Check",
|
||||||
default: 0,
|
default: 0,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -389,12 +389,21 @@ def get_columns(filters):
|
|||||||
"options": "voucher_type",
|
"options": "voucher_type",
|
||||||
"width": 100,
|
"width": 100,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"label": _("Serial and Batch Bundle"),
|
||||||
|
"fieldname": "serial_and_batch_bundle",
|
||||||
|
"fieldtype": "Link",
|
||||||
|
"options": "Serial and Batch Bundle",
|
||||||
|
"width": 150,
|
||||||
|
"hidden": not filters.get("segregate_serial_batch_bundle"),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"label": _("Batch"),
|
"label": _("Batch"),
|
||||||
"fieldname": "batch_no",
|
"fieldname": "batch_no",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"options": "Batch",
|
"options": "Batch",
|
||||||
"width": 100,
|
"width": 100,
|
||||||
|
"hidden": not filters.get("segregate_serial_batch_bundle"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": _("Serial No"),
|
"label": _("Serial No"),
|
||||||
@@ -402,13 +411,7 @@ def get_columns(filters):
|
|||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"options": "Serial No",
|
"options": "Serial No",
|
||||||
"width": 100,
|
"width": 100,
|
||||||
},
|
"hidden": not filters.get("segregate_serial_batch_bundle"),
|
||||||
{
|
|
||||||
"label": _("Serial and Batch Bundle"),
|
|
||||||
"fieldname": "serial_and_batch_bundle",
|
|
||||||
"fieldtype": "Link",
|
|
||||||
"options": "Serial and Batch Bundle",
|
|
||||||
"width": 100,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": _("Project"),
|
"label": _("Project"),
|
||||||
|
|||||||
Reference in New Issue
Block a user