From 6a1742abc84bf48789df5eb29e798d4df55a26c9 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Tue, 4 Oct 2016 16:26:09 +0530 Subject: [PATCH] [minor] status for student applicant --- .../doctype/student_applicant/student_applicant_list.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/erpnext/schools/doctype/student_applicant/student_applicant_list.js b/erpnext/schools/doctype/student_applicant/student_applicant_list.js index 43402d848a..cafb2b3d7c 100644 --- a/erpnext/schools/doctype/student_applicant/student_applicant_list.js +++ b/erpnext/schools/doctype/student_applicant/student_applicant_list.js @@ -1,7 +1,11 @@ frappe.listview_settings['Student Applicant'] = { - add_fields: [ "application_status"], + add_fields: [ "application_status", 'paid'], + has_indicator_for_draft: 1, get_indicator: function(doc) { - if (doc.application_status=="Applied") { + if (doc.paid) { + return [__("Paid"), "green", "paid,=,1"]; + } + else if (doc.application_status=="Applied") { return [__("Applied"), "orange", "application_status,=,Applied"]; } else if (doc.application_status=="Approved") {