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

Conversation

Anuja-pawar
Copy link
Contributor

@Anuja-pawar Anuja-pawar commented Dec 5, 2020

One of the customers reported this issue they faced while creating a new company with the Chart of Accounts template standard with numbers.

Screenshot 2020-12-06 at 3 41 20 PM

It was thrown because TDS Payable had no account number assigned in the standard template with numbers.
So, we added the TDS Payable account number in a template Standard Chart of Accounts with numbers.
Also, on digging into it further, we found out this error message which appears when you don't have any active fiscal year for that specific company (or a fiscal year with no company), so we updated that error message to make it more precise.

Before:
Screenshot 2020-12-06 at 4 57 36 PM

After:
Screenshot 2020-12-07 at 11 09 18 AM

@@ -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))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this in the for loop

@marination marination self-assigned this Dec 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants