Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Added TDS Payable account number and an error message #24065

Merged
merged 7 commits into from
Dec 7, 2020
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ def get():
"account_number": "2200"
},
_("Duties and Taxes"): {
_("TDS Payable"): {
"account_number": "2310"
},
"account_type": "Tax",
"is_group": 1,
"account_number": "2300"
Expand Down
5 changes: 4 additions & 1 deletion erpnext/accounts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ def get_fiscal_years(transaction_date=None, fiscal_year=None, label="Date", verb
else:
return ((fy.name, fy.year_start_date, fy.year_end_date),)

error_msg = _("""{0} {1} not in any active Fiscal Year.""").format(label, formatdate(transaction_date))
error_msg = _("""{0} {1} not in any active Fiscal Year""").format(label, formatdate(transaction_date))
marination marked this conversation as resolved.
Show resolved Hide resolved
if company:
error_msg = _("""{0} for {1}""").format(error_msg, company)
marination marked this conversation as resolved.
Show resolved Hide resolved

if verbose==1: frappe.msgprint(error_msg)
raise FiscalYearError(error_msg)

Expand Down