[minor] student applications to be submitted after payment
This commit is contained in:
parent
efa68fb6b8
commit
bb89f6e151
@ -5,12 +5,12 @@ frappe.ui.form.on("Student Applicant", {
|
||||
frm.set_value("application_status", "Approved");
|
||||
frm.save_or_update();
|
||||
|
||||
}).addClass("btn-primary");
|
||||
}, 'Actions');
|
||||
|
||||
frm.add_custom_button(__("Reject"), function() {
|
||||
frm.set_value("application_status", "Rejected");
|
||||
frm.save_or_update();
|
||||
}).addClass("btn-danger");
|
||||
}, 'Actions');
|
||||
}
|
||||
|
||||
if(frm.doc.application_status== "Approved" && frm.doc.docstatus== 1 ) {
|
||||
|
@ -30,3 +30,4 @@ class StudentApplicant(Document):
|
||||
|
||||
def on_payment_authorized(self, *args, **kwargs):
|
||||
self.db_set('paid', 1)
|
||||
self.submit()
|
Loading…
x
Reference in New Issue
Block a user