chore: Remove unnecessary print statements
This commit is contained in:
parent
bdf8c528f1
commit
c702408f99
@ -1006,7 +1006,6 @@ class AccountsController(TransactionBase):
|
||||
else:
|
||||
grand_total -= self.get("total_advance")
|
||||
base_grand_total = flt(grand_total * self.get("conversion_rate"), self.precision("base_grand_total"))
|
||||
print(grand_total, base_grand_total)
|
||||
if total != flt(grand_total, self.precision("grand_total")) or \
|
||||
base_total != flt(base_grand_total, self.precision("base_grand_total")):
|
||||
frappe.throw(_("Total Payment Amount in Payment Schedule must be equal to Grand / Rounded Total"))
|
||||
|
@ -808,7 +808,6 @@ def get_incomes_expenses_for_period(account, from_date, to_date):
|
||||
val = balance_on_to_date - balance_before_from_date
|
||||
else:
|
||||
last_year_closing_balance = get_balance_on(account, date=fy_start_date - timedelta(days=1))
|
||||
print(fy_start_date - timedelta(days=1), last_year_closing_balance)
|
||||
val = balance_on_to_date + (last_year_closing_balance - balance_before_from_date)
|
||||
|
||||
return val
|
||||
@ -837,4 +836,4 @@ def get_future_date_for_calendaer_event(frequency):
|
||||
elif frequency == "Monthly":
|
||||
to_date = add_to_date(from_date, months=1)
|
||||
|
||||
return from_date, to_date
|
||||
return from_date, to_date
|
||||
|
@ -194,9 +194,6 @@ def set_stock_balance_as_per_serial_no(item_code=None, posting_date=None, postin
|
||||
serial_nos = frappe.db.sql("""select count(name) from `tabSerial No`
|
||||
where item_code=%s and warehouse=%s and docstatus < 2""", (d[0], d[1]))
|
||||
|
||||
if serial_nos and flt(serial_nos[0][0]) != flt(d[2]):
|
||||
print(d[0], d[1], d[2], serial_nos[0][0])
|
||||
|
||||
sle = frappe.db.sql("""select valuation_rate, company from `tabStock Ledger Entry`
|
||||
where item_code = %s and warehouse = %s and is_cancelled = 0
|
||||
order by posting_date desc limit 1""", (d[0], d[1]))
|
||||
@ -230,7 +227,7 @@ def set_stock_balance_as_per_serial_no(item_code=None, posting_date=None, postin
|
||||
})
|
||||
|
||||
update_bin(args)
|
||||
|
||||
|
||||
create_repost_item_valuation_entry({
|
||||
"item_code": d[0],
|
||||
"warehouse": d[1],
|
||||
|
@ -12,7 +12,6 @@ def update_doctypes():
|
||||
|
||||
for f in dt.fields:
|
||||
if f.fieldname == d.fieldname and f.fieldtype in ("Text", "Small Text"):
|
||||
print(f.parent, f.fieldname)
|
||||
f.fieldtype = "Text Editor"
|
||||
dt.save()
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user