Skip to content

Commit

Permalink
[Bug]: Is not posible to create a G/L Account Mapping using Client (#…
Browse files Browse the repository at this point in the history
…25990)

<!-- Thank you for submitting a Pull Request. If you're new to
contributing to AlAppExtensions please read our pull request guideline
below
* https://github.com/microsoft/ALAppExtensions/blob/main/CONTRIBUTING.md
-->
#### Summary <!-- Provide a general summary of your changes -->
Fixes table relation property, because the first pk field is Type(Enum)
Added not blank property to primary key fields
Change control order on page like as primary key order
#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes #25251


Fixes
[AB#502390](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/502390)
  • Loading branch information
vlkov authored Feb 27, 2024
1 parent e4aa3da commit 8d8b3ba
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ table 5263 "Standard Account"
{
DataClassification = CustomerContent;
Caption = 'Category No.';
TableRelation = "Standard Account Category" where("Standard Account Type" = field(Type));
TableRelation = "Standard Account Category"."No." where("Standard Account Type" = field(Type));
}
field(3; "No."; Code[20])
{
DataClassification = CustomerContent;
NotBlank = true;
Caption = 'No.';
}
field(4; Description; Text[250])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ table 5262 "Standard Account Category"
{
DataClassification = CustomerContent;
Caption = 'No.';
NotBlank = true;
}
field(3; Description; Text[250])
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,20 @@ page 5263 "Standard Accounts"
UsageCategory = Administration;
SourceTable = "Standard Account";
Caption = 'Standard Accounts';
DelayedInsert = true;

layout
{
area(Content)
{
repeater(Groupings)
{
field("Category No."; Rec."Category No.")
{
ApplicationArea = Basic, Suite;
ToolTip = 'Specifies the category of standard general ledger accounts that is used for mapping.';
Visible = false;
}
field("No."; Rec."No.")
{
ApplicationArea = Basic, Suite;
Expand All @@ -28,12 +35,6 @@ page 5263 "Standard Accounts"
ApplicationArea = Basic, Suite;
ToolTip = 'Specifies the description of the standard account that is used for mapping.';
}
field("Category No."; Rec."Category No.")
{
ApplicationArea = Basic, Suite;
ToolTip = 'Specifies the category of standard general ledger accounts that is used for mapping.';
Visible = false;
}
}
}
area(Factboxes)
Expand Down

0 comments on commit 8d8b3ba

Please sign in to comment.