[CH][Table][11510][Swiss QR-Bill Buffer] InitSourceRecord public instead of internal
Nobody has claimed this yet.
- Dominant language
- AL
- Stars
- 683
- Forks
- 459
- Avg merge
- 3d 26m
- Merged PRs (30d)
- 633
Description
Why do you need this change?
Microsoft ships a built-in report for the Swiss QR-Code, but in practice many customers don't use it as-is. They either build their own dedicated QR-bill report or embed the QR-Code directly into their own custom invoice/reminder layouts instead of calling the standard report. To render a correct QR-Code in these custom reports, the ultimate debtor data must be populated the same way the base app does it, via SetSourceRecord, which depends on SourceDocRecRef being set. That assignment only happens inside InitSourceRecord, and since it's local, custom reports outside the base app/extension have no supported way to initialize the source record correctly. Without this, anyone building their own QR-bill layout is forced to reverse-engineer or duplicate Microsoft's source-resolution logic instead of reusing it. Making InitSourceRecord callable from outside the app lets custom report developers reuse the standard, correct logic for any document type, keeping QR-Code generation consistent with the base app even in fully custom layouts.
Describe the request
Change the access modifier of procedure InitSourceRecord in table 11510 "Swiss QR-Bill Buffer" from internal to public, so extensions implementing their own QR-bill or invoice reports can call it to correctly set SourceDocRecRef before calling SetSourceRecord. This is a single-object accessibility change with no signature modification
Provide an implementation (optional)
- I will provide the implementation for this extensibility request
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in table 11510 "Swiss QR-Bill Buffer" and locate the InitSourceRecord procedure. Confirm how it is used before SetSourceRecord, then make only its access modifier public without changing its signature; done means external custom reports can call it to initialize SourceDocRecRef.
Written by the indexing model from the issue text.
Assessment
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 85/100