Skip to content

Conversation

@Groenbech96
Copy link
Contributor

@Groenbech96 Groenbech96 commented Jan 23, 2026

Summary

Work Item(s)

Fixes AB#563709

@Groenbech96 Groenbech96 requested review from a team as code owners January 23, 2026 16:31
@github-actions github-actions bot added the AL: Apps (W1) Add-on apps for W1 label Jan 23, 2026
@github-actions github-actions bot added this to the Version 28.0 milestone Jan 23, 2026
mynjj
mynjj previously approved these changes Jan 26, 2026
aholstrup1
aholstrup1 previously approved these changes Jan 26, 2026
Copilot AI and others added 3 commits January 27, 2026 13:41
#6311)

The PEPPOL BIS Billing test's `Initialize()` method called
`CompanyInfo.Get()` without ensuring the record exists, causing test
failures in clean database scenarios.

## Changes

Added existence check before accessing Company Information record:

```al
// Before
CompanyInfo.Get();

// After
if not CompanyInfo.Get() then begin
    CompanyInfo.Init();
    CompanyInfo.Insert();
end;
```

This follows standard AL pattern for setup records and ensures tests run
regardless of initial database state.

<!-- START COPILOT CODING AGENT SUFFIX -->



<!-- START COPILOT ORIGINAL PROMPT -->



<details>

<summary>Original prompt</summary>

> Pull Request: #6267
> 
> There is an issue currently in they no company information record
exist.
> 
> In the initialise method in the test, ensure it exists, and set some
default values.


</details>



<!-- START COPILOT CODING AGENT TIPS -->
---

💬 We'd love your input! Share your thoughts on Copilot coding agent in
our [2 minute survey](https://gh.io/copilot-coding-agent-survey).

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Groenbech96 <17690329+Groenbech96@users.noreply.github.com>
Removed multiple test folder entries and added a specific test folder for PEPPOL.
@github-actions github-actions bot added the Build: scripts & configs Build scripts and configuration files label Jan 27, 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 Build: scripts & configs Build scripts and configuration files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants