-
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.
Merge pull request #2820 from resilient-tech/mergify/bp/version-15-ho…
…tfix/pr-2812 refactor: Update list view for logs (backport #2812)
- Loading branch information
Showing
5 changed files
with
60 additions
and
7 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); | ||
}, | ||
}, | ||
}; |
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); | ||
}, | ||
}, | ||
}; |