mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-23 05:04:52 +01:00
fix: patch failing
This commit is contained in:
@@ -13,6 +13,9 @@ def execute():
|
||||
return
|
||||
|
||||
company_creation = frappe.get_all("Company", fields=["creation"], order_by="creation asc", limit=1)
|
||||
if not company_creation:
|
||||
return
|
||||
|
||||
days_diff = date_diff(getdate(today()), getdate(company_creation[0].creation))
|
||||
|
||||
if days_diff > 15:
|
||||
|
||||
Reference in New Issue
Block a user