Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 22, 2026

The Quantity field in EDocPurchSearchHistory.Page.al was missing the required AutoFormatType property, causing AL code analyzer warning AA0471.

Changes:

  • Added AutoFormatType = 0; to the Quantity field definition at line 62

This follows the established pattern used across similar pages in the EDocument module (EDocSelectPOLines, EDocSelectReceiptLines, EDocCreatePurchOrderLine).

field(Quantity; Rec.Quantity)
{
    ToolTip = 'Specifies the quantity of the purchase invoice line.';
    AutoFormatType = 0;
}

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: Groenbech96 <17690329+Groenbech96@users.noreply.github.com>
@github-actions github-actions bot added the AL: Apps (W1) Add-on apps for W1 label Jan 22, 2026
Copilot AI changed the title [WIP] Fix issue with E-Document select line from history Fix AA0471: Add AutoFormatType to Quantity field in E-Doc Purch. Search History page Jan 22, 2026
Copilot AI requested a review from Groenbech96 January 22, 2026 15:39
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants