Skip to content

Conversation

@tuan-nguyen-fenwick
Copy link
Contributor

@tuan-nguyen-fenwick tuan-nguyen-fenwick commented Jan 14, 2026

Summary

Subscription & Billing Demo Data

  • Added more customer and vendor subscription contracts.
  • Updated last used number series for subscriptions documents.
  • Added boolean option to toggle "Create Analysis Entries" for analytics in Subscription & Billing Module Setup.
  • Implemented codeunit to create analysis entries for Power BI reporting. These analysis entries are posted in different points in time:
    • EOY 2 years ago
    • EOY 1 year ago
    • Today()

Work Item(s)

Fixes #6142
Fixes AB#614285

Tuan Nguyen added 19 commits December 12, 2025 16:40
New updates to Sub & Billing Demo Data app:
- Updated last used no series.
- Added subscriptions
- Added customer and vendor subscription contracts
- Created analysis entries for PowerBI reporting.

http://bcdev2.fenwicksoftware.com.au:10470/BC/?company=DemoSB3

Related work items: #29613
@tuan-nguyen-fenwick tuan-nguyen-fenwick requested review from a team as code owners January 14, 2026 06:24
@github-actions github-actions bot added AL: Apps (W1) Add-on apps for W1 From Fork Pull request is coming from a fork labels Jan 14, 2026
end;
end;

local procedure CreateContractAnalysisEntry(ServiceCommitment: Record "Subscription Line"; AnalysisDate: Date)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
local procedure CreateContractAnalysisEntry(ServiceCommitment: Record "Subscription Line"; AnalysisDate: Date)
local procedure CreateContractAnalysisEntry(SubscriptionLine: Record "Subscription Line"; AnalysisDate: Date)

I am not familiar with this record so maybe your name makes more sense, but generally we name the record variables exactly like their source table.

Copy link
Contributor Author

@tuan-nguyen-fenwick tuan-nguyen-fenwick Jan 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@attilatoury I'm not sure why they aren't same here. I followed the same naming convention that's used within this Sub & Billing Demo Data app. And yes, normally it would be the same name as the record in AL.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated this changed anyway


ServiceObject.Validate("End-User Customer No.", CustomerNo);
ServiceObject.Validate("Provision Start Date", ProvisionStartDate);
if ProvisionEndDate <> 0D then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we check that StartDate < EndDate? Unless it is already done in the table field's OnValidate trigger.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, there is no onvalidate code. I've added this check.

VendorContract.CreateVendorContractLineFromServiceCommitment(ServiceCommitment);
end;

procedure AddVendorContractLine(ContractNo: Code[20]; ObjectNo: Code[20])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Call this procedure at the end of the procedure above (InsertVendorContractLine) if it is intended to do the same thing

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated this change

@JesperSchulz JesperSchulz added the Finance GitHub request for Finance area label Jan 14, 2026
@github-actions github-actions bot added the Linked Issue is linked to a Azure Boards work item label Jan 21, 2026
@github-actions github-actions bot added this to the Version 28.0 milestone Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AL: Apps (W1) Add-on apps for W1 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.

[BC Idea]: Enhance Subscription & Billing demo data for Power BI reporting

3 participants