Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -2750,6 +2750,11 @@ table 81 "Gen. Journal Line"
Editable = false;
FieldClass = FlowField;
}
field(395; "Business Activity Code"; Code[10])

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$\textbf{🟠\ High\ Severity\ —\ Privacy}$

The PR adds 179 new Normal "Business Activity Code" fields across changed tables/tableextensions without a field-level DataClassification, relying on table scope instead. BCQuality's AS0016 guidance requires every Normal field to declare DataClassification explicitly rather than inheriting it from the table.

Knowledge:

👍 useful · ❤️ especially valuable · 👎 wrong - reply with why · AL review agent v1.32.4

{
Caption = 'Business Activity Code';
TableRelation = "Business Activity".Code;
}
/// <summary>
/// Dimension set identifier linking to dimension value combinations for analytical reporting and cost center tracking.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1224,6 +1224,11 @@ table 181 "Posted Gen. Journal Line"
Caption = 'Exported to Payment File';
Editable = false;
}
field(395; "Business Activity Code"; Code[10])
{
Caption = 'Business Activity Code';
TableRelation = "Business Activity".Code;
}
/// <summary>
/// Dimension set identifier linking posted entries to dimension combinations for analytical reporting and financial analysis.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1442,6 +1442,10 @@ table 98 "General Ledger Setup"
Caption = 'Use Concurrent Posting';
ToolTip = 'Specifies whether to use concurrent posting when posting journals. Concurrent posting can reduce the time it takes to post journals by allowing multiple batches to be posted at the same time. Enabling this option requires additional configuration and setup, such as setting up a batch job to run the concurrent posting process and ensuring that your system has the necessary resources to support concurrent processing.';
}
field(395; "Use Business Activity Code"; Boolean)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$\textbf{🟠\ High\ Severity\ —\ Privacy}$

14 changed "General Ledger Setup" table copies (APAC, BE, CH, DACH, ES, FR, GB, IT, NA, NL, NO, RU, SE, W1) add a Normal "Use Business Activity Code" field without field-level DataClassification. Privacy guidance requires every Normal table field to declare DataClassification explicitly.

Knowledge:

👍 useful · ❤️ especially valuable · 👎 wrong - reply with why · AL review agent v1.33.4

