From 9815871f792eec583ad3904012f76faefd9174f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Holu=C5=A1a?= Date: Fri, 7 Aug 2026 13:04:48 +0200 Subject: [PATCH 1/2] Enhance VIES Declaration pages: update option captions for declaration types --- .../app/Src/Pages/VIESDeclarationCZL.Page.al | 1 + .../app/Src/Pages/VIESDeclarationsCZL.Page.al | 1 + .../app/Src/Tables/VIESDeclarationHeaderCZL.Table.al | 5 ++--- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Apps/CZ/CoreLocalizationPack/app/Src/Pages/VIESDeclarationCZL.Page.al b/src/Apps/CZ/CoreLocalizationPack/app/Src/Pages/VIESDeclarationCZL.Page.al index d3e2fe596e6..697a06ba91d 100644 --- a/src/Apps/CZ/CoreLocalizationPack/app/Src/Pages/VIESDeclarationCZL.Page.al +++ b/src/Apps/CZ/CoreLocalizationPack/app/Src/Pages/VIESDeclarationCZL.Page.al @@ -46,6 +46,7 @@ page 31138 "VIES Declaration CZL" { ApplicationArea = Basic, Suite; Importance = Promoted; + OptionCaption = 'Normal,Corrective'; ToolTip = 'Specifies type of VIES Declaration (Normal, Corrective).'; trigger OnValidate() diff --git a/src/Apps/CZ/CoreLocalizationPack/app/Src/Pages/VIESDeclarationsCZL.Page.al b/src/Apps/CZ/CoreLocalizationPack/app/Src/Pages/VIESDeclarationsCZL.Page.al index 106f141ac80..b47e23cab39 100644 --- a/src/Apps/CZ/CoreLocalizationPack/app/Src/Pages/VIESDeclarationsCZL.Page.al +++ b/src/Apps/CZ/CoreLocalizationPack/app/Src/Pages/VIESDeclarationsCZL.Page.al @@ -36,6 +36,7 @@ page 31140 "VIES Declarations CZL" field("Declaration Type"; Rec."Declaration Type") { ApplicationArea = Basic, Suite; + OptionCaption = 'Normal,Corrective'; ToolTip = 'Specifies type of VIES Declaration (Normal, Corrective).'; } field("Corrected Declaration No."; Rec."Corrected Declaration No.") diff --git a/src/Apps/CZ/CoreLocalizationPack/app/Src/Tables/VIESDeclarationHeaderCZL.Table.al b/src/Apps/CZ/CoreLocalizationPack/app/Src/Tables/VIESDeclarationHeaderCZL.Table.al index bac96416991..b197edca81d 100644 --- a/src/Apps/CZ/CoreLocalizationPack/app/Src/Tables/VIESDeclarationHeaderCZL.Table.al +++ b/src/Apps/CZ/CoreLocalizationPack/app/Src/Tables/VIESDeclarationHeaderCZL.Table.al @@ -251,7 +251,7 @@ table 31075 "VIES Declaration Header CZL" field(20; "Declaration Type"; Option) { Caption = 'Declaration Type'; - OptionCaption = 'Normal,Corrective,Corrective-Supplementary (Obsolete)'; + OptionCaption = 'Normal,Corrective,Corrective-Supplementary'; OptionMembers = Normal,Corrective,"Corrective-Supplementary"; DataClassification = CustomerContent; @@ -263,8 +263,7 @@ table 31075 "VIES Declaration Header CZL" Error(LineExistErr, FieldCaption("Declaration Type")); if "Declaration Type" = "Declaration Type"::Normal then "Corrected Declaration No." := ''; - if "Declaration Type" = "Declaration Type"::"Corrective-Supplementary" then - Error(NoLongerSupportedErr); + CheckDeclarationType(); end; end; } From 6e7489a5846a25e54855fce1b4e0abae0fbbe6a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Holu=C5=A1a?= Date: Fri, 7 Aug 2026 14:47:48 +0200 Subject: [PATCH 2/2] fix --- .../app/Src/Pages/VIESDeclarationCZL.Page.al | 1 - .../app/Src/Pages/VIESDeclarationsCZL.Page.al | 1 - 2 files changed, 2 deletions(-) diff --git a/src/Apps/CZ/CoreLocalizationPack/app/Src/Pages/VIESDeclarationCZL.Page.al b/src/Apps/CZ/CoreLocalizationPack/app/Src/Pages/VIESDeclarationCZL.Page.al index 697a06ba91d..d3e2fe596e6 100644 --- a/src/Apps/CZ/CoreLocalizationPack/app/Src/Pages/VIESDeclarationCZL.Page.al +++ b/src/Apps/CZ/CoreLocalizationPack/app/Src/Pages/VIESDeclarationCZL.Page.al @@ -46,7 +46,6 @@ page 31138 "VIES Declaration CZL" { ApplicationArea = Basic, Suite; Importance = Promoted; - OptionCaption = 'Normal,Corrective'; ToolTip = 'Specifies type of VIES Declaration (Normal, Corrective).'; trigger OnValidate() diff --git a/src/Apps/CZ/CoreLocalizationPack/app/Src/Pages/VIESDeclarationsCZL.Page.al b/src/Apps/CZ/CoreLocalizationPack/app/Src/Pages/VIESDeclarationsCZL.Page.al index b47e23cab39..106f141ac80 100644 --- a/src/Apps/CZ/CoreLocalizationPack/app/Src/Pages/VIESDeclarationsCZL.Page.al +++ b/src/Apps/CZ/CoreLocalizationPack/app/Src/Pages/VIESDeclarationsCZL.Page.al @@ -36,7 +36,6 @@ page 31140 "VIES Declarations CZL" field("Declaration Type"; Rec."Declaration Type") { ApplicationArea = Basic, Suite; - OptionCaption = 'Normal,Corrective'; ToolTip = 'Specifies type of VIES Declaration (Normal, Corrective).'; } field("Corrected Declaration No."; Rec."Corrected Declaration No.")