chore: Remove unnecessary print statements
This commit is contained in:
		
							parent
							
								
									232cd28d67
								
							
						
					
					
						commit
						c26d41acf9
					
				| @ -1011,7 +1011,6 @@ class AccountsController(TransactionBase): | |||||||
| 				else: | 				else: | ||||||
| 					grand_total -= self.get("total_advance") | 					grand_total -= self.get("total_advance") | ||||||
| 					base_grand_total = flt(grand_total * self.get("conversion_rate"), self.precision("base_grand_total")) | 					base_grand_total = flt(grand_total * self.get("conversion_rate"), self.precision("base_grand_total")) | ||||||
| 
 |  | ||||||
| 			if total != flt(grand_total, self.precision("grand_total")) or \ | 			if total != flt(grand_total, self.precision("grand_total")) or \ | ||||||
| 				base_total != flt(base_grand_total, self.precision("base_grand_total")): | 				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")) | 				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 | 			val = balance_on_to_date - balance_before_from_date | ||||||
| 		else: | 		else: | ||||||
| 			last_year_closing_balance = get_balance_on(account, date=fy_start_date - timedelta(days=1)) | 			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) | 			val = balance_on_to_date + (last_year_closing_balance - balance_before_from_date) | ||||||
| 
 | 
 | ||||||
| 		return val | 		return val | ||||||
|  | |||||||
| @ -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` | 		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])) | 			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` | 		sle = frappe.db.sql("""select valuation_rate, company from `tabStock Ledger Entry` | ||||||
| 			where item_code = %s and warehouse = %s and is_cancelled = 0 | 			where item_code = %s and warehouse = %s and is_cancelled = 0 | ||||||
| 			order by posting_date desc limit 1""", (d[0], d[1])) | 			order by posting_date desc limit 1""", (d[0], d[1])) | ||||||
|  | |||||||
| @ -12,7 +12,6 @@ def update_doctypes(): | |||||||
| 
 | 
 | ||||||
| 		for f in dt.fields: | 		for f in dt.fields: | ||||||
| 			if f.fieldname == d.fieldname and f.fieldtype in ("Text", "Small Text"): | 			if f.fieldname == d.fieldname and f.fieldtype in ("Text", "Small Text"): | ||||||
| 				print(f.parent, f.fieldname) |  | ||||||
| 				f.fieldtype = "Text Editor" | 				f.fieldtype = "Text Editor" | ||||||
| 				dt.save() | 				dt.save() | ||||||
| 				break | 				break | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user