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

[16.0][FIX] equal Estadual Inscription detection #3450

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

Tiago370
Copy link

Quando a opção "Multiple partners with the same CNPJ" está marcada, está sendo possível criar dois parceiros com o mesmo CNPJ e também com a mesma inscrição estadual.

image
Porém quando o primeiro registro está com esse campo vazio, o segundo não pode ser criado e a mensagem diz que a IE já está sendo usada.
image

Esse PR apenas altera a condição para que a restrição ocorra quando os campo não são vazios. Pra mim parece prudente permitir que os dois registros estejam com esse campo vazio, pois permite usar essa funcionalidade para casos em que a IE não é relevante para o usuário.

@OCA-git-bot
Copy link
Contributor

Hi @renatonlima, @rvalyi,
some modules you are maintaining are being modified, check this out!

@Tiago370 Tiago370 marked this pull request as ready for review October 17, 2024 22:10
@antoniospneto antoniospneto changed the title [FIX] equal Estadual Inscription detection [16.0][FIX] equal Estadual Inscription detection Oct 17, 2024
@mileo
Copy link
Member

mileo commented Oct 18, 2024

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 16.0-ocabot-merge-pr-3450-by-mileo-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit e42c38f into OCA:16.0 Oct 18, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 1917c90. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants