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

feat:Adding Country and State Feilds In Employee Doctype #41379

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

Thiruapthi
Copy link

@Thiruapthi Thiruapthi commented May 8, 2024

I am Working on a US-Payroll App. It Requires a Country and State for Every Employee.
I have added these fields in Employee Doctype in the Address and Contacts Tab and the Address Section. The country is the Link Field to Country Doctype and the state is the Data Field. If the country is equal to the United States, the state will be mandatory as Taxes are calculated based on the state for the "United States" Country
image
image

@ruchamahabal ruchamahabal self-assigned this May 8, 2024
Comment on lines 827 to 834
"options": "Country",
"reqd": 1
},
{
"fieldname": "state",
"fieldtype": "Data",
"label": "State",
"mandatory_depends_on": "eval:doc.country==\"United States\""
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"options": "Country",
"reqd": 1
},
{
"fieldname": "state",
"fieldtype": "Data",
"label": "State",
"mandatory_depends_on": "eval:doc.country==\"United States\""
"options": "Country"
},
{
"fieldname": "state",
"fieldtype": "Data",
"label": "State"

Remove these reqd checks

Copy link
Author

Choose a reason for hiding this comment

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

#41392
mam, New PR by removing the reqd checks

Copy link
Member

Choose a reason for hiding this comment

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

Push it to this branch itself?

Copy link
Author

Choose a reason for hiding this comment

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

Mam, Pushed to the Same Branch.

Copy link

stale bot commented May 25, 2024

This pull request has been automatically marked as inactive because it has not had recent activity. It will be closed within 3 days if no further activity occurs, but it only takes a comment to keep a contribution alive :) Also, even if it is closed, you can always reopen the PR when you're ready. Thank you for contributing.

@stale stale bot added the inactive label May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants