[minor] direct student admission to the list page

This commit is contained in:
Rushabh Mehta 2016-10-09 15:04:04 +05:30
parent fc2a9e64fc
commit ac5b193100
2 changed files with 2 additions and 10 deletions

View File

@ -236,10 +236,4 @@ def save_invoice(e, si_doc, name):
si_doc.docstatus = 0
si_doc.flags.ignore_mandatory = True
si_doc.insert()
make_scheduler_log(e, si_doc.name)
def make_scheduler_log(e, sales_invoice):
scheduler_log = frappe.new_doc('Scheduler Log')
scheduler_log.method = "erpnext.accounts.doctype.sales_invoice.pos.make_invoice"
scheduler_log.error = e
scheduler_log.save(ignore_permissions=True)
frappe.log_error(frappe.get_traceback())

View File

@ -19,9 +19,7 @@
{%- if application_form_route -%}
<p>
<a class='btn btn-primary'
href='/{{ doc.application_form_route }}?new=1&student_admission={{ doc.name }}
{%- if doc.program -%}&program={{ doc.program }}{%- endif -%}
{%- if doc.academic_year -%}&academic_year={{ doc.academic_year }}{%- endif -%}'>
href='/{{ doc.application_form_route }}'>
{{ _("Apply Now") }}</a>
</p>
{% endif %}