From 772095548e18db6cb1a66a196b40551214bab24f Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Tue, 11 Jul 2017 10:45:20 +0530 Subject: [PATCH] [fix] update paid status --- .../doctype/conference_participant/conference_participant.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/foundation/erpnext_foundation/doctype/conference_participant/conference_participant.py b/foundation/erpnext_foundation/doctype/conference_participant/conference_participant.py index 1d5ae1a2..b8cd5328 100644 --- a/foundation/erpnext_foundation/doctype/conference_participant/conference_participant.py +++ b/foundation/erpnext_foundation/doctype/conference_participant/conference_participant.py @@ -7,4 +7,6 @@ import frappe from frappe.model.document import Document class ConferenceParticipant(Document): - pass + def on_payment_authorized(self, status_changed_to=None): + self.paid = 1 + self.save(ignore_permissions=True)