Skip to content

Commit

Permalink
fix: Patient Appointment - fee validity message formating
Browse files Browse the repository at this point in the history
  • Loading branch information
Sajinsr authored and akashkrishna619 committed Apr 21, 2023
1 parent 8fd9876 commit b60dc5b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from frappe.core.doctype.sms_settings.sms_settings import send_sms
from frappe.model.document import Document
from frappe.model.mapper import get_mapped_doc
from frappe.utils import flt, get_link_to_form, get_time, getdate
from frappe.utils import flt, format_date, get_link_to_form, get_time, getdate

from healthcare.healthcare.doctype.healthcare_settings.healthcare_settings import (
get_income_account,
Expand Down Expand Up @@ -194,8 +194,8 @@ def update_fee_validity(self):
fee_validity = manage_fee_validity(self)
if fee_validity:
frappe.msgprint(
_("{0}: {1} has fee validity till {2}").format(
self.patient, frappe.bold(self.patient_name), fee_validity.valid_till
_("{0} has fee validity till {1}").format(
frappe.bold(self.patient_name), format_date(fee_validity.valid_till)
)
)

Expand Down

0 comments on commit b60dc5b

Please sign in to comment.