mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-19 14:55:13 +00:00
committed by
Mergify
parent
db841dde4c
commit
1a62d324fd
@@ -13,6 +13,9 @@ def execute():
|
|||||||
return
|
return
|
||||||
|
|
||||||
company_creation = frappe.get_all("Company", fields=["creation"], order_by="creation asc", limit=1)
|
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))
|
days_diff = date_diff(getdate(today()), getdate(company_creation[0].creation))
|
||||||
|
|
||||||
if days_diff > 15:
|
if days_diff > 15:
|
||||||
|
|||||||
Reference in New Issue
Block a user