[Master]- Recurring billing is stuck due to an error related to updating the Subscription Line table#7404
Conversation
There was a problem hiding this comment.
Pull request overview
Fixes recurring billing getting stuck by preventing Subscription Line.CalculateNextToDate (with “Align to End of Month”) from returning a NextToDate earlier than FromDate, and adds a regression test for AB#623011.
Changes:
- Add guard logic in
Subscription Linedate calculation to clampNextToDatewhen it would fall beforeFromDate. - Add a new test verifying
CalculateNextToDatedoes not return a date beforeFromDatefor “Align to End of Month”. - Add a small helper to mock/insert a
Subscription Linerecord for the test.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
.../RecurringBillingDocsTest.Codeunit.al |
Adds regression test + helper for reproducing and validating AB#623011 scenario |
.../SubscriptionLine.Table.al |
Adjusts CalculateNextToDate logic to avoid returning a date before FromDate |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/Apps/W1/Subscription Billing/Test/Billing/RecurringBillingDocsTest.Codeunit.al
Show resolved
Hide resolved
src/Apps/W1/Subscription Billing/Test/Billing/RecurringBillingDocsTest.Codeunit.al
Outdated
Show resolved
Hide resolved
src/Apps/W1/Subscription Billing/Test/Billing/RecurringBillingDocsTest.Codeunit.al
Outdated
Show resolved
Hide resolved
src/Apps/W1/Subscription Billing/App/Service Commitments/Tables/SubscriptionLine.Table.al
Show resolved
Hide resolved
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Could not find linked issues in the pull request description. Please make sure the pull request description contains a line that contains 'Fixes #' followed by the issue number being fixed. Use that pattern for every issue you want to link. |
…DocsTest.Codeunit.al Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…DocsTest.Codeunit.al Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…DocsTest.Codeunit.al Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/Apps/W1/Subscription Billing/Test/Billing/RecurringBillingDocsTest.Codeunit.al
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/Apps/W1/Subscription Billing/Test/Billing/RecurringBillingDocsTest.Codeunit.al
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/Apps/W1/Subscription Billing/Test/Billing/RecurringBillingDocsTest.Codeunit.al
Outdated
Show resolved
Hide resolved
src/Apps/W1/Subscription Billing/Test/Billing/RecurringBillingDocsTest.Codeunit.al
Outdated
Show resolved
Hide resolved
src/Apps/W1/Subscription Billing/App/Service Commitments/Tables/SubscriptionLine.Table.al
Show resolved
Hide resolved
…DocsTest.Codeunit.al Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…DocsTest.Codeunit.al Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/Apps/W1/Subscription Billing/Test/Billing/RecurringBillingDocsTest.Codeunit.al
Show resolved
Hide resolved
src/Apps/W1/Subscription Billing/Test/Billing/RecurringBillingDocsTest.Codeunit.al
Show resolved
Hide resolved
src/Apps/W1/Subscription Billing/Test/Billing/RecurringBillingDocsTest.Codeunit.al
Show resolved
Hide resolved
src/Apps/W1/Subscription Billing/App/Service Commitments/Tables/SubscriptionLine.Table.al
Show resolved
Hide resolved
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/Apps/W1/Subscription Billing/App/Service Commitments/Tables/SubscriptionLine.Table.al
Show resolved
Hide resolved
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
AB#629263
Work Item Bug 629263: [master] [ALL-E] Recurring billing is stuck due to an error related to updating the Subscription Line table
Fixes AB#629263