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

[releases/24.x] GetNextNo should error when line is closed, not take a number from an earlier line #1425

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

gggdttt
Copy link
Contributor

@gggdttt gggdttt commented Jun 27, 2024

This pull request backports #1406 to releases/24.x

Fixes AB#539651

… earlier line (#1406)

<!-- Thank you for your contribution to BCApps! For newcomers, please
ensure you've read our [Pull Request
Guidelines](https://github.com/microsoft/BCApps/Contributing.md). -->

### Summary
This PR addresses a bug in the `GetNoSeriesLine` function where it
failed to properly handle closed lines. Previously, if a line for a
specific month was closed, the system would incorrectly issue a number
from a prior month instead of signaling an error. This fix ensures that
an error is thrown as expected in such scenarios, aligning with the
intended behavior when dealing with closed series lines.

### Work Item
- Fixes
[AB#538011](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/538011)
@gggdttt gggdttt requested review from a team as code owners June 27, 2024 11:34
@github-actions github-actions bot added this to the Version 24.3 milestone Jun 27, 2024
@haoranpb
Copy link
Contributor

@gggdttt be careful with this. Engineering complete for 24.3 is today

@gggdttt gggdttt enabled auto-merge (squash) June 27, 2024 12:39
@gggdttt gggdttt merged commit af9c646 into releases/24.x Jun 28, 2024
21 of 23 checks passed
@gggdttt gggdttt deleted the backport/releases/24.x/1406/20240627133447 branch June 28, 2024 06:19
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.

3 participants