{
Caption = 'Use Business Activity Code';
}
field(11600; "BAS to be Lodged as a Group"; Boolean)
{
Caption = 'BAS to be Lodged as a Group';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,11 @@ table 254 "VAT Entry"
TableRelation = "G/L Register";
ToolTip = 'Specifies the G/L register number that groups related G/L entries from the same posting.';
}
field(395; "Business Activity Code"; Code[10])
{
Caption = 'Business Activity Code';
TableRelation = "Business Activity".Code;
}
/// <summary>
/// Percentage of VAT that is non-deductible based on business use or regulatory restrictions.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ using Microsoft.EServices.OnlineMap;
using Microsoft.Finance.VAT.Registration;
using Microsoft.Finance.WithholdingTax;
using Microsoft.Foundation.Address;
using Microsoft.Foundation.AuditCodes;
using Microsoft.Foundation.Calendar;
using Microsoft.Foundation.Enums;
using Microsoft.Inventory.Item;
Expand Down Expand Up @@ -471,6 +472,11 @@ table 79 "Company Information"
SetBrandColorValue();
end;
}
field(395; "Business Activity Code"; Code[10])
{
Caption = 'Business Activity Code';
TableRelation = "Business Activity".Code;
}
field(5700; "Responsibility Center"; Code[10])
{
Caption = 'Responsibility Center';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,11 @@ table 5109 "Purchase Header Archive"
ToolTip = 'Specifies the telephone number of the company''s shipping address.';
ExtendedDatatype = PhoneNo;
}
field(395; "Business Activity Code"; Code[10])
{
Caption = 'Business Activity Code';
TableRelation = "Business Activity".Code;
}
field(480; "Dimension Set ID"; Integer)
{
Caption = 'Dimension Set ID';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2330,6 +2330,11 @@ table 38 "Purchase Header"
FieldClass = FlowField;
AutoFormatType = 1;
}
field(395; "Business Activity Code"; Code[10])
{
Caption = 'Business Activity Code';
TableRelation = "Business Activity".Code;
}
field(480; "Dimension Set ID"; Integer)
{
Caption = 'Dimension Set ID';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,12 @@ table 124 "Purch. Cr. Memo Hdr."
ToolTip = 'Specifies the telephone number of the company''s shipping address.';
ExtendedDatatype = PhoneNo;
}
field(395; "Business Activity Code"; Code[10])
{
Caption = 'Business Activity Code';
Editable = false;
TableRelation = "Business Activity".Code;
}
field(480; "Dimension Set ID"; Integer)
{
Caption = 'Dimension Set ID';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,12 @@ table 122 "Purch. Inv. Header"
ToolTip = 'Specifies the telephone number of the company''s shipping address.';
ExtendedDatatype = PhoneNo;
}
field(395; "Business Activity Code"; Code[10])
{
Caption = 'Business Activity Code';
Editable = false;
TableRelation = "Business Activity".Code;
}
field(480; "Dimension Set ID"; Integer)
{
Caption = 'Dimension Set ID';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1190,6 +1190,11 @@ table 5107 "Sales Header Archive"
ExtendedDatatype = PhoneNo;
ToolTip = 'Specifies the telephone number of the company''s shipping address.';
}
field(395; "Business Activity Code"; Code[10])
{
Caption = 'Business Activity Code';
TableRelation = "Business Activity".Code;
}
/// <summary>
/// Specifies the unique identifier for the combination of dimension values assigned to this document.
/// </summary>
Expand Down
5 changes: 5 additions & 0 deletions src/Layers/APAC/BaseApp/Sales/Document/SalesHeader.Table.al
Original file line number Diff line number Diff line change
Expand Up @@ -2937,6 +2937,11 @@ table 36 "Sales Header"
Editable = false;
FieldClass = FlowField;
}
field(395; "Business Activity Code"; Code[10])
{
Caption = 'Business Activity Code';
TableRelation = "Business Activity".Code;
}
/// <summary>
/// Specifies the identifier for the combination of dimensions applied to the document.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,12 @@ table 114 "Sales Cr.Memo Header"
ToolTip = 'Specifies the telephone number of the company''s shipping address.';
ExtendedDatatype = PhoneNo;
}
field(395; "Business Activity Code"; Code[10])
{
Caption = 'Business Activity Code';
Editable = false;
TableRelation = "Business Activity".Code;
}
/// <summary>
/// Specifies the unique identifier for the dimension set applied to this credit memo.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,12 @@ table 112 "Sales Invoice Header"
ToolTip = 'Specifies the telephone number of the company''s shipping address.';
ExtendedDatatype = PhoneNo;
}
field(395; "Business Activity Code"; Code[10])
{
Caption = 'Business Activity Code';
Editable = false;
TableRelation = "Business Activity".Code;
}
/// <summary>
/// Specifies the unique identifier for the dimension set applied to this document.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ using Microsoft.Bank.Setup;
using Microsoft.EServices.OnlineMap;
using Microsoft.Finance.VAT.Registration;
using Microsoft.Foundation.Address;
using Microsoft.Foundation.AuditCodes;
using Microsoft.Foundation.Calendar;
using Microsoft.Foundation.Enums;
using Microsoft.Inventory.Intrastat;
Expand Down Expand Up @@ -474,6 +475,11 @@ table 79 "Company Information"
SetBrandColorValue();
end;
}
field(395; "Business Activity Code"; Code[10])
{
Caption = 'Business Activity Code';
TableRelation = "Business Activity".Code;
}
field(5700; "Responsibility Center"; Code[10])
{
Caption = 'Responsibility Center';
Expand Down Expand Up @@ -1014,4 +1020,4 @@ table 79 "Company Information"
begin
end;

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2754,6 +2754,11 @@ table 81 "Gen. Journal Line"
Editable = false;
FieldClass = FlowField;
}
field(395; "Business Activity Code"; Code[10])
{
Caption = 'Business Activity Code';
TableRelation = "Business Activity".Code;
}
/// <summary>
/// Dimension set identifier linking to dimension value combinations for analytical reporting and cost center tracking.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,11 @@ table 181 "Posted Gen. Journal Line"
Caption = 'Exported to Payment File';
Editable = false;
}
field(395; "Business Activity Code"; Code[10])
{
Caption = 'Business Activity Code';
TableRelation = "Business Activity".Code;
}
/// <summary>
/// Dimension set identifier linking posted entries to dimension combinations for analytical reporting and financial analysis.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1444,6 +1444,10 @@ table 98 "General Ledger Setup"
Caption = 'Use Concurrent Posting';
ToolTip = 'Specifies whether to use concurrent posting when posting journals. Concurrent posting can reduce the time it takes to post journals by allowing multiple batches to be posted at the same time. Enabling this option requires additional configuration and setup, such as setting up a batch job to run the concurrent posting process and ensuring that your system has the necessary resources to support concurrent processing.';
}
field(395; "Use Business Activity Code"; Boolean)
{
Caption = 'Use Business Activity Code';
}
field(11315; "VAT Statement Template Name"; Code[10])
{
Caption = 'VAT Statement Template Name';
Expand Down
5 changes: 5 additions & 0 deletions src/Layers/BE/BaseApp/Finance/VAT/Ledger/VATEntry.Table.al
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,11 @@ table 254 "VAT Entry"
TableRelation = "G/L Register";
ToolTip = 'Specifies the G/L register number that groups related G/L entries from the same posting.';
}
field(395; "Business Activity Code"; Code[10])
{
Caption = 'Business Activity Code';
TableRelation = "Business Activity".Code;
}
/// <summary>
/// Percentage of VAT that is non-deductible based on business use or regulatory restrictions.
/// </summary>
Expand Down
1 change: 0 additions & 1 deletion src/Layers/BE/BaseApp/Finance/VAT/Setup/VATSetup.Page.al
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ page 187 "VAT Setup"
end;
end;


