fix: Remove print statements
diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py
index bfbbf4d..9267eb5 100644
--- a/erpnext/controllers/accounts_controller.py
+++ b/erpnext/controllers/accounts_controller.py
@@ -820,14 +820,10 @@
self.unlink_ref_doc_from_po()
def unlink_ref_doc_from_po(self):
- print("\n"*5, "*"*50, "\n"*5)
-
so_items = []
for item in self.items:
so_items.append(item.name)
- print("SO Items: ", so_items)
-
linked_po = frappe.get_all(
'Purchase Order Item',
filters = {
@@ -838,8 +834,6 @@
pluck='parent'
)
- print("Before unlinking: ", linked_po)
-
if linked_po:
frappe.db.set_value(
'Purchase Order Item', {
@@ -854,19 +848,6 @@
frappe.msgprint(_("Purchase Orders {0} are un-linked").format("\n".join(linked_po)))
- linked_po = frappe.get_all(
- 'Purchase Order Item',
- filters = {
- 'sales_order': self.name,
- 'sales_order_item': ['in', so_items],
- 'docstatus': ['<', 2]
- },
- pluck='parent'
- )
- print("After unlinking: ", linked_po)
-
- print("\n"*5, "*"*50, "\n"*5)
-
def get_tax_map(self):
tax_map = {}
for tax in self.get('taxes'):