mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 07:02:54 +00:00
removed print statements
This commit is contained in:
@@ -7,7 +7,6 @@ def execute():
|
||||
|
||||
webnotes.conn.auto_commit_on_many_writes = True
|
||||
for company in webnotes.conn.sql("select name from `tabCompany`"):
|
||||
print company[0]
|
||||
stock_ledger_entries = webnotes.conn.sql("""select item_code, voucher_type, voucher_no,
|
||||
voucher_detail_no, posting_date, posting_time, stock_value,
|
||||
warehouse, actual_qty as qty from `tabStock Ledger Entry`
|
||||
@@ -17,7 +16,6 @@ def execute():
|
||||
|
||||
dn_list = webnotes.conn.sql("""select name from `tabDelivery Note`
|
||||
where docstatus < 2 and company = %s""", company[0])
|
||||
print "Total Delivery Note: ", len(dn_list)
|
||||
|
||||
for dn in dn_list:
|
||||
dn = webnotes.get_obj("Delivery Note", dn[0], with_children = 1)
|
||||
@@ -25,7 +23,6 @@ def execute():
|
||||
|
||||
si_list = webnotes.conn.sql("""select name from `tabSales Invoice`
|
||||
where docstatus < 2 and company = %s""", company[0])
|
||||
print "Total Sales Invoice: ", len(si_list)
|
||||
for si in si_list:
|
||||
si = webnotes.get_obj("Sales Invoice", si[0], with_children = 1)
|
||||
si.set_buying_amount(stock_ledger_entries)
|
||||
|
||||
@@ -56,8 +56,8 @@ def add_accounts(accounts_to_add, check_fn=None):
|
||||
where company=%s and ifnull(parent_account, '')=''""", company)[0][0]
|
||||
|
||||
if count > 4:
|
||||
print "Company", company, \
|
||||
"has more than 4 root accounts. cannot apply patch to this company."
|
||||
webnotes.errprint("Company" + company +
|
||||
"has more than 4 root accounts. cannot apply patch to this company.")
|
||||
continue
|
||||
|
||||
for account_name, parent_account_name, group_or_ledger, account_type in accounts_to_add:
|
||||
@@ -82,7 +82,7 @@ def add_aii_cost_center():
|
||||
{"parent_cost_center['']": '', "company_name": company})
|
||||
|
||||
if not parent_cost_center:
|
||||
print "Company", company, "does not have a root cost center"
|
||||
webnotes.errprint("Company " + company + "does not have a root cost center")
|
||||
continue
|
||||
|
||||
cc = webnotes.bean({
|
||||
|
||||
Reference in New Issue
Block a user