Skip to content

Commit

Permalink
fix: frappe.db.exists check
Browse files Browse the repository at this point in the history
(cherry picked from commit 9fa3518)
  • Loading branch information
akashkrishna619 committed Jun 20, 2023
1 parent 835b635 commit 0db5401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion healthcare/healthcare/doctype/lab_test/lab_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 :")
Expand Down

0 comments on commit 0db5401

Please sign in to comment.