Skip to content

Conversation

@tuan-nguyen-fenwick
Copy link
Contributor

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
@github-actions
Copy link

Issue #6142 is not valid. Please make sure you link an issue that exists, is open and is approved.

end;
end;

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

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.


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

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.

VendorContract.CreateVendorContractLineFromServiceCommitment(ServiceCommitment);
end;

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

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

@JesperSchulz JesperSchulz added the Finance GitHub request for Finance area label Jan 14, 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

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