[py3] print, StringIO import, and other fixes

This commit is contained in:
Sagar Vora
2018-09-07 17:59:59 +05:30
parent 8be8345b65
commit 538100148f
4 changed files with 12 additions and 8 deletions

View File

@@ -307,8 +307,8 @@ def manage_fee_validity(appointment_name, method, ref_invoice=None):
fee_validity = create_fee_validity(appointment_doc.practitioner, appointment_doc.patient, appointment_doc.appointment_date, ref_invoice)
visited = fee_validity.visited
print "do_not_update: ", do_not_update
print "visited: ", visited
print("do_not_update: ", do_not_update)
print("visited: ", visited)
# Mark All Patient Appointment invoiced = True in the validity range do not cross the max visit
if (method == "on_cancel"):
@@ -410,7 +410,7 @@ def get_children(doctype, parent, company, is_root=False):
lft > %s and rgt < %s""",
(each['lft'], each['rgt']))
for child in child_list:
print child[0], child[1]
print(child[0], child[1])
if not occupied:
occupied = 0
if child[1] == "Occupied":