Skip to content

Conversation

@AydinKelky
Copy link
Contributor

@AydinKelky AydinKelky commented Jul 11, 2025

Summary

Update CalculationBaseType.Enum.al to Extensible=True

Fixes #4092

Fixes AB#596253

@AydinKelky AydinKelky requested a review from a team as a code owner July 11, 2025 11:22
@github-actions github-actions bot added the From Fork Pull request is coming from a fork label Jul 11, 2025
@NKarolak
Copy link
Contributor

Making an Enum extensible typically (but not always) requires adding events to handle possible custom values. Have you already checked where and how this Enum is used?

@AydinKelky
Copy link
Contributor Author

@NKarolak The enum will be used in sales subscription line from Subscription package and after posting, subscription line and customer contract subscription line but I don't undestand your question. Why for an enum to be extensible should an event be defined?

@NKarolak
Copy link
Contributor

NKarolak commented Jul 14, 2025

The standard code uses this Enum somewhere, I suppose.
Unless the Enum is part of an interface, you will typically find standard code that handles specific enum values (either with if or case). In such places, you need to check whether there is an event that other (your!) apps extending the Enum can subscribe to handle your custom enum values.

@AydinKelky
Copy link
Contributor Author

@NKarolak Thanks for the clarification. There are some parts that use this enum as a parameter(case or if). Should I create events for the parts that might be causing a problem?

@NKarolak
Copy link
Contributor

NKarolak commented Jul 14, 2025

Should I create events for the parts that might be causing a problem?

Yes please.

If you are too unsure, maybe somebody else (Microsoft?) could close that gap later.
@JesperSchulz, does it need to be solved already in this PR? Could you assist here?

@AydinKelky
Copy link
Contributor Author

@NKarolak It would be great if someone from Microsoft could help me with this. Thank you for your help as well :)

@AydinKelky
Copy link
Contributor Author

@JesperSchulz Could you please help me with this issue. It's been a long time since I created this Pull and we really need to expand this enum because for migration from Singhammer to Microsoft, many of our programming depends on this enum extension. I would really appreciate it if you help us make this issue resolved. Thank you in advance

@JesperSchulz JesperSchulz added the Finance GitHub request for Finance area label Aug 5, 2025
@JesperSchulz
Copy link
Contributor

@JesperSchulz Could you please help me with this issue. It's been a long time since I created this Pull and we really need to expand this enum because for migration from Singhammer to Microsoft, many of our programming depends on this enum extension. I would really appreciate it if you help us make this issue resolved. Thank you in advance

Sorry, I've been on vacation the past month, but now I'm back and I'll try to get some traction on those PRs.

@djukicmilica
Copy link
Contributor

Checked - we have events for handling new enum values.

@djukicmilica djukicmilica enabled auto-merge (squash) August 5, 2025 11:31
@djukicmilica djukicmilica self-requested a review August 5, 2025 11:32
@djukicmilica djukicmilica self-assigned this Aug 5, 2025
@JesperSchulz
Copy link
Contributor

CI is failing. Could you try pulling from main to get your branch updated?

@AydinKelky
Copy link
Contributor Author

@JesperSchulz I updated my Branch.

@JesperSchulz
Copy link
Contributor

@JesperSchulz I updated my Branch.

Thanks 🙏 Let me try to run our pipeline once more!

@AydinKelky
Copy link
Contributor Author

@JesperSchulz I updated my branch but I checked it again now and it says it is out-of-date. What I did was I went to AydinKelky/BCApps and updated Sync fork. Please let me know if I did the update correctly. if not, please tell me what to do

@JesperSchulz
Copy link
Contributor

Let's see what happens. If build passes, we're fine!

@JesperSchulz JesperSchulz added the Linked Issue is linked to a Azure Boards work item label Aug 6, 2025
@github-actions github-actions bot added this to the Version 27.0 milestone Aug 6, 2025
@djukicmilica djukicmilica merged commit a2089e2 into microsoft:main Aug 6, 2025
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Finance GitHub request for Finance area From Fork Pull request is coming from a fork Linked Issue is linked to a Azure Boards work item

Projects

None yet

Development

Successfully merging this pull request may close these issues.

enum 8052 "Calculation Base Type" in "Microsoft Subscription Billing" is set as not extensible

4 participants