chore: PR ref in SCR connections

This commit is contained in:
s-aga-r 2023-11-29 12:46:31 +05:30
parent 500573067a
commit 096a2c8cd0
2 changed files with 11 additions and 1 deletions

View File

@ -11,6 +11,10 @@ frappe.ui.form.on('Subcontracting Receipt', {
frm.get_field('supplied_items').grid.cannot_add_rows = true;
frm.get_field('supplied_items').grid.only_sortable();
frm.trigger('set_queries');
frm.custom_make_buttons = {
'Purchase Receipt': 'Purchase Receipt',
}
},
on_submit(frm) {

View File

@ -16,7 +16,13 @@ def get_data():
"transactions": [
{
"label": _("Reference"),
"items": ["Subcontracting Order", "Purchase Order", "Quality Inspection", "Project"],
"items": [
"Purchase Order",
"Purchase Receipt",
"Subcontracting Order",
"Quality Inspection",
"Project",
],
},
{"label": _("Returns"), "items": ["Subcontracting Receipt"]},
],