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

@@ -262,8 +262,7 @@ class StatusUpdater(DocListController):
/ ref_doc_qty)*100
frappe.db.set_value(ref_dt, ref_dn, "per_billed", per_billed)
from frappe.model.meta import has_field
if has_field(ref_dt, "billing_status"):
if frappe.get_meta(ref_dt).get_field("billing_status"):
if per_billed < 0.001: billing_status = "Not Billed"
elif per_billed >= 99.99: billing_status = "Fully Billed"
else: billing_status = "Partly Billed"