-
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-Invoice Log
list view
(cherry picked from commit ba43134)
- Loading branch information
1 parent
8f6ba93
commit f54a92f
Showing
2 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
india_compliance/gst_india/doctype/e_invoice_log/e_invoice_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-Invoice Log', { | ||
// refresh: function(frm) { | ||
// frappe.ui.form.on('e-Invoice Log', { | ||
// refresh: function(frm) { | ||
|
||
// } | ||
}); | ||
// } | ||
// }); |
26 changes: 26 additions & 0 deletions
26
india_compliance/gst_india/doctype/e_invoice_log/e_invoice_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-Invoice 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); | ||
}, | ||
}, | ||
}; |