frappe/frappe#478, frappe tests pass, .txt renamed to .json

This commit is contained in:
Rushabh Mehta
2014-03-31 17:27:06 +05:30
parent 0e13cd5ac9
commit 0a0f2495a2
410 changed files with 347 additions and 2764 deletions

View File

@@ -5,7 +5,6 @@ from __future__ import unicode_literals
import frappe
from frappe import _, throw
from frappe.utils import flt, cint, today, cstr
from frappe.model.code import get_obj
from erpnext.setup.utils import get_company_currency
from erpnext.accounts.utils import get_fiscal_year, validate_fiscal_year
from erpnext.utilities.transaction_base import TransactionBase
@@ -481,7 +480,7 @@ class AccountsController(TransactionBase):
total_outstanding = total_outstanding[0][0] if total_outstanding else 0
if total_outstanding:
get_obj('Account', account).check_credit_limit(total_outstanding)
frappe.get_doc('Account', account).check_credit_limit(total_outstanding)
@frappe.whitelist()