Skip to content

Commit 8d8b3ba

Browse files
authored
[Bug]: Is not posible to create a G/L Account Mapping using Client (#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)
1 parent e4aa3da commit 8d8b3ba

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

Apps/W1/AuditFileExport/app/src/GLAccountMapping/StandardAccount.Table.al

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ table 5263 "Standard Account"
2020
{
2121
DataClassification = CustomerContent;
2222
Caption = 'Category No.';
23-
TableRelation = "Standard Account Category" where("Standard Account Type" = field(Type));
23+
TableRelation = "Standard Account Category"."No." where("Standard Account Type" = field(Type));
2424
}
2525
field(3; "No."; Code[20])
2626
{
2727
DataClassification = CustomerContent;
28+
NotBlank = true;
2829
Caption = 'No.';
2930
}
3031
field(4; Description; Text[250])

Apps/W1/AuditFileExport/app/src/GLAccountMapping/StandardAccountCategory.Table.al

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ table 5262 "Standard Account Category"
2020
{
2121
DataClassification = CustomerContent;
2222
Caption = 'No.';
23+
NotBlank = true;
2324
}
2425
field(3; Description; Text[250])
2526
{

Apps/W1/AuditFileExport/app/src/GLAccountMapping/StandardAccounts.Page.al

+7-6
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,20 @@ page 5263 "Standard Accounts"
1111
UsageCategory = Administration;
1212
SourceTable = "Standard Account";
1313
Caption = 'Standard Accounts';
14+
DelayedInsert = true;
1415

1516
layout
1617
{
1718
area(Content)
1819
{
1920
repeater(Groupings)
2021
{
22+
field("Category No."; Rec."Category No.")
23+
{
24+
ApplicationArea = Basic, Suite;
25+
ToolTip = 'Specifies the category of standard general ledger accounts that is used for mapping.';
26+
Visible = false;
27+
}
2128
field("No."; Rec."No.")
2229
{
2330
ApplicationArea = Basic, Suite;
@@ -28,12 +35,6 @@ page 5263 "Standard Accounts"
2835
ApplicationArea = Basic, Suite;
2936
ToolTip = 'Specifies the description of the standard account that is used for mapping.';
3037
}
31-
field("Category No."; Rec."Category No.")
32-
{
33-
ApplicationArea = Basic, Suite;
34-
ToolTip = 'Specifies the category of standard general ledger accounts that is used for mapping.';
35-
Visible = false;
36-
}
3738
}
3839
}
3940
area(Factboxes)

0 commit comments

Comments
 (0)