Skip to content

Commit

Permalink
fix: change function name as per version
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanket322 committed Dec 13, 2024
1 parent 2bd2120 commit 7756402
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions india_compliance/gst_india/overrides/sales_invoice.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import frappe
from frappe import _, bold
from frappe.desk.form.load import run_onload
from frappe.utils import add_days, days_diff, flt, fmt_money
from frappe.utils import add_days, date_diff, flt, fmt_money

from india_compliance.gst_india.overrides.payment_entry import get_taxes_summary
from india_compliance.gst_india.overrides.transaction import (
Expand Down Expand Up @@ -231,7 +231,7 @@ def auto_cancel(cancel_func, action_type):
generated_on = doc.get_onload().get("e_waybill_info", {}).get("created_on")
reason = gst_settings.reason_for_e_waybill_cancellation

if not generated_on or days_diff(add_days(generated_on, 1), generated_on) > 1:
if not generated_on or date_diff(add_days(generated_on, 1), generated_on) > 1:
return

values = frappe._dict(
Expand Down

0 comments on commit 7756402

Please sign in to comment.