fix: show the standard validation message

Co-authored-by: Marica <maricadsouza221197@gmail.com>
This commit is contained in:
Rucha Mahabal 2020-07-28 20:15:29 +05:30 committed by GitHub
parent 7cbc7946af
commit a695971596
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ class InpatientRecord(Document):
for entry in self.inpatient_occupancies:
if entry.check_in and entry.check_out and \
get_datetime(entry.check_in) > get_datetime(entry.check_out):
frappe.throw(_('Check Out datetime cannot be less than Check In datetime for entry #{0}').format(entry.idx))
frappe.throw(_('Row #{0}: Check Out datetime cannot be less than Check In datetime').format(entry.idx))
def validate_already_scheduled_or_admitted(self):
query = """