From 2e9c507dfa70eda65c98558aa6de8078f01681fa Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Mon, 30 Dec 2024 16:18:12 +0530 Subject: [PATCH] chore: resolve conflicts --- erpnext/accounts/utils.py | 42 ------------------------------ erpnext/templates/pages/order.html | 4 --- 2 files changed, 46 deletions(-) diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py index 96f67613d3f..51b4ed248ce 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py @@ -76,48 +76,6 @@ def get_fiscal_years( as_dict=False, boolean=False, ): -<<<<<<< HEAD -======= - if transaction_date: - transaction_date = getdate(transaction_date) - # backwards compat - if boolean is not None: - raise_on_missing = not boolean - - all_fiscal_years = _get_fiscal_years(company=company) - - # No restricting selectors - if not transaction_date and not fiscal_year: - return all_fiscal_years - - for fy in all_fiscal_years: - if (fiscal_year and fy.name == fiscal_year) or ( - transaction_date - and getdate(fy.year_start_date) <= transaction_date - and getdate(fy.year_end_date) >= transaction_date - ): - if as_dict: - return (fy,) - else: - return ((fy.name, fy.year_start_date, fy.year_end_date),) - - # No match for restricting selectors - if raise_on_missing: - error_msg = _("""{0} {1} is not in any active Fiscal Year""").format( - _(label), formatdate(transaction_date) - ) - if company: - error_msg = _("""{0} for {1}""").format(error_msg, frappe.bold(company)) - - if verbose == 1: - frappe.msgprint(error_msg) - - raise FiscalYearError(error_msg) - return [] - - -def _get_fiscal_years(company=None): ->>>>>>> a87e7fde03 (fix: in_contex_translation_fixes) fiscal_years = frappe.cache().hget("fiscal_years", company) or [] if not fiscal_years: diff --git a/erpnext/templates/pages/order.html b/erpnext/templates/pages/order.html index ec565060191..ade66dd481f 100644 --- a/erpnext/templates/pages/order.html +++ b/erpnext/templates/pages/order.html @@ -40,11 +40,7 @@

-<<<<<<< HEAD - {{ _("Pay") }} {{doc.get_formatted("grand_total") }} -======= {{ _("Pay", null, "Amount") }} {{ pay_amount }} ->>>>>>> a87e7fde03 (fix: in_contex_translation_fixes)