fix: patch failing

(cherry picked from commit 6024c4a077)
(cherry picked from commit 1a62d324fd)
This commit is contained in:
Rohit Waghchaure
2026-03-10 11:44:02 +05:30
committed by Mergify
parent c39ee76946
commit 7149630eff

View File

@@ -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: