-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Update
e-Waybill Log
list view
(cherry picked from commit 69b556c)
- Loading branch information
1 parent
38fa3f1
commit 8f6ba93
Showing
3 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
india_compliance/gst_india/doctype/e_waybill_log/e_waybill_log.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
// Copyright (c) 2022, Resilient Tech and contributors | ||
// For license information, please see license.txt | ||
|
||
frappe.ui.form.on('e-Waybill Log', { | ||
// frappe.ui.form.on('e-Waybill Log', { | ||
// refresh: function(frm) { | ||
|
||
// } | ||
}); | ||
// }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
india_compliance/gst_india/doctype/e_waybill_log/e_waybill_log_list.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (c) 2024, Resilient Tech and contributors | ||
// For license information, please see license.txt | ||
|
||
frappe.listview_settings["e-Waybill Log"] = { | ||
hide_name_column: true, | ||
|
||
button: { | ||
show: function (doc) { | ||
return doc.reference_name; | ||
}, | ||
|
||
get_label: function () { | ||
return __("Open Reference"); | ||
}, | ||
|
||
get_description: function (doc) { | ||
return __("Open {0}", [ | ||
`${__(doc.reference_doctype)}: ${doc.reference_name}`, | ||
]); | ||
}, | ||
|
||
action: function (doc) { | ||
frappe.set_route("Form", doc.reference_doctype, doc.reference_name); | ||
}, | ||
}, | ||
}; |