From 0db5401abb1faecf54941ecd222a5036ed5c147d Mon Sep 17 00:00:00 2001 From: Akash Date: Mon, 24 Apr 2023 17:28:32 +0530 Subject: [PATCH] fix: frappe.db.exists check (cherry picked from commit 9fa351833671119b9adf34c8c8fb9f673a84f0a8) --- healthcare/healthcare/doctype/lab_test/lab_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/healthcare/healthcare/doctype/lab_test/lab_test.py b/healthcare/healthcare/doctype/lab_test/lab_test.py index 90ded101f4..17f8e4dc47 100644 --- a/healthcare/healthcare/doctype/lab_test/lab_test.py +++ b/healthcare/healthcare/doctype/lab_test/lab_test.py @@ -273,7 +273,7 @@ def create_sample_doc(template, patient, invoice, company=None): if sample_exists: # update sample collection by adding quantity - sample_collection = frappe.get_doc("Sample Collection", sample_exists[0][0]) + sample_collection = frappe.get_doc("Sample Collection", sample_exists) quantity = int(sample_collection.sample_qty) + int(template.sample_qty) if template.sample_details: sample_details = sample_collection.sample_details + "\n-\n" + _("Test :")