var
IsVATDateEnabled: Boolean;
}
Expand Down
4 changes: 4 additions & 0 deletions src/Layers/BE/BaseApp/Finance/VAT/Setup/VATSetup.Table.al
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ table 189 "VAT Setup"
{
Caption = 'Ship-To Alt. Cust. VAT Reg.';
}
field(395; "Per Business Activity Code Settl. Entry"; Boolean)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$\textbf{🟠\ High\ Severity\ —\ Privacy}$

The new "Per Business Activity Code Settl. Entry" field on BE's VATSetup.Table.al is a Normal field added without field-level DataClassification. Privacy guidance requires every Normal table field to declare DataClassification explicitly.

Knowledge:

👍 useful · ❤️ especially valuable · 👎 wrong - reply with why · AL review agent v1.33.4

{
Caption = 'Per Business Activity Code Settlement Entry';
}
}

keys
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ using Microsoft.Bank.Setup;
using Microsoft.EServices.OnlineMap;
using Microsoft.Finance.VAT.Registration;
using Microsoft.Foundation.Address;
using Microsoft.Foundation.AuditCodes;
using Microsoft.Foundation.Calendar;
using Microsoft.Foundation.Enums;
using Microsoft.Inventory.Item;
Expand Down Expand Up @@ -468,6 +469,11 @@ table 79 "Company Information"
SetBrandColorValue();
end;
}
field(395; "Business Activity Code"; Code[10])
{
Caption = 'Business Activity Code';
TableRelation = "Business Activity".Code;
}
field(5700; "Responsibility Center"; Code[10])
{
Caption = 'Responsibility Center';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,11 @@ table 5109 "Purchase Header Archive"
ToolTip = 'Specifies the telephone number of the company''s shipping address.';
ExtendedDatatype = PhoneNo;
}
field(395; "Business Activity Code"; Code[10])
{
Caption = 'Business Activity Code';
TableRelation = "Business Activity".Code;
}
field(480; "Dimension Set ID"; Integer)
{
Caption = 'Dimension Set ID';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2324,6 +2324,11 @@ table 38 "Purchase Header"
FieldClass = FlowField;
AutoFormatType = 1;
}
field(395; "Business Activity Code"; Code[10])
{
Caption = 'Business Activity Code';
TableRelation = "Business Activity".Code;
}
field(480; "Dimension Set ID"; Integer)
{
Caption = 'Dimension Set ID';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,12 @@ table 124 "Purch. Cr. Memo Hdr."
ToolTip = 'Specifies the telephone number of the company''s shipping address.';
ExtendedDatatype = PhoneNo;
}
field(395; "Business Activity Code"; Code[10])
{
Caption = 'Business Activity Code';
Editable = false;
TableRelation = "Business Activity".Code;
}
field(480; "Dimension Set ID"; Integer)
{
Caption = 'Dimension Set ID';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,12 @@ table 122 "Purch. Inv. Header"
ToolTip = 'Specifies the telephone number of the company''s shipping address.';
ExtendedDatatype = PhoneNo;
}
field(395; "Business Activity Code"; Code[10])
{
Caption = 'Business Activity Code';
Editable = false;
TableRelation = "Business Activity".Code;
}
field(480; "Dimension Set ID"; Integer)
{
Caption = 'Dimension Set ID';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1189,6 +1189,11 @@ table 5107 "Sales Header Archive"
ExtendedDatatype = PhoneNo;
ToolTip = 'Specifies the telephone number of the company''s shipping address.';
}
field(395; "Business Activity Code"; Code[10])
{
Caption = 'Business Activity Code';
TableRelation = "Business Activity".Code;
}
/// <summary>
/// Specifies the unique identifier for the combination of dimension values assigned to this document.
/// </summary>
Expand Down
5 changes: 5 additions & 0 deletions src/Layers/BE/BaseApp/Sales/Document/SalesHeader.Table.al
Original file line number Diff line number Diff line change
Expand Up @@ -2935,6 +2935,11 @@ table 36 "Sales Header"
Editable = false;
FieldClass = FlowField;
}
field(395; "Business Activity Code"; Code[10])
{
Caption = 'Business Activity Code';
TableRelation = "Business Activity".Code;
}
/// <summary>
/// Specifies the identifier for the combination of dimensions applied to the document.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,11 @@ table 302 "Finance Charge Memo Header"
ToolTip = 'Specifies the bank account to use for bank information when the document is printed.';
TableRelation = "Bank Account" where("Currency Code" = field("Currency Code"));
}
field(395; "Business Activity Code"; Code[10])
{
Caption = 'Business Activity Code';
TableRelation = "Business Activity".Code;
}
/// <summary>
/// Specifies the unique identifier for the combination of dimension values assigned to this memo.
/// </summary>
Expand Down Expand Up @@ -659,9 +664,9 @@ table 302 "Finance Charge Memo Header"
if "No." = '' then begin
TestNoSeries();
"No. Series" := GetNoSeriesCode();
if NoSeries.AreRelated("No. Series", xRec."No. Series") then
"No. Series" := xRec."No. Series";
"No." := NoSeries.GetNextNo("No. Series", "Posting Date");
if NoSeries.AreRelated("No. Series", xRec."No. Series") then
"No. Series" := xRec."No. Series";
"No." := NoSeries.GetNextNo("No. Series", "Posting Date");

end;
"Posting Description" := StrSubstNo(Text000, "No.");
Expand All @@ -674,8 +679,8 @@ table 302 "Finance Charge Memo Header"
then
"Issuing No. Series" := "No. Series"
else
if NoSeries.IsAutomatic(GetIssuingNoSeriesCode()) then
"Issuing No. Series" := GetIssuingNoSeriesCode();
if NoSeries.IsAutomatic(GetIssuingNoSeriesCode()) then
"Issuing No. Series" := GetIssuingNoSeriesCode();

if "Posting Date" = 0D then
"Posting Date" := WorkDate();
Expand Down
Loading
Loading