Initial commit: fixtures, hooks, doctype events, API, and JS

This commit is contained in:
Westech Admin
2026-05-16 23:35:51 +00:00
commit 3a3c01194e
35 changed files with 16910 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
frappe.ui.form.on('Pallet', {
refresh: function(frm) {
frm.add_custom_button(__('View Serials'), function() {
frappe.set_route('List', 'Serial No', {
'pallet': frm.doc.pallet_number || frm.doc.name
});
}, __('View'));
frm.add_custom_button(__('Serials Spreadsheet'), function() {
frappe.set_route('query-report', 'Serial Nos by Pallet', {
'pallet': frm.doc.pallet_number || frm.doc.name
});
}, __('View'));
}
});