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: check for latest transaction of the same company only #38

Merged
merged 2 commits into from
Jul 24, 2024

Conversation

Mutantpenguin
Copy link
Contributor

closes #37

please also backport to version-14

@barredterra
Copy link
Member

barredterra commented Jul 24, 2024

General thought: shouldn't this be per naming series instead of per company? In theory, two companies could use the same naming series and then this code would permit gaps.

But I guess it's okay to assume that his won't happen.

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
@Mutantpenguin
Copy link
Contributor Author

General thought: shouldn't this be per naming series instead of per company? In theory, two companies could use the same naming series and then this code would permit gaps.

But I guess it's okay to assume that his won't happen.

I thought about this for a while too, but I can't think of a scenario where this would make sense.

I guess it could be easily added if someone really needs this.

@barredterra barredterra changed the title fix: 🐛 when checking for latest transaction, don't search through all companies fix: check for latest transaction of the same company only Jul 24, 2024
@barredterra barredterra merged commit e62962d into alyf-de:version-15 Jul 24, 2024
1 check passed
@barredterra
Copy link
Member

@Mergifyio backport version-14

Copy link
Contributor

mergify bot commented Jul 24, 2024

backport version-14

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Jul 24, 2024
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
(cherry picked from commit e62962d)
barredterra pushed a commit that referenced this pull request Jul 24, 2024
## [15.3.3](v15.3.2...v15.3.3) (2024-07-24)

### Bug Fixes

* check for latest transaction of the same company only ([#38](#38)) ([e62962d](e62962d))
barredterra added a commit that referenced this pull request Jul 24, 2024
) (#40)

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
Co-authored-by: Markus Lobedann <markus.lobedann@gmail.com>
barredterra pushed a commit that referenced this pull request Jul 24, 2024
## [14.6.4](v14.6.3...v14.6.4) (2024-07-24)

### Bug Fixes

* check for latest transaction of the same company only (backport [#38](#38)) ([#40](#40)) ([442c28a](442c28a))
@Mutantpenguin
Copy link
Contributor Author

Thank you very much, that was fast :-)

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.

Check for only deleting the latest Quotation/SalesOrder/SalesInvoice ignores the current company
2 participants