chore: Added Quick Stock Balance to Stock Module (#19726)
- Also 'Stock Balance Report' button no longer primary button
This commit is contained in:
parent
1511154aa8
commit
f51ccbf5d4
@ -241,6 +241,10 @@ def get_data():
|
|||||||
"type": "doctype",
|
"type": "doctype",
|
||||||
"name": "Quality Inspection Template",
|
"name": "Quality Inspection Template",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "doctype",
|
||||||
|
"name": "Quick Stock Balance",
|
||||||
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -16,7 +16,7 @@ frappe.ui.form.on('Quick Stock Balance', {
|
|||||||
frm.add_custom_button(__('Stock Balance Report'), () => {
|
frm.add_custom_button(__('Stock Balance Report'), () => {
|
||||||
frappe.set_route('query-report', 'Stock Balance',
|
frappe.set_route('query-report', 'Stock Balance',
|
||||||
{ 'item_code': frm.doc.item, 'warehouse': frm.doc.warehouse });
|
{ 'item_code': frm.doc.item, 'warehouse': frm.doc.warehouse });
|
||||||
}).addClass("btn-primary");
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user