fix: get fiscal year based on date

This commit is contained in:
Deepesh Garg 2022-01-02 19:10:49 +05:30 committed by GitHub
parent 4b6217a683
commit c3d890f3f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1236,11 +1236,7 @@ def check_gl_entries(doc, voucher_no, expected_gle, posting_date):
def update_tax_witholding_category(company, account):
from erpnext.accounts.utils import get_fiscal_year
<<<<<<< HEAD
fiscal_year = get_fiscal_year(fiscal_year='2021')
=======
fiscal_year = get_fiscal_year(date=nowdate())
>>>>>>> 342658ea70 (fix: Test Case)
if not frappe.db.get_value('Tax Withholding Rate',
{'parent': 'TDS - 194 - Dividends - Individual', 'from_date': ('>=', fiscal_year[1]),