feat: Auto allocate advance payments only against orders (#34727)
feat: Auto allocate advance payments only againt orders
This commit is contained in:
@@ -55,6 +55,14 @@ frappe.ui.form.on(cur_frm.doctype, {
|
||||
},
|
||||
|
||||
allocate_advances_automatically: function(frm) {
|
||||
frm.trigger('fetch_advances');
|
||||
},
|
||||
|
||||
only_include_allocated_payments: function(frm) {
|
||||
frm.trigger('fetch_advances');
|
||||
},
|
||||
|
||||
fetch_advances: function(frm) {
|
||||
if(frm.doc.allocate_advances_automatically) {
|
||||
frappe.call({
|
||||
doc: frm.doc,
|
||||
|
||||
Reference in New Issue
Block a user