Student Account Ledger Button (#13591)
* Student Account Ledger Button * Student Account Ledger Button * Student Account Ledger Button * Student Account Ledger Button
This commit is contained in:
parent
5becde7a45
commit
1c3830c53f
@ -15,5 +15,15 @@ frappe.ui.form.on('Student', {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
refresh: function(frm) {
|
||||||
|
if(!frm.is_new()) {
|
||||||
|
|
||||||
|
// custom buttons
|
||||||
|
frm.add_custom_button(__('Accounting Ledger'), function() {
|
||||||
|
frappe.set_route('query-report', 'General Ledger',
|
||||||
|
{party_type:'Student', party:frm.doc.name});
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user