mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-29 11:45:45 +00:00
Merge pull request #53273 from frappe/mergify/bp/version-16-hotfix/pr-53272
fix: patch failing (backport #53272)
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