예제 #1
0
	def onload(self):
		"""Load address and contacts in `__onload`"""
		load_address_and_contact(self, "customer")
		import time
		todays_date = datetime.datetime.strptime(cstr(nowdate()),'%Y-%m-%d')
		# Show popup if financial data is not updated after the 6 month of every fiscal year.
		if todays_date.month > 6:
			self.get_financial_data()
예제 #2
0
    def onload(self):
        load_address_and_contact(self, "customer")
        billed_qty = frappe.db.sql(
            """select sum(ifnull(qty, 0)) from `tabSales Invoice Item`
			where docstatus=1 and delivery_note=%s""", self.name)
        if billed_qty:
            total_qty = sum(
                (item.qty for item in self.get("delivery_note_details")))
            self.get("__onload").billing_complete = (
                billed_qty[0][0] == total_qty)
예제 #3
0
	def onload(self):
		customer = frappe.db.get_value("Customer", {"lead_name": self.name})
		self.get("__onload").is_customer = customer
		load_address_and_contact(self, "lead")
예제 #4
0
 def onload(self):
     """Load address and contacts in `__onload`"""
     load_address_and_contact(self, "customer")
예제 #5
0
 def onload(self):
     """Load address and contacts in `__onload`"""
     load_address_and_contact(self, "supplier")
     self.load_dashboard_info()
예제 #6
0
 def onload(self):
     """Load address and contacts in `__onload`"""
     load_address_and_contact(self, "organisation")
예제 #7
0
	def onload(self):
		"""Load address and contacts in `__onload`"""
		load_address_and_contact(self, "customer")
		self.load_dashboard_info()
예제 #8
0
 def onload(self):
     """Load address and contacts in `__onload`"""
     load_address_and_contact(self, "supplier")
예제 #9
0
파일: lead.py 프로젝트: zachlankton/erpnext
 def onload(self):
     customer = frappe.db.get_value("Customer", {"lead_name": self.name})
     self.get("__onload").is_customer = customer
     load_address_and_contact(self, "lead")
	def onload(self):
		"""Load address and contacts in `__onload`"""
		load_address_and_contact(self, "sales_partner")
예제 #11
0
	def onload(self):
		"""Load address and contacts in `__onload`"""
		load_address_and_contact(self, "organisation")
예제 #12
0
	def onload(self):
		"""Load address and contacts in `__onload`"""
		load_address_and_contact(self, "supplier")
		self.set_onload('links', self.meta.get_links_setup())
예제 #13
0
 def onload(self):
     """Load address and contacts in `__onload`"""
     load_address_and_contact(self, "sales_partner")
예제 #14
0
	def onload(self):
		"""Load address and contacts in `__onload`"""
		load_address_and_contact(self, "customer")
		self.set_onload('links', self.meta.get_links_setup())