This commit is contained in:
Rushabh Mehta
2014-03-28 16:44:37 +05:30
parent 43405203b2
commit b385ecf65e
83 changed files with 349 additions and 349 deletions

View File

@@ -35,7 +35,7 @@ class SellingController(StockController):
if self.customer:
from erpnext.accounts.party import _get_party_details
self.update_if_missing(_get_party_details(self.customer,
ignore_permissions=self.bean.ignore_permissions))
ignore_permissions=self.ignore_permissions))
elif self.lead:
from erpnext.selling.doctype.lead.lead import get_lead_details
@@ -47,7 +47,7 @@ class SellingController(StockController):
def apply_shipping_rule(self):
if self.shipping_rule:
shipping_rule = frappe.bean("Shipping Rule", self.shipping_rule)
shipping_rule = frappe.get_doc("Shipping Rule", self.shipping_rule)
value = self.net_total
# TODO
@@ -274,7 +274,7 @@ class SellingController(StockController):
total_outstanding = total_outstanding[0][0] if total_outstanding else 0
outstanding_including_current = flt(total_outstanding) + flt(grand_total)
frappe.bean('Account', customer_account).run_method("check_credit_limit",
frappe.get_doc('Account', customer_account).run_method("check_credit_limit",
outstanding_including_current)
def validate_max_discount(self):