diff --git a/.github/AL-Go-Settings.json b/.github/AL-Go-Settings.json
index e47449e31a..d2c8583a56 100644
--- a/.github/AL-Go-Settings.json
+++ b/.github/AL-Go-Settings.json
@@ -6,7 +6,7 @@
"runs-on": "windows-latest",
"cacheImageName": "",
"UsePsSession": false,
- "artifact": "https://bcinsider-fvh2ekdjecfjd6gk.b02.azurefd.net/sandbox/28.0.42149.0/base",
+ "artifact": "https://bcinsider-fvh2ekdjecfjd6gk.b02.azurefd.net/sandbox/28.0.43307.0/base",
"country": "base",
"useProjectDependencies": true,
"repoVersion": "28.0",
diff --git a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Codeunits/AltCustVATRegFacadeCZZ.Codeunit.al b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Codeunits/AltCustVATRegFacadeCZZ.Codeunit.al
new file mode 100644
index 0000000000..6dcf4cb251
--- /dev/null
+++ b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Codeunits/AltCustVATRegFacadeCZZ.Codeunit.al
@@ -0,0 +1,40 @@
+// ------------------------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// ------------------------------------------------------------------------------------------------
+namespace Microsoft.Finance.AdvancePayments;
+
+using Microsoft.Sales.Customer;
+
+codeunit 11730 "Alt. Cust. VAT Reg. Facade CZZ"
+{
+ Access = Public;
+
+ var
+ AltCustVATRegOrchCZZ: Codeunit "Alt. Cust. VAT Reg. Orch. CZZ";
+
+ procedure UpdateSetupOnVATCountryChangeInSalesAdvLetterHeader(var SalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ"; xSalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ")
+ begin
+ AltCustVATRegOrchCZZ.GetAltCustVATRegDocImpl().UpdateSetupOnVATCountryChangeInSalesAdvLetterHeader(SalesAdvLetterHeaderCZZ, xSalesAdvLetterHeaderCZZ);
+ end;
+
+ procedure Init(var SalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ"; xSalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ")
+ begin
+ AltCustVATRegOrchCZZ.GetAltCustVATRegDocImpl().Init(SalesAdvLetterHeaderCZZ, xSalesAdvLetterHeaderCZZ);
+ end;
+
+ procedure UpdateVATRegNoInCustFromSalesAdvLetterHeader(SalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ"; Customer: Record Customer) ShouldUpdate: Boolean
+ var
+ IsHandled: Boolean;
+ begin
+ OnBeforeUpdateVATRegNoInCustFromSalesAdvLetterHeader(SalesAdvLetterHeaderCZZ, Customer, ShouldUpdate, IsHandled);
+ if IsHandled then
+ exit(ShouldUpdate);
+ exit((Customer."VAT Registration No." = '') and (not SalesAdvLetterHeaderCZZ."Alt. VAT Registration No."));
+ end;
+
+ [IntegrationEvent(false, false)]
+ local procedure OnBeforeUpdateVATRegNoInCustFromSalesAdvLetterHeader(var SalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ"; Customer: Record Customer; var ShouldUpdate: Boolean; var IsHandled: Boolean)
+ begin
+ end;
+}
\ No newline at end of file
diff --git a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Codeunits/AltCustVATRegImplCZZ.Codeunit.al b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Codeunits/AltCustVATRegImplCZZ.Codeunit.al
new file mode 100644
index 0000000000..f409706100
--- /dev/null
+++ b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Codeunits/AltCustVATRegImplCZZ.Codeunit.al
@@ -0,0 +1,288 @@
+// ------------------------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// ------------------------------------------------------------------------------------------------
+namespace Microsoft.Finance.AdvancePayments;
+
+using Microsoft.Finance.VAT.Registration;
+using Microsoft.Sales.Customer;
+using System.Telemetry;
+using System.Diagnostics;
+using System.Environment.Configuration;
+
+codeunit 11732 "Alt. Cust. VAT Reg. Impl. CZZ" implements "Alt. Cust. VAT Reg. Adv. CZZ"
+{
+ Access = Internal;
+ InherentEntitlements = X;
+ InherentPermissions = X;
+
+ var
+ AltCustVATRegFacade: Codeunit "Alt. Cust. VAT. Reg. Facade";
+ FeatureTelemetry: Codeunit "Feature Telemetry";
+ InstructionTxt: Label 'The following data is taken from the Alternative VAT Registration setup. It will override values in the document and affect the posting. Do you want to continue?';
+ DocumentValueTxt: Label 'Document value';
+ AlternativeValueTxt: Label 'Alternative value';
+ CannotChangeVATDataWhenVATPaymentErr: Label 'You cannot make this change because it leads to a different VAT Registration No., Gen. Bus. Posting Group or VAT Bus. Posting Group than in the sales advance letter. Since you have posted a VAT payment, such a change will cause an inconsistency in the ledger entries.';
+ VATDataTakenFromCustomerMsg: Label 'The VAT Country/Region code has been changed to the value that does not have an alternative VAT registration.\\The following fields have been updated from the customer card: %1', Comment = '%1 = list of the fields';
+ FeatureNameTxt: Label 'Alternative Customer VAT Registration', Locked = true;
+ ConfirmAltCustVATRegNotificationNameTok: Label 'Confirm an alternative customer VAT registration in advance letters';
+ ConfirmAltCustVATRegNotificationDescTok: Label 'Show the user the page to confirm an alternative customer VAT registration when choosing the VAT country different from the customer''s';
+ AddAlternativeCustVATRegQst: Label 'The VAT country is different than the customer''s. Do you want to add an alternative VAT registration for this VAT country?';
+ AddAlternativeCustVATRegMsg: Label 'Add';
+ DontShowMsg: Label 'Don''t show';
+ AddAltCustVATRegNotificationNameTok: Label 'Suggest an alternative customer VAT registration from sales advance letter';
+ AddAltCustVATRegNotificationDescTok: Label 'Suggest the user to add an alternative customer VAT registration when choosing a VAT country different from the customer''s';
+
+ procedure Init(var SalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ"; xSalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ")
+ begin
+ if xSalesAdvLetterHeaderCZZ."Bill-to Customer No." = '' then
+ exit;
+ SalesAdvLetterHeaderCZZ.Validate("Alt. VAT Registration No.", false);
+ SalesAdvLetterHeaderCZZ.Validate("Alt. VAT Bus Posting Group", false);
+ end;
+
+ procedure CopyFromCustomer(var SalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ"; xSalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ")
+ var
+ Customer: Record Customer;
+ begin
+ if not IsAltVATRegUsed(SalesAdvLetterHeaderCZZ) then
+ exit;
+ RunChecks(SalesAdvLetterHeaderCZZ);
+ Customer.SetLoadFields("Country/Region Code", "VAT Registration No.", "VAT Bus. Posting Group");
+ if not Customer.Get(SalesAdvLetterHeaderCZZ."Bill-to Customer No.") then
+ exit;
+ CopyFromCustomer(SalesAdvLetterHeaderCZZ, xSalesAdvLetterHeaderCZZ, Customer);
+ end;
+
+ local procedure CopyFromCustomer(var SalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ"; xSalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ"; Customer: Record Customer)
+ var
+ ChangedFieldsList: Text;
+ begin
+ if (SalesAdvLetterHeaderCZZ."Alt. VAT Registration No." or SalesAdvLetterHeaderCZZ."Alt. VAT Bus Posting Group") and
+ (SalesAdvLetterHeaderCZZ."VAT Country/Region Code" <> Customer."Country/Region Code") and
+ (xSalesAdvLetterHeaderCZZ."VAT Country/Region Code" = SalesAdvLetterHeaderCZZ."VAT Country/Region Code")
+ then begin
+ SalesAdvLetterHeaderCZZ."VAT Country/Region Code" := Customer."Country/Region Code";
+ AddStringToCommaSeparatedList(ChangedFieldsList, SalesAdvLetterHeaderCZZ.FieldCaption("VAT Country/Region Code"));
+ end;
+ if SalesAdvLetterHeaderCZZ."Alt. VAT Registration No." then begin
+ SalesAdvLetterHeaderCZZ.Validate("Alt. VAT Registration No.", false);
+ SalesAdvLetterHeaderCZZ.Validate("VAT Registration No.", Customer."VAT Registration No.");
+ AddStringToCommaSeparatedList(ChangedFieldsList, SalesAdvLetterHeaderCZZ.FieldCaption("VAT Registration No."));
+ end;
+ if SalesAdvLetterHeaderCZZ."Alt. VAT Bus Posting Group" then begin
+ SalesAdvLetterHeaderCZZ.Validate("Alt. VAT Bus Posting Group", false);
+ SalesAdvLetterHeaderCZZ.Validate("VAT Bus. Posting Group", Customer."VAT Bus. Posting Group");
+ AddStringToCommaSeparatedList(ChangedFieldsList, SalesAdvLetterHeaderCZZ.FieldCaption("VAT Bus. Posting Group"));
+ end;
+ if GuiAllowed() then
+ Message(VATDataTakenFromCustomerMsg, ChangedFieldsList);
+ end;
+
+ procedure UpdateSetupOnVATCountryChangeInSalesAdvLetterHeader(var SalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ"; xSalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ")
+ var
+ Customer: Record Customer;
+ begin
+ if AlternativeCustVATRegIsBlank(SalesAdvLetterHeaderCZZ) then begin
+ CopyFromCustomer(SalesAdvLetterHeaderCZZ, xSalesAdvLetterHeaderCZZ);
+ if not Customer.Get(SalesAdvLetterHeaderCZZ."Bill-to Customer No.") then
+ exit;
+ if Customer."Country/Region Code" = SalesAdvLetterHeaderCZZ."VAT Country/Region Code" then
+ exit;
+ ThrowAddAltCustVATRegNotification(Customer."No.", SalesAdvLetterHeaderCZZ."VAT Country/Region Code");
+ exit;
+ end;
+ RunChecks(SalesAdvLetterHeaderCZZ);
+ if SalesAdvLetterHeaderCZZ.SystemCreatedAt <> 0DT then
+ if not ConfirmChanges(SalesAdvLetterHeaderCZZ) then
+ error('');
+ UpdateAltCustVATRegInSalesAdvLetterHeader(SalesAdvLetterHeaderCZZ);
+ end;
+
+ local procedure IsAltVATRegUsed(SalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ"): Boolean
+ begin
+ exit(SalesAdvLetterHeaderCZZ."Alt. VAT Registration No." or SalesAdvLetterHeaderCZZ."Alt. VAT Bus Posting Group");
+ end;
+
+ local procedure AlternativeCustVATRegIsBlank(SalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ"): Boolean
+ var
+ AltCustVATReg: Record "Alt. Cust. VAT Reg.";
+ begin
+ exit(not GetAlternativeCustVATReg(AltCustVATReg, SalesAdvLetterHeaderCZZ));
+ end;
+
+ local procedure GetAlternativeCustVATReg(var AltCustVATReg: Record "Alt. Cust. VAT Reg."; SalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ"): Boolean
+ var
+ Customer: Record Customer;
+ begin
+ Customer.SetLoadFields("No.");
+ Customer.Get(SalesAdvLetterHeaderCZZ."Bill-to Customer No.");
+ exit(AltCustVATRegFacade.GetAlternativeCustVATReg(AltCustVATReg, Customer."No.", SalesAdvLetterHeaderCZZ."VAT Country/Region Code"));
+ end;
+
+ local procedure ConfirmChanges(var SalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ") Confirmed: Boolean
+ var
+ TempChangeLogEntry: Record "Change Log Entry" temporary;
+ ConfirmAltCustVATRegPage: Page "Confirm Alt. Cust. VAT Reg.";
+ begin
+ FeatureTelemetry.LogUsage('0000QRW', FeatureNameTxt, 'Confirm changes');
+ if not BuildFieldChangeBuffer(TempChangeLogEntry, SalesAdvLetterHeaderCZZ) then
+ exit(true);
+ if not GuiAllowed() then
+ exit(true);
+ if SalesAdvLetterHeaderCZZ.GetHideValidationDialog() then
+ exit(true);
+ if not ShowConfirmation() then
+ exit(true);
+ ConfirmAltCustVATRegPage.SetUIControls(InstructionTxt, DocumentValueTxt, AlternativeValueTxt);
+ ConfirmAltCustVATRegPage.SetSource(TempChangeLogEntry);
+ Confirmed := ConfirmAltCustVATRegPage.RunModal() = Action::Ok;
+ if ConfirmAltCustVATRegPage.DontShowAgainOptionSelected() then
+ DisableConfirmation();
+ exit(Confirmed);
+ end;
+
+ local procedure ShowConfirmation(): Boolean
+ var
+ MyNotifications: Record "My Notifications";
+ begin
+ if Database.IsInWriteTransaction() then
+ exit(false);
+ exit(MyNotifications.IsEnabled(GetConfirmChangesNotificationId()));
+ end;
+
+ local procedure DisableConfirmation()
+ var
+ MyNotifications: Record "My Notifications";
+ begin
+ if not MyNotifications.Disable(GetConfirmChangesNotificationId()) then
+ MyNotifications.InsertDefault(GetConfirmChangesNotificationId(), ConfirmAltCustVATRegNotificationNameTok, ConfirmAltCustVATRegNotificationDescTok, false);
+ end;
+
+ local procedure UpdateAltCustVATRegInSalesAdvLetterHeader(var SalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ")
+ var
+ AltCustVATReg: Record "Alt. Cust. VAT Reg.";
+ begin
+ GetAlternativeCustVATReg(AltCustVATReg, SalesAdvLetterHeaderCZZ);
+ if AltCustVATReg."VAT Registration No." <> '' then begin
+ SalesAdvLetterHeaderCZZ.Validate("Alt. VAT Registration No.", true);
+ SalesAdvLetterHeaderCZZ.Validate("VAT Registration No.", AltCustVATReg."VAT Registration No.");
+ end;
+ if AltCustVATReg."VAT Bus. Posting Group" <> '' then begin
+ SalesAdvLetterHeaderCZZ.Validate("Alt. VAT Bus Posting Group", true);
+ SalesAdvLetterHeaderCZZ.Validate("VAT Bus. Posting Group", AltCustVATReg."VAT Bus. Posting Group");
+ end;
+ OnAfterUpdateAltCustVATRegInSalesAdvLetterHeader(SalesAdvLetterHeaderCZZ, AltCustVATReg);
+ FeatureTelemetry.LogUptake('0000QRV', FeatureNameTxt, Enum::"Feature Uptake Status"::Used);
+ end;
+
+ local procedure BuildFieldChangeBuffer(var TempChangeLogEntry: Record "Change Log Entry" temporary; SalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ"): Boolean
+ var
+ AltCustVATReg: Record "Alt. Cust. VAT Reg.";
+ begin
+ GetAlternativeCustVATReg(AltCustVATReg, SalesAdvLetterHeaderCZZ);
+ if (AltCustVATReg."VAT Registration No." <> '') and (SalesAdvLetterHeaderCZZ."VAT Registration No." <> AltCustVATReg."VAT Registration No.") then
+ AddFieldChangeBuffer(TempChangeLogEntry, SalesAdvLetterHeaderCZZ.FieldNo("VAT Registration No."), SalesAdvLetterHeaderCZZ."VAT Registration No.", AltCustVATReg."VAT Registration No.");
+ if (AltCustVATReg."VAT Bus. Posting Group" <> '') and (SalesAdvLetterHeaderCZZ."VAT Bus. Posting Group" <> AltCustVATReg."VAT Bus. Posting Group") then
+ AddFieldChangeBuffer(TempChangeLogEntry, SalesAdvLetterHeaderCZZ.FieldNo("VAT Bus. Posting Group"), SalesAdvLetterHeaderCZZ."VAT Bus. Posting Group", AltCustVATReg."VAT Bus. Posting Group");
+ OnAfterBuildFieldChangeBuffer(TempChangeLogEntry, SalesAdvLetterHeaderCZZ);
+ exit(not TempChangeLogEntry.IsEmpty());
+ end;
+
+ local procedure AddFieldChangeBuffer(var TempChangeLogEntry: Record "Change Log Entry" temporary; DocFieldNo: Integer; OldValue: Text[2048]; NewValue: Text[2048])
+ begin
+ TempChangeLogEntry."Entry No." += 1;
+ TempChangeLogEntry."Table No." := Database::"Sales Adv. Letter Header CZZ";
+ TempChangeLogEntry."Field No." := DocFieldNo;
+ TempChangeLogEntry."Old Value" := OldValue;
+ TempChangeLogEntry."New Value" := NewValue;
+ TempChangeLogEntry.Insert();
+ end;
+
+ local procedure RunChecks(SalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ")
+ begin
+ CheckVATPayment(SalesAdvLetterHeaderCZZ);
+ end;
+
+ local procedure CheckVATPayment(SalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ")
+ var
+ SalesAdvLetterEntryCZZ: Record "Sales Adv. Letter Entry CZZ";
+ begin
+ SalesAdvLetterEntryCZZ.SetRange("Sales Adv. Letter No.", SalesAdvLetterHeaderCZZ."No.");
+ SalesAdvLetterEntryCZZ.SetRange("Entry Type", SalesAdvLetterEntryCZZ."Entry Type"::"VAT Payment");
+ SalesAdvLetterEntryCZZ.SetRange(Cancelled, false);
+ if not SalesAdvLetterEntryCZZ.IsEmpty() then
+ error(CannotChangeVATDataWhenVATPaymentErr);
+ end;
+
+ local procedure GetConfirmChangesNotificationId(): Guid
+ begin
+ exit('e564eb18-2c72-4d30-be8d-2050e084f9c2');
+ end;
+
+ local procedure AddStringToCommaSeparatedList(var List: Text; Value: Text)
+ begin
+ if List <> '' then
+ List += ', ';
+ List += Value;
+ end;
+
+ local procedure ThrowAddAltCustVATRegNotification(CustNo: Code[20]; VATCountryRegionCode: Code[10])
+ var
+ MyNotifications: Record "My Notifications";
+ AltCustVATReg: Record "Alt. Cust. VAT Reg.";
+ Notification: Notification;
+ begin
+ if not MyNotifications.IsEnabled(AddAltCustVATRegNotificationId()) then
+ exit;
+ Notification.Id(AddAltCustVATRegNotificationId());
+ Notification.Message(AddAlternativeCustVATRegQst);
+ Notification.SetData(AltCustVATReg.FieldName("Customer No."), CustNo);
+ Notification.SetData(AltCustVATReg.FieldName("VAT Country/Region Code"), VATCountryRegionCode);
+ Notification.AddAction(AddAlternativeCustVATRegMsg, Codeunit::"Alt. Cust. VAT Reg. Impl. CZZ", 'AddAltCustVATRegFromNotification');
+ Notification.AddAction(DontShowMsg, Codeunit::"Alt. Cust. VAT Reg. Impl. CZZ", 'DisableAddAltCustVATRegNotification');
+ Notification.Send();
+ end;
+
+ procedure AddAltCustVATRegFromNotification(Notification: Notification)
+ var
+ AltCustVATReg: Record "Alt. Cust. VAT Reg.";
+ NewId: Integer;
+ begin
+ if AltCustVATReg.FindLast() then
+ NewId := AltCustVATReg.Id;
+ NewId += 1;
+ AltCustVATReg.Init();
+ AltCustVATReg.Validate(Id, NewId);
+ AltCustVATReg.Validate("Customer No.",
+ CopyStr(Notification.GetData(AltCustVATReg.FieldName("Customer No.")), 1, MaxStrLen(AltCustVATReg."Customer No.")));
+ AltCustVATReg.Validate("VAT Country/Region Code",
+ CopyStr(Notification.GetData(AltCustVATReg.FieldName("VAT Country/Region Code")), 1, MaxStrLen(AltCustVATReg."VAT Country/Region Code")));
+ AltCustVATReg.Insert(true);
+ Commit();
+ Page.RunModal(0, AltCustVATReg);
+ end;
+
+ procedure DisableAddAltCustVATRegNotification(Notification: Notification)
+ var
+ MyNotifications: Record "My Notifications";
+ begin
+ if not MyNotifications.Disable(Notification.Id()) then
+ MyNotifications.InsertDefault(Notification.Id(), AddAltCustVATRegNotificationNameTok, AddAltCustVATRegNotificationDescTok, false);
+ end;
+
+ local procedure AddAltCustVATRegNotificationId(): Text
+ begin
+ exit('34c4fa1d-07b6-450b-b524-0d367b1e6221')
+ end;
+
+ [IntegrationEvent(false, false)]
+ local procedure OnAfterBuildFieldChangeBuffer(var TempChangeLogEntry: Record "Change Log Entry" temporary; SalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ");
+ begin
+ end;
+
+ [IntegrationEvent(false, false)]
+ local procedure OnAfterUpdateAltCustVATRegInSalesAdvLetterHeader(var SalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ"; var AltCustVATReg: Record "Alt. Cust. VAT Reg.")
+ begin
+ end;
+}
\ No newline at end of file
diff --git a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Codeunits/AltCustVATRegOrchCZZ.Codeunit.al b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Codeunits/AltCustVATRegOrchCZZ.Codeunit.al
new file mode 100644
index 0000000000..96a4dad694
--- /dev/null
+++ b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Codeunits/AltCustVATRegOrchCZZ.Codeunit.al
@@ -0,0 +1,21 @@
+// ------------------------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// ------------------------------------------------------------------------------------------------
+namespace Microsoft.Finance.AdvancePayments;
+
+using Microsoft.Finance.VAT.Setup;
+
+codeunit 11731 "Alt. Cust. VAT Reg. Orch. CZZ"
+{
+ Access = Internal;
+ InherentEntitlements = X;
+ InherentPermissions = X;
+
+ procedure GetAltCustVATRegDocImpl(): Interface "Alt. Cust. VAT Reg. Adv. CZZ"
+ var
+ VATSetup: Record "VAT Setup";
+ begin
+ exit(VATSetup.Get() ? VATSetup."Alt. Cust. VAT Reg. Adv. CZZ" : "Alt. Cust. VAT Reg. Adv. CZZ"::Default);
+ end;
+}
\ No newline at end of file
diff --git a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Codeunits/CrossApplicationHandlerCZZ.Codeunit.al b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Codeunits/CrossApplicationHandlerCZZ.Codeunit.al
index 912164624d..2d215248ca 100644
--- a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Codeunits/CrossApplicationHandlerCZZ.Codeunit.al
+++ b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Codeunits/CrossApplicationHandlerCZZ.Codeunit.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -11,13 +11,7 @@ using System.Utilities;
codeunit 31418 "Cross Application Handler CZZ"
{
-#if not CLEAN25
- ObsoleteState = Pending;
- ObsoleteReason = 'The Access property will be changed to Internal.';
- ObsoleteTag = '25.0';
-#else
Access = Internal;
-#endif
var
ConfirmManagement: Codeunit "Confirm Management";
@@ -134,4 +128,4 @@ codeunit 31418 "Cross Application Handler CZZ"
if not ConfirmManagement.GetResponseOrDefault(StrSubstNo(SuggestedAmountToApplyQst, CashDocumentLineCZP."Advance Letter No. CZZ"), false) then
Error('');
end;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Codeunits/PurchAdvLetterManagementCZZ.Codeunit.al b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Codeunits/PurchAdvLetterManagementCZZ.Codeunit.al
index 502f3cc9c3..1033ef8ce1 100644
--- a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Codeunits/PurchAdvLetterManagementCZZ.Codeunit.al
+++ b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Codeunits/PurchAdvLetterManagementCZZ.Codeunit.al
@@ -299,20 +299,6 @@ codeunit 31019 "PurchAdvLetterManagement CZZ"
PurchAdvLetterPostCZZ.PostAdvancePayment(
VendorLedgerEntry, PostedGenJournalLine, GenJnlPostLine, AdvancePostingParametersCZZ);
end;
-#if not CLEAN25
- [Obsolete('Replaced by GetAdvanceGLAccountNoCZZ function in GenJournalLine.', '25.0')]
- procedure GetAdvanceGLAccount(var GenJournalLine: Record "Gen. Journal Line"): Code[20]
- var
- PurchAdvLetterHeaderCZZ: Record "Purch. Adv. Letter Header CZZ";
- AdvanceLetterTemplateCZZ: Record "Advance Letter Template CZZ";
- begin
- PurchAdvLetterHeaderCZZ.Get(GenJournalLine."Adv. Letter No. (Entry) CZZ");
- PurchAdvLetterHeaderCZZ.TestField("Advance Letter Code");
- AdvanceLetterTemplateCZZ.Get(PurchAdvLetterHeaderCZZ."Advance Letter Code");
- AdvanceLetterTemplateCZZ.TestField("Advance Letter G/L Account");
- exit(AdvanceLetterTemplateCZZ."Advance Letter G/L Account");
- end;
-#endif
procedure PostAdvancePaymentVAT(var PurchAdvLetterEntryCZZ: Record "Purch. Adv. Letter Entry CZZ")
begin
diff --git a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Codeunits/PurchAdvLetterPostCZZ.Codeunit.al b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Codeunits/PurchAdvLetterPostCZZ.Codeunit.al
index 6c3755d598..f6c279848a 100644
--- a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Codeunits/PurchAdvLetterPostCZZ.Codeunit.al
+++ b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Codeunits/PurchAdvLetterPostCZZ.Codeunit.al
@@ -2230,11 +2230,6 @@ codeunit 31142 "Purch. Adv. Letter-Post CZZ"
GenJournalLine."Source Currency Code" := DetailedVendorLedgEntry1."Currency Code";
GenJournalLine."System-Created Entry" := true;
OnUnapplyVendLedgEntryOnBeforeUnapplyVendLedgEntry(VendorLedgerEntry, DetailedVendorLedgEntry1, GenJournalLine);
-#if not CLEAN25
-#pragma warning disable AL0432
- OnUnapplyVendLedgEntryOnBeforePostUnapplyVendLedgEntry(VendorLedgerEntry, DetailedVendorLedgEntry1, GenJournalLine);
-#pragma warning restore AL0432
-#endif
GenJnlPostLine.UnapplyVendLedgEntry(GenJournalLine, DetailedVendorLedgEntry1);
end else
Succes := true;
@@ -2857,13 +2852,6 @@ codeunit 31142 "Purch. Adv. Letter-Post CZZ"
local procedure OnAfterInitGenJournalLineFromVendorLedgerEntry(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var GenJournalLine: Record "Gen. Journal Line")
begin
end;
-#if not CLEAN25
- [Obsolete('Replaced by OnUnapplyVendLedgEntryOnBeforeUnapplyVendLedgEntry event.', '25.0')]
- [IntegrationEvent(false, false)]
- local procedure OnUnapplyVendLedgEntryOnBeforePostUnapplyVendLedgEntry(var VendorLedgerEntry: Record "Vendor Ledger Entry"; DetailedVendorLedgEntry1: Record "Detailed Vendor Ledg. Entry"; GenJournalLine: Record "Gen. Journal Line")
- begin
- end;
-#endif
[IntegrationEvent(false, false)]
local procedure OnUnapplyVendLedgEntryOnBeforeUnapplyVendLedgEntry(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var DetailedVendorLedgEntry: Record "Detailed Vendor Ledg. Entry"; var GenJournalLine: Record "Gen. Journal Line")
diff --git a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Codeunits/SalesAdvLetterManagementCZZ.Codeunit.al b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Codeunits/SalesAdvLetterManagementCZZ.Codeunit.al
index 46409c93f8..bcd3e288a1 100644
--- a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Codeunits/SalesAdvLetterManagementCZZ.Codeunit.al
+++ b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Codeunits/SalesAdvLetterManagementCZZ.Codeunit.al
@@ -310,20 +310,6 @@ codeunit 31002 "SalesAdvLetterManagement CZZ"
InsertedEntryNo := SalesAdvLetterPostCZZ.PostAdvancePayment(
CustLedgerEntry, PostedGenJournalLine, GenJnlPostLine, AdvancePostingParametersCZZ);
end;
-#if not CLEAN25
- [Obsolete('Replaced by GetAdvanceGLAccountNoCZZ function in GenJournalLine.', '25.0')]
- procedure GetAdvanceGLAccount(var GenJournalLine: Record "Gen. Journal Line"): Code[20]
- var
- SalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ";
- AdvanceLetterTemplateCZZ: Record "Advance Letter Template CZZ";
- begin
- SalesAdvLetterHeaderCZZ.Get(GenJournalLine."Adv. Letter No. (Entry) CZZ");
- SalesAdvLetterHeaderCZZ.TestField("Advance Letter Code");
- AdvanceLetterTemplateCZZ.Get(SalesAdvLetterHeaderCZZ."Advance Letter Code");
- AdvanceLetterTemplateCZZ.TestField("Advance Letter G/L Account");
- exit(AdvanceLetterTemplateCZZ."Advance Letter G/L Account");
- end;
-#endif
procedure PostAdvancePaymentVAT(var SalesAdvLetterEntryCZZ: Record "Sales Adv. Letter Entry CZZ"; PostingDate: Date)
begin
diff --git a/Apps/W1/OnPrem Permissions/app/Permissions/smtpsetup.permissionset.al b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Enums/AltCustVATRegAdvCZZ.Enum.al
similarity index 56%
rename from Apps/W1/OnPrem Permissions/app/Permissions/smtpsetup.permissionset.al
rename to Apps/CZ/AdvancePaymentsLocalization/app/Src/Enums/AltCustVATRegAdvCZZ.Enum.al
index 2f22a112b7..f46d70bc49 100644
--- a/Apps/W1/OnPrem Permissions/app/Permissions/smtpsetup.permissionset.al
+++ b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Enums/AltCustVATRegAdvCZZ.Enum.al
@@ -2,14 +2,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
-#pragma warning disable AA0247
+namespace Microsoft.Finance.AdvancePayments;
-permissionset 2271 "SMTP-SETUP"
+enum 11703 "Alt. Cust. VAT Reg. Adv. CZZ" implements "Alt. Cust. VAT Reg. Adv. CZZ"
{
- Access = Public;
- Assignable = true;
- Caption = 'SMTP Mail Setup';
- ObsoleteTag = '20.0';
- ObsoleteState = Pending;
- ObsoleteReason = '"SMTP Mail - Admin" has been removed.';
-}
+ Extensible = true;
+ DefaultImplementation = "Alt. Cust. VAT Reg. Adv. CZZ" = "Alt. Cust. VAT Reg. Impl. CZZ";
+
+ value(0; Default)
+ {
+ }
+}
\ No newline at end of file
diff --git a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Interfaces/AltCustVATRegAdvCZZ.Interface.al b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Interfaces/AltCustVATRegAdvCZZ.Interface.al
new file mode 100644
index 0000000000..3db64fea1c
--- /dev/null
+++ b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Interfaces/AltCustVATRegAdvCZZ.Interface.al
@@ -0,0 +1,34 @@
+// ------------------------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// ------------------------------------------------------------------------------------------------
+namespace Microsoft.Finance.AdvancePayments;
+
+///
+/// The interfaces provides methods to handle the alternative customer VAT registration in the advance letter.
+///
+interface "Alt. Cust. VAT Reg. Adv. CZZ"
+{
+ Access = Public;
+
+ ///
+ /// Initializes the VAT registration data taken from the alternative customer registration in the sales advance letter header.
+ ///
+ /// The current sales advance letter header record
+ /// The previous version of the record
+ procedure Init(var SalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ"; xSalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ")
+
+ ///
+ /// Copies the VAT registration data from the customer to the sales advance letter header.
+ ///
+ /// The current sales advance letter header record
+ /// The previous version of the record
+ procedure CopyFromCustomer(var SalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ"; xSalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ")
+
+ ///
+ /// Updates the VAT registration data when the VAT Country/Region Code is changed in the sales advance letter header.
+ ///
+ /// The current sales advance letter header record
+ /// The previous version of the record
+ procedure UpdateSetupOnVATCountryChangeInSalesAdvLetterHeader(var SalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ"; xSalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ")
+}
\ No newline at end of file
diff --git a/Apps/CZ/AdvancePaymentsLocalization/app/Src/PageExtensions/PurchaseInvoiceCZZ.PageExt.al b/Apps/CZ/AdvancePaymentsLocalization/app/Src/PageExtensions/PurchaseInvoiceCZZ.PageExt.al
index 856392f74d..026cae9704 100644
--- a/Apps/CZ/AdvancePaymentsLocalization/app/Src/PageExtensions/PurchaseInvoiceCZZ.PageExt.al
+++ b/Apps/CZ/AdvancePaymentsLocalization/app/Src/PageExtensions/PurchaseInvoiceCZZ.PageExt.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -13,18 +13,6 @@ pageextension 31039 "Purchase Invoice CZZ" extends "Purchase Invoice"
{
addlast(factboxes)
{
-#if not CLEAN25
- part("Purch. Adv. Usage FactBox CZZ"; "Purch. Adv. Usage FactBox CZZ")
- {
- ApplicationArea = Basic, Suite;
- Provider = PurchLines;
- SubPageLink = "Document Type" = field("Document Type"), "Document No." = field("Document No."), "Line No." = field("Line No.");
- Visible = false;
- ObsoleteState = Pending;
- ObsoleteReason = 'Replaced by "Advance Usage FactBox CZZ"';
- ObsoleteTag = '25.0';
- }
-#endif
part(AdvanceUsageFactBoxCZZ; "Advance Usage FactBox CZZ")
{
ApplicationArea = Basic, Suite;
@@ -84,4 +72,4 @@ pageextension 31039 "Purchase Invoice CZZ" extends "Purchase Invoice"
if GuiAllowed() then
CurrPage.AdvanceUsageFactBoxCZZ.Page.SetDocument(Rec);
end;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/AdvancePaymentsLocalization/app/Src/PageExtensions/PurchaseOrderCZZ.PageExt.al b/Apps/CZ/AdvancePaymentsLocalization/app/Src/PageExtensions/PurchaseOrderCZZ.PageExt.al
index b5a249f15c..db2f9f1a5d 100644
--- a/Apps/CZ/AdvancePaymentsLocalization/app/Src/PageExtensions/PurchaseOrderCZZ.PageExt.al
+++ b/Apps/CZ/AdvancePaymentsLocalization/app/Src/PageExtensions/PurchaseOrderCZZ.PageExt.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -26,18 +26,6 @@ pageextension 31037 "Purchase Order CZZ" extends "Purchase Order"
}
addlast(factboxes)
{
-#if not CLEAN25
- part("Purch. Adv. Usage FactBox CZZ"; "Purch. Adv. Usage FactBox CZZ")
- {
- ApplicationArea = Basic, Suite;
- Provider = PurchLines;
- SubPageLink = "Document Type" = field("Document Type"), "Document No." = field("Document No."), "Line No." = field("Line No.");
- Visible = false;
- ObsoleteState = Pending;
- ObsoleteReason = 'Replaced by "Advance Usage FactBox CZZ"';
- ObsoleteTag = '25.0';
- }
-#endif
part(AdvanceUsageFactBoxCZZ; "Advance Usage FactBox CZZ")
{
ApplicationArea = Basic, Suite;
@@ -126,4 +114,4 @@ pageextension 31037 "Purchase Order CZZ" extends "Purchase Order"
if GuiAllowed() then
CurrPage.AdvanceUsageFactBoxCZZ.Page.SetDocument(Rec);
end;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/AdvancePaymentsLocalization/app/Src/PageExtensions/SalesInvoiceCZZ.PageExt.al b/Apps/CZ/AdvancePaymentsLocalization/app/Src/PageExtensions/SalesInvoiceCZZ.PageExt.al
index 04719299c1..e43f4df257 100644
--- a/Apps/CZ/AdvancePaymentsLocalization/app/Src/PageExtensions/SalesInvoiceCZZ.PageExt.al
+++ b/Apps/CZ/AdvancePaymentsLocalization/app/Src/PageExtensions/SalesInvoiceCZZ.PageExt.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -13,18 +13,6 @@ pageextension 31027 "Sales Invoice CZZ" extends "Sales Invoice"
{
addlast(factboxes)
{
-#if not CLEAN25
- part("Sales Adv. Usage FactBox CZZ"; "Sales Adv. Usage FactBox CZZ")
- {
- ApplicationArea = Basic, Suite;
- Provider = SalesLines;
- SubPageLink = "Document Type" = field("Document Type"), "Document No." = field("Document No."), "Line No." = field("Line No.");
- Visible = false;
- ObsoleteState = Pending;
- ObsoleteReason = 'Replaced by "Advance Usage FactBox CZZ"';
- ObsoleteTag = '25.0';
- }
-#endif
part(AdvanceUsageFactBoxCZZ; "Advance Usage FactBox CZZ")
{
ApplicationArea = Basic, Suite;
@@ -83,4 +71,4 @@ pageextension 31027 "Sales Invoice CZZ" extends "Sales Invoice"
if GuiAllowed() then
CurrPage.AdvanceUsageFactBoxCZZ.Page.SetDocument(Rec);
end;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/AdvancePaymentsLocalization/app/Src/PageExtensions/SalesOrderCZZ.PageExt.al b/Apps/CZ/AdvancePaymentsLocalization/app/Src/PageExtensions/SalesOrderCZZ.PageExt.al
index b4a9deab85..5273017c71 100644
--- a/Apps/CZ/AdvancePaymentsLocalization/app/Src/PageExtensions/SalesOrderCZZ.PageExt.al
+++ b/Apps/CZ/AdvancePaymentsLocalization/app/Src/PageExtensions/SalesOrderCZZ.PageExt.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -50,18 +50,6 @@ pageextension 31023 "Sales Order CZZ" extends "Sales Order"
}
addlast(factboxes)
{
-#if not CLEAN25
- part("Sales Adv. Usage FactBox CZZ"; "Sales Adv. Usage FactBox CZZ")
- {
- ApplicationArea = Basic, Suite;
- Provider = SalesLines;
- SubPageLink = "Document Type" = field("Document Type"), "Document No." = field("Document No."), "Line No." = field("Line No.");
- Visible = false;
- ObsoleteState = Pending;
- ObsoleteReason = 'Replaced by "Advance Usage FactBox CZZ"';
- ObsoleteTag = '25.0';
- }
-#endif
part(AdvanceUsageFactBoxCZZ; "Advance Usage FactBox CZZ")
{
ApplicationArea = Basic, Suite;
@@ -154,4 +142,4 @@ pageextension 31023 "Sales Order CZZ" extends "Sales Order"
if GuiAllowed() then
CurrPage.AdvanceUsageFactBoxCZZ.Page.SetDocument(Rec);
end;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Pages/PurchAdvUsageFactBoxCZZ.Page.al b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Pages/PurchAdvUsageFactBoxCZZ.Page.al
deleted file mode 100644
index e1e1f05657..0000000000
--- a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Pages/PurchAdvUsageFactBoxCZZ.Page.al
+++ /dev/null
@@ -1,161 +0,0 @@
-#if not CLEAN25
-// ------------------------------------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for license information.
-// ------------------------------------------------------------------------------------------------
-namespace Microsoft.Finance.AdvancePayments;
-
-using Microsoft.Finance.VAT.Calculation;
-using Microsoft.Purchases.Document;
-using Microsoft.Purchases.Posting;
-
-page 31189 "Purch. Adv. Usage FactBox CZZ"
-{
- Caption = 'Purchase Advance Usage';
- PageType = CardPart;
- SourceTable = "Purchase Line";
- ObsoleteState = Pending;
- ObsoleteReason = 'This page will be removed in a future release. Use the "Advance Usage FactBox CZZ" page instead.';
- ObsoleteTag = '25.0';
-
- layout
- {
- area(Content)
- {
- field(AdvanceCount; AdvanceCount)
- {
- ApplicationArea = Basic, Suite;
- Caption = 'Advances Count';
- ToolTip = 'Specifies advances count.';
- DrillDown = true;
-
- trigger OnDrillDown()
- var
- PurchAdvLetterManagement: Codeunit "PurchAdvLetterManagement CZZ";
- begin
- PurchAdvLetterManagement.LinkAdvanceLetter(
- PurchaseHeader.GetAdvLetterUsageDocTypeCZZ(), PurchaseHeader."No.", PurchaseHeader."Pay-to Vendor No.",
- PurchaseHeader."Posting Date", PurchaseHeader."Currency Code");
- CurrPage.Update();
- end;
- }
- field(AdvanceAmountToUse; AdvanceAmountToUse)
- {
- ApplicationArea = Basic, Suite;
- Caption = 'Advances Amount to Use';
- ToolTip = 'Specifies advances total amount to use.';
- }
- field(AdvanceAmountToUseLCY; AdvanceAmountToUseLCY)
- {
- ApplicationArea = Basic, Suite;
- Caption = 'Advances Amount to Use (LCY)';
- ToolTip = 'Specifies advances total amount (LCY) to use.';
- Visible = false;
- }
- field(AdvanceAmount; AdvanceAmountAssigned)
- {
- ApplicationArea = Basic, Suite;
- Caption = 'Advances Amount Assigned';
- ToolTip = 'Specifies advances assigned amount.';
- }
- field(AdvanceAmountLCY; AdvanceAmountAssignedLCY)
- {
- ApplicationArea = Basic, Suite;
- Caption = 'Advances Amount Assigned (LCY)';
- ToolTip = 'Specifies advances assigned amount (LCY).';
- Visible = false;
- }
- field(DocumentAmount; TotalAmountInclVAT - AdvanceAmountAssigned)
- {
- ApplicationArea = Basic, Suite;
- Caption = 'Amount with Advance Letters';
- ToolTip = 'Specifies total amount with advance letters.';
- Style = Strong;
- }
- field(AdvanceVATLineCount; AdvanceVATLineCount)
- {
- ApplicationArea = Basic, Suite;
- Caption = 'Advances VAT Lines Count';
- ToolTip = 'Specifies advances VAT lines count.';
- DrillDown = true;
-
- trigger OnDrillDown()
- begin
- Page.RunModal(Page::"Pur. Adv. Letter Ent.Prev. CZZ", TempPurchAdvLetterEntryCZZ);
- end;
- }
- }
- }
-
- var
- TempPurchAdvLetterEntryCZZ: Record "Purch. Adv. Letter Entry CZZ" temporary;
- PurchaseHeader: Record "Purchase Header";
- PurchAdvLetterManagementCZZ: Codeunit "PurchAdvLetterManagement CZZ";
- AdvanceCount, AdvanceVATLineCount : Integer;
- AdvanceAmountAssigned, AdvanceAmountAssignedLCY, AdvanceAmountToUse, AdvanceAmountToUseLCY, TotalAmountInclVAT : Decimal;
-
- trigger OnAfterGetCurrRecord()
- var
- AdvanceLetterApplication: Record "Advance Letter Application CZZ";
- TempAdvanceLetterApplication: Record "Advance Letter Application CZZ" temporary;
- TempPurchaseLine: Record "Purchase Line" temporary;
- TempVATAmountLine: Record "VAT Amount Line" temporary;
- PurchPost: Codeunit "Purch.-Post";
- CurrFactor: Decimal;
- IsHandled: Boolean;
- begin
- OnBeforeOnAfterGetCurrRecord(Rec, IsHandled);
- if IsHandled then
- exit;
-
- if (not (Rec."Document Type" in [Rec."Document Type"::Order, Rec."Document Type"::Invoice])) or (Rec."Document No." = '') then begin
- AdvanceCount := 0;
- AdvanceVATLineCount := 0;
- AdvanceAmountAssigned := 0;
- AdvanceAmountAssignedLCY := 0;
- TotalAmountInclVAT := 0;
- if not TempPurchAdvLetterEntryCZZ.IsEmpty() then
- TempPurchAdvLetterEntryCZZ.DeleteAll();
- Clear(PurchaseHeader);
- exit;
- end;
-
- PurchaseHeader.Get(Rec."Document Type", Rec."Document No.");
- AdvanceLetterApplication.GetAssignedAdvance(
- PurchaseHeader.GetAdvLetterUsageDocTypeCZZ(), PurchaseHeader."No.", TempAdvanceLetterApplication);
-
- CurrFactor := PurchaseHeader."Currency Factor";
- if CurrFactor = 0 then
- CurrFactor := 1;
-
- PurchPost.GetPurchLines(PurchaseHeader, TempPurchaseLine, 1);
- TempPurchaseLine.CalcVATAmountLines(1, PurchaseHeader, TempPurchaseLine, TempVATAmountLine);
- TotalAmountInclVAT := TempVATAmountLine.GetTotalAmountInclVAT();
-
- AdvanceCount := TempAdvanceLetterApplication.Count();
- TempAdvanceLetterApplication.CalcSums(Amount, "Amount to Use");
- if TempAdvanceLetterApplication.Amount <= TotalAmountInclVAT then
- AdvanceAmountAssigned := TempAdvanceLetterApplication.Amount
- else
- AdvanceAmountAssigned := TotalAmountInclVAT;
- if TempAdvanceLetterApplication."Amount to Use" <= TotalAmountInclVAT then
- AdvanceAmountToUse := TempAdvanceLetterApplication."Amount to Use"
- else
- AdvanceAmountToUse := TotalAmountInclVAT;
- AdvanceAmountAssignedLCY := Round(AdvanceAmountAssigned / CurrFactor);
- AdvanceAmountToUseLCY := Round(AdvanceAmountToUse / CurrFactor);
-
- PurchAdvLetterManagementCZZ.PostAdvancePaymentUsagePreview(PurchaseHeader, AdvanceAmountAssigned, AdvanceAmountAssignedLCY, TempPurchAdvLetterEntryCZZ);
- TempPurchAdvLetterEntryCZZ.SetFilter("Entry Type", '<>%1&<>%2&<>%3', TempPurchAdvLetterEntryCZZ."Entry Type"::"VAT Usage",
- TempPurchAdvLetterEntryCZZ."Entry Type"::"VAT Rate", TempPurchAdvLetterEntryCZZ."Entry Type"::"VAT Adjustment");
- TempPurchAdvLetterEntryCZZ.DeleteAll();
- TempPurchAdvLetterEntryCZZ.Reset();
- AdvanceVATLineCount := TempPurchAdvLetterEntryCZZ.Count();
- end;
-
- [IntegrationEvent(false, false)]
- local procedure OnBeforeOnAfterGetCurrRecord(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
- begin
- end;
-}
-#endif
\ No newline at end of file
diff --git a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Pages/PurchAdvanceLetterCZZ.Page.al b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Pages/PurchAdvanceLetterCZZ.Page.al
index 5118c56b29..97f2004fc6 100644
--- a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Pages/PurchAdvanceLetterCZZ.Page.al
+++ b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Pages/PurchAdvanceLetterCZZ.Page.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -223,17 +223,6 @@ page 31181 "Purch. Advance Letter CZZ"
ApplicationArea = Basic, Suite;
ToolTip = 'Specifies if post VAT usage automatically.';
}
-#if not CLEAN25
- field("Amount on Iss. Payment Order"; "Amount on Iss. Payment Order")
- {
- ApplicationArea = Basic, Suite;
- ToolTip = 'Specifies amount on issued payment order.';
- Visible = false;
- ObsoleteState = Pending;
- ObsoleteReason = 'This field is obsolete and will be removed in a future release. The CalcSuggestedAmountToApply function should be used instead.';
- ObsoleteTag = '25.0';
- }
-#endif
field(SuggestedAmountToApplyCZL; Rec.CalcSuggestedAmountToApply())
{
Caption = 'Suggested Amount to Apply (LCY)';
@@ -421,17 +410,6 @@ page 31181 "Purch. Advance Letter CZZ"
ApplicationArea = Basic, Suite;
SubPageLink = "No." = field("Pay-to Vendor No.");
}
-#if not CLEAN25
- part("Attached Documents"; "Document Attachment Factbox")
- {
- ObsoleteTag = '25.0';
- ObsoleteState = Pending;
- ObsoleteReason = 'The "Document Attachment FactBox" has been replaced by "Doc. Attachment List Factbox", which supports multiple files upload.';
- ApplicationArea = Basic, Suite;
- Caption = 'Attachments';
- SubPageLink = "Table ID" = const(Database::"Purch. Adv. Letter Header CZZ"), "No." = field("No.");
- }
-#endif
part("Attached Documents List"; "Doc. Attachment List Factbox")
{
ApplicationArea = Basic, Suite;
@@ -958,4 +936,4 @@ page 31181 "Purch. Advance Letter CZZ"
OpenApprovalEntriesExistForCurrUser := ApprovalsMgmt.HasOpenApprovalEntriesForCurrentUser(Rec.RecordId);
OpenApprovalEntriesExist := ApprovalsMgmt.HasOpenApprovalEntries(Rec.RecordId);
end;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Pages/PurchAdvanceLettersCZZ.Page.al b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Pages/PurchAdvanceLettersCZZ.Page.al
index 06b96ed175..4299638c8a 100644
--- a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Pages/PurchAdvanceLettersCZZ.Page.al
+++ b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Pages/PurchAdvanceLettersCZZ.Page.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -164,17 +164,6 @@ page 31180 "Purch. Advance Letters CZZ"
ToolTip = 'Specifies whether VAT document will be posted automatically.';
Visible = false;
}
-#if not CLEAN25
- field("Amount on Iss. Payment Order"; "Amount on Iss. Payment Order")
- {
- ApplicationArea = Basic, Suite;
- ToolTip = 'Specifies amount on issued payment order.';
- Visible = false;
- ObsoleteState = Pending;
- ObsoleteReason = 'This field is obsolete and will be removed in a future release. The CalcSuggestedAmountToApply function should be used instead.';
- ObsoleteTag = '25.0';
- }
-#endif
field(SuggestedAmountToApplyCZL; Rec.CalcSuggestedAmountToApply())
{
Caption = 'Suggested Amount to Apply (LCY)';
@@ -220,17 +209,6 @@ page 31180 "Purch. Advance Letters CZZ"
ApplicationArea = Basic, Suite;
SubPageLink = "No." = field("Pay-to Vendor No.");
}
-#if not CLEAN25
- part("Attached Documents"; "Document Attachment Factbox")
- {
- ObsoleteTag = '25.0';
- ObsoleteState = Pending;
- ObsoleteReason = 'The "Document Attachment FactBox" has been replaced by "Doc. Attachment List Factbox", which supports multiple files upload.';
- ApplicationArea = Basic, Suite;
- Caption = 'Attachments';
- SubPageLink = "Table ID" = const(Database::"Purch. Adv. Letter Header CZZ"), "No." = field("No.");
- }
-#endif
part("Attached Documents List"; "Doc. Attachment List Factbox")
{
ApplicationArea = Basic, Suite;
@@ -498,4 +476,4 @@ page 31180 "Purch. Advance Letters CZZ"
begin
CurrPage.IncomingDocAttachFactBox.Page.LoadDataFromRecord(Rec);
end;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Pages/SalesAdvUsageFactBoxCZZ.Page.al b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Pages/SalesAdvUsageFactBoxCZZ.Page.al
deleted file mode 100644
index 7ca5ea2925..0000000000
--- a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Pages/SalesAdvUsageFactBoxCZZ.Page.al
+++ /dev/null
@@ -1,161 +0,0 @@
-#if not CLEAN25
-// ------------------------------------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for license information.
-// ------------------------------------------------------------------------------------------------
-namespace Microsoft.Finance.AdvancePayments;
-
-using Microsoft.Finance.VAT.Calculation;
-using Microsoft.Sales.Document;
-using Microsoft.Sales.Posting;
-
-page 31187 "Sales Adv. Usage FactBox CZZ"
-{
- Caption = 'Sales Advance Usage';
- PageType = CardPart;
- SourceTable = "Sales Line";
- ObsoleteState = Pending;
- ObsoleteReason = 'This page will be removed in a future release. Use the "Advance Usage FactBox CZZ" page instead.';
- ObsoleteTag = '25.0';
-
- layout
- {
- area(Content)
- {
- field(AdvanceCount; AdvanceCount)
- {
- ApplicationArea = Basic, Suite;
- Caption = 'Advances Count';
- ToolTip = 'Specifies advances count.';
- DrillDown = true;
-
- trigger OnDrillDown()
- var
- SalesAdvLetterManagement: Codeunit "SalesAdvLetterManagement CZZ";
- begin
- SalesAdvLetterManagement.LinkAdvanceLetter(
- SalesHeader.GetAdvLetterUsageDocTypeCZZ(), SalesHeader."No.", SalesHeader."Bill-to Customer No.",
- SalesHeader."Posting Date", SalesHeader."Currency Code");
- CurrPage.Update();
- end;
- }
- field(AdvanceAmountToUse; AdvanceAmountToUse)
- {
- ApplicationArea = Basic, Suite;
- Caption = 'Advances Amount to Use';
- ToolTip = 'Specifies advances total amount to use.';
- }
- field(AdvanceAmountToUseLCY; AdvanceAmountToUseLCY)
- {
- ApplicationArea = Basic, Suite;
- Caption = 'Advances Amount to Use (LCY)';
- ToolTip = 'Specifies advances total amount (LCY) to use.';
- Visible = false;
- }
- field(AdvanceAmount; AdvanceAmountAssigned)
- {
- ApplicationArea = Basic, Suite;
- Caption = 'Advances Amount';
- ToolTip = 'Specifies advances assigned amount.';
- }
- field(AdvanceAmountLCY; AdvanceAmountAssignedLCY)
- {
- ApplicationArea = Basic, Suite;
- Caption = 'Advances Amount (LCY)';
- ToolTip = 'Specifies advances assigned amount (LCY).';
- Visible = false;
- }
- field(DocumentAmount; TotalAmountInclVAT - AdvanceAmountAssigned)
- {
- ApplicationArea = Basic, Suite;
- Caption = 'Amount with Advance Letters';
- ToolTip = 'Specifies total amount with advance letters.';
- Style = Strong;
- }
- field(AdvanceVATLineCount; AdvanceVATLineCount)
- {
- ApplicationArea = Basic, Suite;
- Caption = 'Advances VAT Lines Count';
- ToolTip = 'Specifies advances VAT lines count.';
- DrillDown = true;
-
- trigger OnDrillDown()
- begin
- Page.RunModal(Page::"Sal. Adv. Letter Ent.Prev. CZZ", TempSalesAdvLetterEntryCZZ);
- end;
- }
- }
- }
-
- var
- TempSalesAdvLetterEntryCZZ: Record "Sales Adv. Letter Entry CZZ" temporary;
- SalesHeader: Record "Sales Header";
- SalesAdvLetterManagementCZZ: Codeunit "SalesAdvLetterManagement CZZ";
- AdvanceCount, AdvanceVATLineCount : Integer;
- AdvanceAmountAssigned, AdvanceAmountAssignedLCY, AdvanceAmountToUse, AdvanceAmountToUseLCY, TotalAmountInclVAT : Decimal;
-
- trigger OnAfterGetCurrRecord()
- var
- AdvanceLetterApplication: Record "Advance Letter Application CZZ";
- TempAdvanceLetterApplication: Record "Advance Letter Application CZZ" temporary;
- TempSalesLine: Record "Sales Line" temporary;
- TempVATAmountLine: Record "VAT Amount Line" temporary;
- SalesPost: Codeunit "Sales-Post";
- CurrFactor: Decimal;
- IsHandled: Boolean;
- begin
- OnBeforeOnAfterGetCurrRecord(Rec, IsHandled);
- if IsHandled then
- exit;
-
- if (not (Rec."Document Type" in [Rec."Document Type"::Order, Rec."Document Type"::Invoice])) or (Rec."Document No." = '') then begin
- AdvanceCount := 0;
- AdvanceVATLineCount := 0;
- AdvanceAmountAssigned := 0;
- AdvanceAmountAssignedLCY := 0;
- TotalAmountInclVAT := 0;
- if not TempSalesAdvLetterEntryCZZ.IsEmpty() then
- TempSalesAdvLetterEntryCZZ.DeleteAll();
- Clear(SalesHeader);
- exit;
- end;
-
- SalesHeader.Get(Rec."Document Type", Rec."Document No.");
- AdvanceLetterApplication.GetAssignedAdvance(
- SalesHeader.GetAdvLetterUsageDocTypeCZZ(), SalesHeader."No.", TempAdvanceLetterApplication);
-
- CurrFactor := SalesHeader."Currency Factor";
- if CurrFactor = 0 then
- CurrFactor := 1;
-
- SalesPost.GetSalesLines(SalesHeader, TempSalesLine, 1);
- TempSalesLine.CalcVATAmountLines(1, SalesHeader, TempSalesLine, TempVATAmountLine);
- TotalAmountInclVAT := TempVATAmountLine.GetTotalAmountInclVAT();
-
- AdvanceCount := TempAdvanceLetterApplication.Count();
- TempAdvanceLetterApplication.CalcSums(Amount, "Amount to Use");
- if TempAdvanceLetterApplication.Amount <= TotalAmountInclVAT then
- AdvanceAmountAssigned := TempAdvanceLetterApplication.Amount
- else
- AdvanceAmountAssigned := TotalAmountInclVAT;
- if TempAdvanceLetterApplication."Amount to Use" <= TotalAmountInclVAT then
- AdvanceAmountToUse := TempAdvanceLetterApplication."Amount to Use"
- else
- AdvanceAmountToUse := TotalAmountInclVAT;
- AdvanceAmountAssignedLCY := Round(AdvanceAmountAssigned / CurrFactor);
- AdvanceAmountToUseLCY := Round(AdvanceAmountToUse / CurrFactor);
-
- SalesAdvLetterManagementCZZ.PostAdvancePaymentUsagePreview(SalesHeader, AdvanceAmountAssigned, AdvanceAmountAssignedLCY, TempSalesAdvLetterEntryCZZ);
- TempSalesAdvLetterEntryCZZ.SetFilter("Entry Type", '<>%1&<>%2&<>%3', TempSalesAdvLetterEntryCZZ."Entry Type"::"VAT Usage",
- TempSalesAdvLetterEntryCZZ."Entry Type"::"VAT Rate", TempSalesAdvLetterEntryCZZ."Entry Type"::"VAT Adjustment");
- TempSalesAdvLetterEntryCZZ.DeleteAll();
- TempSalesAdvLetterEntryCZZ.Reset();
- AdvanceVATLineCount := TempSalesAdvLetterEntryCZZ.Count();
- end;
-
- [IntegrationEvent(false, false)]
- local procedure OnBeforeOnAfterGetCurrRecord(var SalesLine: Record "Sales Line"; var IsHandled: Boolean)
- begin
- end;
-}
-#endif
\ No newline at end of file
diff --git a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Pages/SalesAdvanceLetterCZZ.Page.al b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Pages/SalesAdvanceLetterCZZ.Page.al
index 32daa30d34..716453f6e7 100644
--- a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Pages/SalesAdvanceLetterCZZ.Page.al
+++ b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Pages/SalesAdvanceLetterCZZ.Page.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -207,6 +207,7 @@ page 31171 "Sales Advance Letter CZZ"
{
ApplicationArea = Basic, Suite;
ToolTip = 'Specifies the country or region of VAT.';
+ Importance = Additional;
}
field("Automatic Post VAT Document"; Rec."Automatic Post VAT Document")
{
@@ -382,17 +383,6 @@ page 31171 "Sales Advance Letter CZZ"
ApplicationArea = Basic, Suite;
SubPageLink = "No." = field("Bill-to Customer No.");
}
-#if not CLEAN25
- part("Attached Documents"; "Document Attachment Factbox")
- {
- ObsoleteTag = '25.0';
- ObsoleteState = Pending;
- ObsoleteReason = 'The "Document Attachment FactBox" has been replaced by "Doc. Attachment List Factbox", which supports multiple files upload.';
- ApplicationArea = Basic, Suite;
- Caption = 'Attachments';
- SubPageLink = "Table ID" = const(Database::"Sales Adv. Letter Header CZZ"), "No." = field("No.");
- }
-#endif
part("Attached Documents List"; "Doc. Attachment List Factbox")
{
ApplicationArea = Basic, Suite;
@@ -930,4 +920,4 @@ page 31171 "Sales Advance Letter CZZ"
OpenApprovalEntriesExistForCurrUser := ApprovalsMgmt.HasOpenApprovalEntriesForCurrentUser(Rec.RecordId);
OpenApprovalEntriesExist := ApprovalsMgmt.HasOpenApprovalEntries(Rec.RecordId);
end;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Pages/SalesAdvanceLettersCZZ.Page.al b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Pages/SalesAdvanceLettersCZZ.Page.al
index 7692355b3c..7c546e83f0 100644
--- a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Pages/SalesAdvanceLettersCZZ.Page.al
+++ b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Pages/SalesAdvanceLettersCZZ.Page.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -189,17 +189,6 @@ page 31170 "Sales Advance Letters CZZ"
ApplicationArea = Basic, Suite;
SubPageLink = "No." = field("Bill-to Customer No.");
}
-#if not CLEAN25
- part("Attached Documents"; "Document Attachment Factbox")
- {
- ObsoleteTag = '25.0';
- ObsoleteState = Pending;
- ObsoleteReason = 'The "Document Attachment FactBox" has been replaced by "Doc. Attachment List Factbox", which supports multiple files upload.';
- ApplicationArea = Basic, Suite;
- Caption = 'Attachments';
- SubPageLink = "Table ID" = const(Database::"Sales Adv. Letter Header CZZ"), "No." = field("No.");
- }
-#endif
part("Attached Documents List"; "Doc. Attachment List Factbox")
{
ApplicationArea = Basic, Suite;
@@ -486,4 +475,4 @@ page 31170 "Sales Advance Letters CZZ"
begin
CurrPage.IncomingDocAttachFactBox.Page.LoadDataFromRecord(Rec);
end;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Permissions/CZAdvancePaymentsObjCZZ.PermissionSet.al b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Permissions/CZAdvancePaymentsObjCZZ.PermissionSet.al
index ba3e113ec5..9d36d4e908 100644
--- a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Permissions/CZAdvancePaymentsObjCZZ.PermissionSet.al
+++ b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Permissions/CZAdvancePaymentsObjCZZ.PermissionSet.al
@@ -70,11 +70,6 @@ permissionset 11752 "CZ Advance Payments - Obj. CZZ"
Page "Purch. Advance Letters CZZ" = X,
Page "Purch. Adv. Letter Entries CZZ" = X,
Page "Purch. Adv. Letter FactBox CZZ" = X,
-#if not CLEAN25
-#pragma warning disable AL0432
- Page "Purch. Adv. Usage FactBox CZZ" = X,
-#pragma warning restore AL0432
-#endif
Page "Sal. Adv. Letter Ent.Prev. CZZ" = X,
Page "Sales Advance Letter CZZ" = X,
Page "Sales Advance Letter Line CZZ" = X,
@@ -82,11 +77,6 @@ permissionset 11752 "CZ Advance Payments - Obj. CZZ"
Page "Sales Advance Letters CZZ" = X,
Page "Sales Adv. Letter Entries CZZ" = X,
Page "Sales Adv. Letter FactBox CZZ" = X,
-#if not CLEAN25
-#pragma warning disable AL0432
- Page "Sales Adv. Usage FactBox CZZ" = X,
-#pragma warning restore AL0432
-#endif
Page "Suggested Usage CZZ" = X,
Page "VAT Document CZZ" = X,
Page "VAT Document Line CZZ" = X,
@@ -115,4 +105,4 @@ permissionset 11752 "CZ Advance Payments - Obj. CZZ"
Table "Sales Adv. Letter Entry CZZ" = X,
Table "Sales Adv. Letter Header CZZ" = X,
Table "Sales Adv. Letter Line CZZ" = X;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/AdvancePaymentsLocalization/app/Src/TableExtensions/GenJournalLineCZZ.TableExt.al b/Apps/CZ/AdvancePaymentsLocalization/app/Src/TableExtensions/GenJournalLineCZZ.TableExt.al
index 57f874d243..48cbb57fea 100644
--- a/Apps/CZ/AdvancePaymentsLocalization/app/Src/TableExtensions/GenJournalLineCZZ.TableExt.al
+++ b/Apps/CZ/AdvancePaymentsLocalization/app/Src/TableExtensions/GenJournalLineCZZ.TableExt.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -163,16 +163,11 @@ tableextension 31004 "Gen. Journal Line CZZ" extends "Gen. Journal Line"
begin
"Source Currency Code" := SalesAdvLetterHeaderCZZ."Currency Code";
"Bill-to/Pay-to No." := SalesAdvLetterHeaderCZZ."Bill-to Customer No.";
- "Country/Region Code" := SalesAdvLetterHeaderCZZ."Bill-to Country/Region Code";
+ "Country/Region Code" := SalesAdvLetterHeaderCZZ."VAT Country/Region Code";
"VAT Registration No." := SalesAdvLetterHeaderCZZ."VAT Registration No.";
"Registration No. CZL" := SalesAdvLetterHeaderCZZ."Registration No.";
"Tax Registration No. CZL" := SalesAdvLetterHeaderCZZ."Tax Registration No.";
"System-Created Entry" := true;
-#if not CLEAN25
-#pragma warning disable AL0432
- OnAfterCopyGenJnlLineFromSalesAdvLetterHeaderCZZ(SalesAdvLetterHeaderCZZ, Rec);
-#pragma warning restore AL0432
-#endif
OnAfterCopyGenJournalLineFromSalesAdvLetterHeaderCZZ(SalesAdvLetterHeaderCZZ, Rec);
end;
@@ -182,11 +177,6 @@ tableextension 31004 "Gen. Journal Line CZZ" extends "Gen. Journal Line"
"Shortcut Dimension 2 Code" := SalesAdvLetterEntryCZZ."Global Dimension 2 Code";
"Dimension Set ID" := SalesAdvLetterEntryCZZ."Dimension Set ID";
"Adv. Letter No. (Entry) CZZ" := SalesAdvLetterEntryCZZ."Sales Adv. Letter No.";
-#if not CLEAN25
-#pragma warning disable AL0432
- OnAfterCopyGenJnlLineFromSalesAdvLetterEntryCZZ(SalesAdvLetterEntryCZZ, Rec);
-#pragma warning restore AL0432
-#endif
OnAfterCopyGenJournalLineFromSalesAdvLetterEntryCZZ(SalesAdvLetterEntryCZZ, Rec);
end;
@@ -194,7 +184,7 @@ tableextension 31004 "Gen. Journal Line CZZ" extends "Gen. Journal Line"
begin
"Source Currency Code" := PurchAdvLetterHeaderCZZ."Currency Code";
"Bill-to/Pay-to No." := PurchAdvLetterHeaderCZZ."Pay-to Vendor No.";
- "Country/Region Code" := PurchAdvLetterHeaderCZZ."Pay-to Country/Region Code";
+ "Country/Region Code" := PurchAdvLetterHeaderCZZ."VAT Country/Region Code";
"VAT Registration No." := PurchAdvLetterHeaderCZZ."VAT Registration No.";
"Registration No. CZL" := PurchAdvLetterHeaderCZZ."Registration No.";
"Tax Registration No. CZL" := PurchAdvLetterHeaderCZZ."Tax Registration No.";
@@ -310,19 +300,6 @@ tableextension 31004 "Gen. Journal Line CZZ" extends "Gen. Journal Line"
local procedure OnAfterInitNewLineCZZ(var GenJournalLine: Record "Gen. Journal Line")
begin
end;
-#if not CLEAN25
- [Obsolete('Replaced by OnAfterCopyGenJournalLineFromSalesAdvLetterHeaderCZZ event.', '25.0')]
- [IntegrationEvent(false, false)]
- local procedure OnAfterCopyGenJnlLineFromSalesAdvLetterHeaderCZZ(SalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ"; Rec: Record "Gen. Journal Line")
- begin
- end;
-
- [Obsolete('Replaced by OnAfterCopyGenJournalLineFromSalesAdvLetterEntryCZZ event.', '25.0')]
- [IntegrationEvent(false, false)]
- local procedure OnAfterCopyGenJnlLineFromSalesAdvLetterEntryCZZ(SalesAdvLetterEntryCZZ: Record "Sales Adv. Letter Entry CZZ"; Rec: Record "Gen. Journal Line")
- begin
- end;
-#endif
[IntegrationEvent(false, false)]
local procedure OnAfterCopyGenJournalLineFromSalesAdvLetterHeaderCZZ(SalesAdvLetterHeaderCZZ: Record "Sales Adv. Letter Header CZZ"; var GenJournalLine: Record "Gen. Journal Line")
@@ -363,4 +340,4 @@ tableextension 31004 "Gen. Journal Line CZZ" extends "Gen. Journal Line"
local procedure OnAfterCopyFromVendorLedgerEntryCZZ(VendorLedgerEntry: Record "Vendor Ledger Entry"; var GenJournalLine: Record "Gen. Journal Line")
begin
end;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/AdvancePaymentsLocalization/app/Src/TableExtensions/VATSetupCZZ.TableExt.al b/Apps/CZ/AdvancePaymentsLocalization/app/Src/TableExtensions/VATSetupCZZ.TableExt.al
index d5c0ac318e..cfeaa3e1d5 100644
--- a/Apps/CZ/AdvancePaymentsLocalization/app/Src/TableExtensions/VATSetupCZZ.TableExt.al
+++ b/Apps/CZ/AdvancePaymentsLocalization/app/Src/TableExtensions/VATSetupCZZ.TableExt.al
@@ -16,5 +16,10 @@ tableextension 31059 "VAT Setup CZZ" extends "VAT Setup"
DataClassification = CustomerContent;
ToolTip = 'Specifies if the non-deductible VAT will be used in purchase advances.';
}
+ field(31005; "Alt. Cust. VAT Reg. Adv. CZZ"; Enum "Alt. Cust. VAT Reg. Adv. CZZ")
+ {
+ Caption = 'Alt. Cust. VAT Reg. Adv.';
+ DataClassification = CustomerContent;
+ }
}
}
diff --git a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Tables/PurchAdvLetterHeaderCZZ.Table.al b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Tables/PurchAdvLetterHeaderCZZ.Table.al
index 2b02f86442..d94c3f78fa 100644
--- a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Tables/PurchAdvLetterHeaderCZZ.Table.al
+++ b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Tables/PurchAdvLetterHeaderCZZ.Table.al
@@ -5,9 +5,6 @@
namespace Microsoft.Finance.AdvancePayments;
using Microsoft.Bank.BankAccount;
-#if not CLEAN25
-using Microsoft.Bank.Documents;
-#endif
using Microsoft.Bank.Setup;
using Microsoft.CRM.BusinessRelation;
using Microsoft.CRM.Contact;
@@ -837,18 +834,6 @@ table 31008 "Purch. Adv. Letter Header CZZ"
IncomingDocument.SetPurchaseAdvanceCZZ(Rec);
end;
}
-#if not CLEAN25
- field(31040; "Amount on Iss. Payment Order"; Decimal)
- {
- Caption = 'Amount on Issued Payment Order';
- FieldClass = FlowField;
- CalcFormula = sum("Iss. Payment Order Line CZB".Amount where("Purch. Advance Letter No. CZZ" = field("No.")));
- Editable = false;
- ObsoleteState = Pending;
- ObsoleteReason = 'This field is obsolete and will be removed in a future release. The CalcSuggestedAmountToApply function should be used instead.';
- ObsoleteTag = '25.0';
- }
-#endif
field(31112; "Original Document VAT Date"; Date)
{
Caption = 'Original Document VAT Date';
diff --git a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Tables/SalesAdvLetterHeaderCZZ.Table.al b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Tables/SalesAdvLetterHeaderCZZ.Table.al
index 5cd740036d..b7c26fc793 100644
--- a/Apps/CZ/AdvancePaymentsLocalization/app/Src/Tables/SalesAdvLetterHeaderCZZ.Table.al
+++ b/Apps/CZ/AdvancePaymentsLocalization/app/Src/Tables/SalesAdvLetterHeaderCZZ.Table.al
@@ -89,9 +89,10 @@ table 31004 "Sales Adv. Letter Header CZZ"
Confirmed := true
else
Confirmed := Confirm(ConfirmChangeQst, false, FieldCaption("Bill-to Customer No."));
- if Confirmed then
- OnValidateBillToCustomerNoOnAfterConfirmed(Rec)
- else
+ if Confirmed then begin
+ OnValidateBillToCustomerNoOnAfterConfirmed(Rec);
+ AltCustVATRegFacadeCZZ.Init(Rec, xRec);
+ end else
"Bill-to Customer No." := xRec."Bill-to Customer No.";
end;
@@ -510,7 +511,7 @@ table 31004 "Sales Adv. Letter Header CZZ"
ApplicableCountryCode := Rec."VAT Country/Region Code";
if ApplicableCountryCode = '' then
ApplicableCountryCode := Customer."Country/Region Code";
- if not VATRegistrationNoFormat.Test("VAT Registration No.", Customer."Country/Region Code", Customer."No.", Database::Customer) then
+ if not VATRegistrationNoFormat.Test("VAT Registration No.", ApplicableCountryCode, Customer."No.", Database::Customer) then
exit;
ApplicableCountryCode := Customer."Country/Region Code";
@@ -729,6 +730,11 @@ table 31004 "Sales Adv. Letter Header CZZ"
Caption = 'VAT Country/Region Code';
DataClassification = CustomerContent;
TableRelation = "Country/Region";
+
+ trigger OnValidate()
+ begin
+ AltCustVATRegFacadeCZZ.UpdateSetupOnVATCountryChangeInSalesAdvLetterHeader(Rec, xRec);
+ end;
}
field(80; Status; Enum "Advance Letter Doc. Status CZZ")
{
@@ -747,6 +753,16 @@ table 31004 "Sales Adv. Letter Header CZZ"
TableRelation = "Language Selection"."Language Tag";
DataClassification = CustomerContent;
}
+ field(100; "Alt. VAT Registration No."; Boolean)
+ {
+ Caption = 'Alternative VAT Registration No.';
+ Editable = false;
+ }
+ field(101; "Alt. VAT Bus Posting Group"; Boolean)
+ {
+ Caption = 'Alternative VAT Bus. Posting Group';
+ Editable = false;
+ }
#pragma warning disable AA0232
field(200; "Amount Including VAT"; Decimal)
#pragma warning restore AA0232
@@ -901,6 +917,7 @@ table 31004 "Sales Adv. Letter Header CZZ"
Customer: Record Customer;
SalespersonPurchaser: Record "Salesperson/Purchaser";
ResponsibilityCenter: Record "Responsibility Center";
+ AltCustVATRegFacadeCZZ: Codeunit "Alt. Cust. VAT Reg. Facade CZZ";
DimensionManagement: Codeunit DimensionManagement;
UserSetupManagement: Codeunit "User Setup Management";
VATReportingDateMgt: Codeunit "VAT Reporting Date Mgt";
@@ -965,6 +982,8 @@ table 31004 "Sales Adv. Letter Header CZZ"
"Posting Description" := AdvanceLbl + ' ' + "No.";
"Responsibility Center" := UserSetupManagement.GetRespCenter(0, "Responsibility Center");
+ AltCustVATRegFacadeCZZ.Init(Rec, xRec);
+
OnAfterInitRecord(Rec);
end;
@@ -1097,6 +1116,11 @@ table 31004 "Sales Adv. Letter Header CZZ"
HideValidationDialog := NewHideValidationDialog;
end;
+ procedure GetHideValidationDialog(): Boolean
+ begin
+ exit(HideValidationDialog);
+ end;
+
local procedure UpdateBankInfo(BankAccountCode: Code[20]; BankAccountNo: Text[30]; BankBranchNo: Text[20]; BankName: Text[100]; TransitNo: Text[20]; IBANCode: Code[50]; SWIFTCode: Code[20])
begin
"Bank Account Code" := BankAccountCode;
@@ -1843,9 +1867,7 @@ table 31004 "Sales Adv. Letter Header CZZ"
IsHandled: Boolean;
begin
OnBeforeUpdateVATRegNoInCust(Rec, Customer, ShouldUpdate, IsHandled);
- if IsHandled then
- exit(ShouldUpdate);
- exit(Customer."VAT Registration No." = '');
+ exit(AltCustVATRegFacadeCZZ.UpdateVATRegNoInCustFromSalesAdvLetterHeader(Rec, Customer));
end;
[IntegrationEvent(false, false)]
diff --git a/Apps/CZ/AdvancedLocalizationPack/app/Src/Codeunits/GLEntryPostApplicationCZA.Codeunit.al b/Apps/CZ/AdvancedLocalizationPack/app/Src/Codeunits/GLEntryPostApplicationCZA.Codeunit.al
index 4c4e84a68e..b652e719a9 100644
--- a/Apps/CZ/AdvancedLocalizationPack/app/Src/Codeunits/GLEntryPostApplicationCZA.Codeunit.al
+++ b/Apps/CZ/AdvancedLocalizationPack/app/Src/Codeunits/GLEntryPostApplicationCZA.Codeunit.al
@@ -104,8 +104,8 @@ codeunit 31370 "G/L Entry Post Application CZA"
TempAppliedGLEntry.Ascending(false);
if TempAppliedGLEntry.FindSet(true) then
repeat
- if (ApplyingGLEntry.Amount > 0) and (TempAppliedGLEntry.Amount < 0) or
- (ApplyingGLEntry.Amount < 0) and (TempAppliedGLEntry.Amount > 0)
+ if (ApplyingGLEntry.Amount >= 0) and (TempAppliedGLEntry.Amount < 0) or
+ (ApplyingGLEntry.Amount <= 0) and (TempAppliedGLEntry.Amount > 0)
then begin
TempAppliedGLEntry.CalcFields("Applied Amount CZA");
if (ApplyingAmount <> 0) and
@@ -121,8 +121,8 @@ codeunit 31370 "G/L Entry Post Application CZA"
TempAppliedGLEntry.SetFilter("Amount to Apply CZA", '<>0');
if TempAppliedGLEntry.FindSet(true) then
repeat
- if (ApplyingGLEntry.Amount > 0) and (TempAppliedGLEntry.Amount < 0) or
- (ApplyingGLEntry.Amount < 0) and (TempAppliedGLEntry.Amount > 0)
+ if (ApplyingGLEntry.Amount >= 0) and (TempAppliedGLEntry.Amount < 0) or
+ (ApplyingGLEntry.Amount <= 0) and (TempAppliedGLEntry.Amount > 0)
then begin
SetAmountToApply(TempAppliedGLEntry, ApplyingAmount);
TempAppliedGLEntry.Modify();
diff --git a/Apps/CZ/BankingDocumentsLocalization/app/Src/Codeunits/CrossApplicationHandlerCZB.Codeunit.al b/Apps/CZ/BankingDocumentsLocalization/app/Src/Codeunits/CrossApplicationHandlerCZB.Codeunit.al
index 1008a489ad..d5f0defb7b 100644
--- a/Apps/CZ/BankingDocumentsLocalization/app/Src/Codeunits/CrossApplicationHandlerCZB.Codeunit.al
+++ b/Apps/CZ/BankingDocumentsLocalization/app/Src/Codeunits/CrossApplicationHandlerCZB.Codeunit.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -11,13 +11,7 @@ using Microsoft.Sales.Receivables;
codeunit 31416 "Cross Application Handler CZB"
{
-#if not CLEAN25
- ObsoleteState = Pending;
- ObsoleteReason = 'The Access property will be changed to Internal.';
- ObsoleteTag = '25.0';
-#else
Access = Internal;
-#endif
[EventSubscriber(ObjectType::Codeunit, Codeunit::"Cross Application Mgt. CZL", 'OnCollectSuggestedApplication', '', false, false)]
local procedure AddIssPaymentOrderLineCZBOnCollectSuggestedApplication(
@@ -110,4 +104,4 @@ codeunit 31416 "Cross Application Handler CZB"
CrossApplicationBufferCZL.RemoveDocument(
TableID, IssPaymentOrderLine."Payment Order No.", IssPaymentOrderLine."Line No.");
end;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/BankStatementCZB.Page.al b/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/BankStatementCZB.Page.al
index 5742e266a7..a5e9f0ef9d 100644
--- a/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/BankStatementCZB.Page.al
+++ b/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/BankStatementCZB.Page.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -161,17 +161,6 @@ page 31254 "Bank Statement CZB"
}
area(FactBoxes)
{
-#if not CLEAN25
- part("Attached Documents"; "Document Attachment Factbox")
- {
- ObsoleteTag = '25.0';
- ObsoleteState = Pending;
- ObsoleteReason = 'The "Document Attachment FactBox" has been replaced by "Doc. Attachment List Factbox", which supports multiple files upload.';
- ApplicationArea = All;
- Caption = 'Attachments';
- SubPageLink = "Table ID" = const(Database::"Bank Statement Header CZB"), "No." = field("No.");
- }
-#endif
part("Attached Documents List"; "Doc. Attachment List Factbox")
{
ApplicationArea = All;
@@ -531,4 +520,4 @@ page 31254 "Bank Statement CZB"
CurrPage.SetSelectionFilter(BankStatementHeaderCZB);
BankStatementHeaderCZB.TestPrintRecords(true);
end;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/BankStatementsCZB.Page.al b/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/BankStatementsCZB.Page.al
index 6d1ee7cd67..c5bfe4e817 100644
--- a/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/BankStatementsCZB.Page.al
+++ b/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/BankStatementsCZB.Page.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -72,17 +72,6 @@ page 31253 "Bank Statements CZB"
}
area(FactBoxes)
{
-#if not CLEAN25
- part("Attached Documents"; "Document Attachment Factbox")
- {
- ObsoleteTag = '25.0';
- ObsoleteState = Pending;
- ObsoleteReason = 'The "Document Attachment FactBox" has been replaced by "Doc. Attachment List Factbox", which supports multiple files upload.';
- ApplicationArea = All;
- Caption = 'Attachments';
- SubPageLink = "Table ID" = const(Database::"Bank Statement Header CZB"), "No." = field("No.");
- }
-#endif
part("Attached Documents List"; "Doc. Attachment List Factbox")
{
ApplicationArea = All;
@@ -404,4 +393,4 @@ page 31253 "Bank Statements CZB"
CurrPage.SetSelectionFilter(BankStatementHeaderCZB);
BankStatementHeaderCZB.TestPrintRecords(true);
end;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/IssBankStatementCZB.Page.al b/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/IssBankStatementCZB.Page.al
index d38c1bb2a5..c9c9df56ad 100644
--- a/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/IssBankStatementCZB.Page.al
+++ b/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/IssBankStatementCZB.Page.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -137,17 +137,6 @@ page 31258 "Iss. Bank Statement CZB"
}
area(FactBoxes)
{
-#if not CLEAN25
- part("Attached Documents"; "Document Attachment Factbox")
- {
- ObsoleteTag = '25.0';
- ObsoleteState = Pending;
- ObsoleteReason = 'The "Document Attachment FactBox" has been replaced by "Doc. Attachment List Factbox", which supports multiple files upload.';
- ApplicationArea = All;
- Caption = 'Attachments';
- SubPageLink = "Table ID" = const(Database::"Iss. Bank Statement Header CZB"), "No." = field("No.");
- }
-#endif
part("Attached Documents List"; "Doc. Attachment List Factbox")
{
ApplicationArea = All;
@@ -379,4 +368,4 @@ page 31258 "Iss. Bank Statement CZB"
IssBankStatementHeaderCZB.SetRecFilter();
exit(IssBankStatementHeaderCZB.IsCreatedJournal(true, InstructionMgt.IsEnabled(InstructionMgtCZB.ShowCreatedJnlIssBankStmtConfirmationMessageCode())));
end;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/IssBankStatementsCZB.Page.al b/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/IssBankStatementsCZB.Page.al
index 998ceedb8b..5771c0335b 100644
--- a/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/IssBankStatementsCZB.Page.al
+++ b/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/IssBankStatementsCZB.Page.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -78,17 +78,6 @@ page 31257 "Iss. Bank Statements CZB"
}
area(FactBoxes)
{
-#if not CLEAN25
- part("Attached Documents"; "Document Attachment Factbox")
- {
- ObsoleteTag = '25.0';
- ObsoleteState = Pending;
- ObsoleteReason = 'The "Document Attachment FactBox" has been replaced by "Doc. Attachment List Factbox", which supports multiple files upload.';
- ApplicationArea = All;
- Caption = 'Attachments';
- SubPageLink = "Table ID" = const(Database::"Iss. Bank Statement Header CZB"), "No." = field("No.");
- }
-#endif
part("Attached Documents List"; "Doc. Attachment List Factbox")
{
ApplicationArea = All;
@@ -311,4 +300,4 @@ page 31257 "Iss. Bank Statements CZB"
IssBankStatementHeaderCZB.SetRecFilter();
exit(IssBankStatementHeaderCZB.IsCreatedJournal(true, InstructionMgt.IsEnabled(InstructionMgtCZB.ShowCreatedJnlIssBankStmtConfirmationMessageCode())));
end;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/IssPaymentOrderCZB.Page.al b/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/IssPaymentOrderCZB.Page.al
index 228a2085ad..5310bafc12 100644
--- a/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/IssPaymentOrderCZB.Page.al
+++ b/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/IssPaymentOrderCZB.Page.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -185,17 +185,6 @@ page 31266 "Iss. Payment Order CZB"
}
area(FactBoxes)
{
-#if not CLEAN25
- part("Attached Documents"; "Document Attachment Factbox")
- {
- ObsoleteTag = '25.0';
- ObsoleteState = Pending;
- ObsoleteReason = 'The "Document Attachment FactBox" has been replaced by "Doc. Attachment List Factbox", which supports multiple files upload.';
- ApplicationArea = All;
- Caption = 'Attachments';
- SubPageLink = "Table ID" = const(Database::"Iss. Payment Order Header CZB"), "No." = field("No.");
- }
-#endif
part("Attached Documents List"; "Doc. Attachment List Factbox")
{
ApplicationArea = All;
@@ -411,4 +400,4 @@ page 31266 "Iss. Payment Order CZB"
IssPaymentOrderHeaderCZB.SetRecFilter();
IssPaymentOrderHeaderCZB.PrintRecords(true);
end;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/IssPaymentOrdersCZB.Page.al b/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/IssPaymentOrdersCZB.Page.al
index 68c6165a73..641203cdfb 100644
--- a/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/IssPaymentOrdersCZB.Page.al
+++ b/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/IssPaymentOrdersCZB.Page.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -81,17 +81,6 @@ page 31265 "Iss. Payment Orders CZB"
}
area(FactBoxes)
{
-#if not CLEAN25
- part("Attached Documents"; "Document Attachment Factbox")
- {
- ObsoleteTag = '25.0';
- ObsoleteState = Pending;
- ObsoleteReason = 'The "Document Attachment FactBox" has been replaced by "Doc. Attachment List Factbox", which supports multiple files upload.';
- ApplicationArea = All;
- Caption = 'Attachments';
- SubPageLink = "Table ID" = const(Database::"Iss. Payment Order Header CZB"), "No." = field("No.");
- }
-#endif
part("Attached Documents List"; "Doc. Attachment List Factbox")
{
ApplicationArea = All;
@@ -287,4 +276,4 @@ page 31265 "Iss. Payment Orders CZB"
IssPaymentOrderHeaderCZB.SetRecFilter();
IssPaymentOrderHeaderCZB.PrintRecords(true);
end;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/PaymentOrderCZB.Page.al b/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/PaymentOrderCZB.Page.al
index e1dd18c842..a374e4e5cd 100644
--- a/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/PaymentOrderCZB.Page.al
+++ b/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/PaymentOrderCZB.Page.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -171,17 +171,6 @@ page 31262 "Payment Order CZB"
}
area(FactBoxes)
{
-#if not CLEAN25
- part("Attached Documents"; "Document Attachment Factbox")
- {
- ObsoleteTag = '25.0';
- ObsoleteState = Pending;
- ObsoleteReason = 'The "Document Attachment FactBox" has been replaced by "Doc. Attachment List Factbox", which supports multiple files upload.';
- ApplicationArea = All;
- Caption = 'Attachments';
- SubPageLink = "Table ID" = const(Database::"Payment Order Header CZB"), "No." = field("No.");
- }
-#endif
part("Attached Documents List"; "Doc. Attachment List Factbox")
{
ApplicationArea = All;
@@ -718,4 +707,4 @@ page 31262 "Payment Order CZB"
OpenApprovalEntriesExistForCurrUser := ApprovalsMgmt.HasOpenApprovalEntriesForCurrentUser(Rec.RecordId);
OpenApprovalEntriesExist := ApprovalsMgmt.HasOpenApprovalEntries(Rec.RecordId);
end;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/PaymentOrdersCZB.Page.al b/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/PaymentOrdersCZB.Page.al
index e865b1b070..dd285e2239 100644
--- a/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/PaymentOrdersCZB.Page.al
+++ b/Apps/CZ/BankingDocumentsLocalization/app/Src/Pages/PaymentOrdersCZB.Page.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -83,17 +83,6 @@ page 31261 "Payment Orders CZB"
}
area(FactBoxes)
{
-#if not CLEAN25
- part("Attached Documents"; "Document Attachment Factbox")
- {
- ObsoleteTag = '25.0';
- ObsoleteState = Pending;
- ObsoleteReason = 'The "Document Attachment FactBox" has been replaced by "Doc. Attachment List Factbox", which supports multiple files upload.';
- ApplicationArea = All;
- Caption = 'Attachments';
- SubPageLink = "Table ID" = const(Database::"Payment Order Header CZB"), "No." = field("No.");
- }
-#endif
part("Attached Documents List"; "Doc. Attachment List Factbox")
{
ApplicationArea = All;
@@ -566,4 +555,4 @@ page 31261 "Payment Orders CZB"
OpenApprovalEntriesExistForCurrUser := ApprovalsMgmt.HasOpenApprovalEntriesForCurrentUser(Rec.RecordId);
OpenApprovalEntriesExist := ApprovalsMgmt.HasOpenApprovalEntries(Rec.RecordId);
end;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/BankingDocumentsLocalization/app/Src/Reports/SuggestPaymentsCZB.Report.al b/Apps/CZ/BankingDocumentsLocalization/app/Src/Reports/SuggestPaymentsCZB.Report.al
index 86561f3ee2..a514cf4492 100644
--- a/Apps/CZ/BankingDocumentsLocalization/app/Src/Reports/SuggestPaymentsCZB.Report.al
+++ b/Apps/CZ/BankingDocumentsLocalization/app/Src/Reports/SuggestPaymentsCZB.Report.al
@@ -267,7 +267,7 @@ report 31280 "Suggest Payments CZB"
{
ApplicationArea = Basic, Suite;
Caption = 'Currency Type';
- OptionCaption = ' ,Payment Order,Bank Account';
+ OptionCaption = ' ,Payment Order,Bank Account,All';
ToolTip = 'Specifies used currency code.';
}
field(KeepBankCZB; KeepBank)
@@ -448,7 +448,7 @@ report 31280 "Suggest Payments CZB"
KeepBank, SkipNonWork, UsePaymentDisc, StopPayments, SkipBlocked, IsSkippedBlocked, DialogOpen : Boolean;
LineNo: Integer;
CustomerNoFilter, VendorNoFilter, EmployeeNoFilter : Text;
- CurrencyType: Option " ","Payment Order","Bank Account";
+ CurrencyType: Option " ","Payment Order","Bank Account",All;
procedure SetPaymentOrder(NewPaymentOrderHeaderCZB: Record "Payment Order Header CZB")
begin
@@ -458,22 +458,22 @@ report 31280 "Suggest Payments CZB"
procedure AddCustLedgEntry(CustLedgerEntry: Record "Cust. Ledger Entry")
begin
PaymentOrderLineCZB.Init();
- PaymentOrderLineCZB.Validate(PaymentOrderLineCZB."Payment Order No.", PaymentOrderHeaderCZB."No.");
+ PaymentOrderLineCZB.Validate("Payment Order No.", PaymentOrderHeaderCZB."No.");
PaymentOrderLineCZB."Line No." := LineNo;
LineNo += 10000;
PaymentOrderLineCZB.Type := PaymentOrderLineCZB.Type::Customer;
case CurrencyType of
CurrencyType::" ":
if PaymentOrderLineCZB."Payment Order Currency Code" <> CustLedgerEntry."Currency Code" then
- PaymentOrderLineCZB.Validate(PaymentOrderLineCZB."Payment Order Currency Code", CustLedgerEntry."Currency Code");
+ PaymentOrderLineCZB.Validate("Payment Order Currency Code", CustLedgerEntry."Currency Code");
CurrencyType::"Payment Order":
if PaymentOrderLineCZB."Payment Order Currency Code" <> PaymentOrderHeaderCZB."Payment Order Currency Code" then
- PaymentOrderLineCZB.Validate(PaymentOrderLineCZB."Payment Order Currency Code", PaymentOrderHeaderCZB."Payment Order Currency Code");
+ PaymentOrderLineCZB.Validate("Payment Order Currency Code", PaymentOrderHeaderCZB."Payment Order Currency Code");
CurrencyType::"Bank Account":
if PaymentOrderLineCZB."Payment Order Currency Code" <> PaymentOrderHeaderCZB."Currency Code" then
- PaymentOrderLineCZB.Validate(PaymentOrderLineCZB."Payment Order Currency Code", PaymentOrderHeaderCZB."Currency Code");
+ PaymentOrderLineCZB.Validate("Payment Order Currency Code", PaymentOrderHeaderCZB."Currency Code");
end;
- PaymentOrderLineCZB.Validate(PaymentOrderLineCZB."Applies-to C/V/E Entry No.", CustLedgerEntry."Entry No.");
+ PaymentOrderLineCZB.Validate("Applies-to C/V/E Entry No.", CustLedgerEntry."Entry No.");
if not UsePaymentDisc and PaymentOrderLineCZB."Pmt. Discount Possible" and
(PaymentOrderHeaderCZB."Document Date" <= CustLedgerEntry."Pmt. Discount Date")
then begin
@@ -481,7 +481,7 @@ report 31280 "Suggest Payments CZB"
PaymentOrderLineCZB."Pmt. Discount Date" := 0D;
PaymentOrderLineCZB."Amount (Paym. Order Currency)" += PaymentOrderLineCZB."Remaining Pmt. Disc. Possible";
PaymentOrderLineCZB."Remaining Pmt. Disc. Possible" := 0;
- PaymentOrderLineCZB.Validate(PaymentOrderLineCZB."Amount (Paym. Order Currency)");
+ PaymentOrderLineCZB.Validate("Amount (Paym. Order Currency)");
PaymentOrderLineCZB."Original Amount" := PaymentOrderLineCZB.Amount;
PaymentOrderLineCZB."Original Amount (LCY)" := PaymentOrderLineCZB."Amount (LCY)";
PaymentOrderLineCZB."Orig. Amount(Pay.Order Curr.)" := PaymentOrderLineCZB."Amount (Paym. Order Currency)";
@@ -492,22 +492,22 @@ report 31280 "Suggest Payments CZB"
procedure AddVendLedgEntry(VendorLedgerEntry: Record "Vendor Ledger Entry")
begin
PaymentOrderLineCZB.Init();
- PaymentOrderLineCZB.Validate(PaymentOrderLineCZB."Payment Order No.", PaymentOrderHeaderCZB."No.");
+ PaymentOrderLineCZB.Validate("Payment Order No.", PaymentOrderHeaderCZB."No.");
PaymentOrderLineCZB."Line No." := LineNo;
LineNo += 10000;
PaymentOrderLineCZB.Type := PaymentOrderLineCZB.Type::Vendor;
case CurrencyType of
CurrencyType::" ":
if PaymentOrderLineCZB."Payment Order Currency Code" <> VendorLedgerEntry."Currency Code" then
- PaymentOrderLineCZB.Validate(PaymentOrderLineCZB."Payment Order Currency Code", VendorLedgerEntry."Currency Code");
+ PaymentOrderLineCZB.Validate("Payment Order Currency Code", VendorLedgerEntry."Currency Code");
CurrencyType::"Payment Order":
if PaymentOrderLineCZB."Payment Order Currency Code" <> PaymentOrderHeaderCZB."Payment Order Currency Code" then
- PaymentOrderLineCZB.Validate(PaymentOrderLineCZB."Payment Order Currency Code", PaymentOrderHeaderCZB."Payment Order Currency Code");
+ PaymentOrderLineCZB.Validate("Payment Order Currency Code", PaymentOrderHeaderCZB."Payment Order Currency Code");
CurrencyType::"Bank Account":
if PaymentOrderLineCZB."Payment Order Currency Code" <> PaymentOrderHeaderCZB."Currency Code" then
- PaymentOrderLineCZB.Validate(PaymentOrderLineCZB."Payment Order Currency Code", PaymentOrderHeaderCZB."Currency Code");
+ PaymentOrderLineCZB.Validate("Payment Order Currency Code", PaymentOrderHeaderCZB."Currency Code");
end;
- PaymentOrderLineCZB.Validate(PaymentOrderLineCZB."Applies-to C/V/E Entry No.", VendorLedgerEntry."Entry No.");
+ PaymentOrderLineCZB.Validate("Applies-to C/V/E Entry No.", VendorLedgerEntry."Entry No.");
if not UsePaymentDisc and PaymentOrderLineCZB."Pmt. Discount Possible" and
(PaymentOrderHeaderCZB."Document Date" <= VendorLedgerEntry."Pmt. Discount Date")
then begin
@@ -515,7 +515,7 @@ report 31280 "Suggest Payments CZB"
PaymentOrderLineCZB."Pmt. Discount Date" := 0D;
PaymentOrderLineCZB."Amount (Paym. Order Currency)" -= PaymentOrderLineCZB."Remaining Pmt. Disc. Possible";
PaymentOrderLineCZB."Remaining Pmt. Disc. Possible" := 0;
- PaymentOrderLineCZB.Validate(PaymentOrderLineCZB."Amount (Paym. Order Currency)");
+ PaymentOrderLineCZB.Validate("Amount (Paym. Order Currency)");
PaymentOrderLineCZB."Original Amount" := PaymentOrderLineCZB.Amount;
PaymentOrderLineCZB."Original Amount (LCY)" := PaymentOrderLineCZB."Amount (LCY)";
PaymentOrderLineCZB."Orig. Amount(Pay.Order Curr.)" := PaymentOrderLineCZB."Amount (Paym. Order Currency)";
@@ -527,13 +527,13 @@ report 31280 "Suggest Payments CZB"
procedure AddEmplLedgEntry(EmployeeLedgerEntry: Record "Employee Ledger Entry")
begin
PaymentOrderLineCZB.Init();
- PaymentOrderLineCZB.Validate(PaymentOrderLineCZB."Payment Order No.", PaymentOrderHeaderCZB."No.");
+ PaymentOrderLineCZB.Validate("Payment Order No.", PaymentOrderHeaderCZB."No.");
PaymentOrderLineCZB."Line No." := LineNo;
LineNo += 10000;
PaymentOrderLineCZB.Type := PaymentOrderLineCZB.Type::Employee;
if PaymentOrderLineCZB."Payment Order Currency Code" <> EmployeeLedgerEntry."Currency Code" then
- PaymentOrderLineCZB.Validate(PaymentOrderLineCZB."Payment Order Currency Code", EmployeeLedgerEntry."Currency Code");
- PaymentOrderLineCZB.Validate(PaymentOrderLineCZB."Applies-to C/V/E Entry No.", EmployeeLedgerEntry."Entry No.");
+ PaymentOrderLineCZB.Validate("Payment Order Currency Code", EmployeeLedgerEntry."Currency Code");
+ PaymentOrderLineCZB.Validate("Applies-to C/V/E Entry No.", EmployeeLedgerEntry."Entry No.");
AddPaymentLine();
end;
diff --git a/Apps/CZ/BankingDocumentsLocalization/app/Src/Tables/PaymentOrderLineCZB.Table.al b/Apps/CZ/BankingDocumentsLocalization/app/Src/Tables/PaymentOrderLineCZB.Table.al
index 9787a702f5..5c23880b6b 100644
--- a/Apps/CZ/BankingDocumentsLocalization/app/Src/Tables/PaymentOrderLineCZB.Table.al
+++ b/Apps/CZ/BankingDocumentsLocalization/app/Src/Tables/PaymentOrderLineCZB.Table.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -872,13 +872,6 @@ table 31257 "Payment Order Line CZB"
PaymentOrderCurrency.Testfield("Amount Rounding Precision");
end;
end;
-#if not CLEAN25
- [Obsolete('Replaced by CreateDescription function with PlaceholderValues parameter.', '25.0')]
- procedure CreateDescription(DocType: Text[30]; DocNo: Text[20]; PartnerNo: Text[20]; PartnerName: Text[100]; ExtNo: Text[35]): Text[50]
- begin
- exit(CopyStr(StrSubstNo(BankAccount."Payment Order Line Descr. CZB", DocType, DocNo, PartnerNo, PartnerName, ExtNo), 1, 50));
- end;
-#endif
procedure CreateDescription(PlaceholderValues: List of [Text[100]]) Description: Text[100]
var
@@ -1278,10 +1271,6 @@ table 31257 "Payment Order Line CZB"
CustLedgerEntry: Record "Cust. Ledger Entry";
VendorLedgerEntry: Record "Vendor Ledger Entry";
EmployeeLedgerEntry: Record "Employee Ledger Entry";
-#if not CLEAN25
- CrossApplicationMgtCZL: Codeunit "Cross Application Mgt. CZL";
- AppliesToAdvanceLetterNo: Code[20];
-#endif
begin
if "No." = '' then
exit;
@@ -1298,17 +1287,6 @@ table 31257 "Payment Order Line CZB"
if EmployeeLedgerEntry.Get("Applies-to C/V/E Entry No.") then
EmployeeLedgerEntry.CollectSuggestedApplicationCZL(Rec, CrossApplicationBufferCZL);
end;
-#if not CLEAN25
-#pragma warning disable AL0432
- if Type = Type::Vendor then begin
- OnBeforeFindRelatedAmoutToApply(Rec, AppliesToAdvanceLetterNo);
- if AppliesToAdvanceLetterNo <> '' then
- CrossApplicationMgtCZL.OnGetSuggestedAmountForPurchAdvLetterHeader(
- AppliesToAdvanceLetterNo, CrossApplicationBufferCZL,
- Database::"Iss. Payment Order Line CZB", Rec."Payment Order No.", Rec."Line No.");
- end;
-#pragma warning restore AL0432
-#endif
OnAfterCollectSuggestedApplication(Rec, CrossApplicationBufferCZL);
end;
@@ -1342,14 +1320,6 @@ table 31257 "Payment Order Line CZB"
local procedure OnAfterAppliesToEmplLedgEntryNo(var PaymentOrderLineCZB: Record "Payment Order Line CZB"; EmployeeLedgerEntry: Record "Employee Ledger Entry");
begin
end;
-#if not CLEAN25
-
- [Obsolete('The event is obsolete and will be removed in the future version. Use OnAfterCollectSuggestedApplication instead.', '25.0')]
- [IntegrationEvent(false, false)]
- local procedure OnBeforeFindRelatedAmoutToApply(PaymentOrderLineCZB: Record "Payment Order Line CZB"; var AppliesToAdvanceLetterNo: Code[20]);
- begin
- end;
-#endif
[IntegrationEvent(false, false)]
local procedure OnAfterCollectSuggestedApplication(PaymentOrderLineCZB: Record "Payment Order Line CZB"; var CrossApplicationBufferCZL: Record "Cross Application Buffer CZL")
@@ -1400,4 +1370,4 @@ table 31257 "Payment Order Line CZB"
local procedure OnAppliesToCVEEntryNoLookupOnAfterSetEmployeeLedgerEntryFilters(var EmployeeLedgerEntry: Record "Employee Ledger Entry")
begin
end;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/CashDeskLocalization/app/Src/Codeunits/CashDeskManagementCZP.Codeunit.al b/Apps/CZ/CashDeskLocalization/app/Src/Codeunits/CashDeskManagementCZP.Codeunit.al
index d43510ac5f..fad2ce5a74 100644
--- a/Apps/CZ/CashDeskLocalization/app/Src/Codeunits/CashDeskManagementCZP.Codeunit.al
+++ b/Apps/CZ/CashDeskLocalization/app/Src/Codeunits/CashDeskManagementCZP.Codeunit.al
@@ -85,6 +85,9 @@ codeunit 11724 "Cash Desk Management CZP"
CheckCashDesks();
SetCashDeskFilter(CashDeskCZP);
+ CashDeskCZP.FilterGroup(2);
+ CashDeskCZP.SetRange(Blocked, false);
+ CashDeskCZP.FilterGroup(0);
case CashDeskCZP.Count() of
0:
diff --git a/Apps/CZ/CashDeskLocalization/app/Src/Codeunits/CrossApplicationHandlerCZP.Codeunit.al b/Apps/CZ/CashDeskLocalization/app/Src/Codeunits/CrossApplicationHandlerCZP.Codeunit.al
index 26d23a35e4..fefaa58995 100644
--- a/Apps/CZ/CashDeskLocalization/app/Src/Codeunits/CrossApplicationHandlerCZP.Codeunit.al
+++ b/Apps/CZ/CashDeskLocalization/app/Src/Codeunits/CrossApplicationHandlerCZP.Codeunit.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -12,13 +12,7 @@ using Microsoft.Sales.Receivables;
codeunit 31417 "Cross Application Handler CZP"
{
-#if not CLEAN25
- ObsoleteState = Pending;
- ObsoleteReason = 'The Access property will be changed to Internal.';
- ObsoleteTag = '25.0';
-#else
Access = Internal;
-#endif
[EventSubscriber(ObjectType::Codeunit, Codeunit::"Cross Application Mgt. CZL", 'OnCollectSuggestedApplication', '', false, false)]
local procedure AddCashDocumentLineCZPOnCollectSuggestedApplication(
@@ -124,4 +118,4 @@ codeunit 31417 "Cross Application Handler CZP"
CrossApplicationBufferCZL.RemoveDocument(
TableID, CashDocumentLineCZL."Cash Document No.", CashDocumentLineCZL."Line No.");
end;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/CashDeskLocalization/app/Src/PageExtensions/HumanResourcesSetupCZP.PageExt.al b/Apps/CZ/CashDeskLocalization/app/Src/PageExtensions/HumanResourcesSetupCZP.PageExt.al
new file mode 100644
index 0000000000..67dd9ddf3c
--- /dev/null
+++ b/Apps/CZ/CashDeskLocalization/app/Src/PageExtensions/HumanResourcesSetupCZP.PageExt.al
@@ -0,0 +1,18 @@
+// ------------------------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for license information.
+// ------------------------------------------------------------------------------------------------
+namespace Microsoft.Finance.CashDesk;
+
+using Microsoft.HumanResources.Setup;
+
+pageextension 31278 "Human Resources Setup CZP" extends "Human Resources Setup"
+{
+ layout
+ {
+ modify("Allow Multiple Posting Groups")
+ {
+ ToolTip = 'Specifies if to enable checking on assignment an alternative posting group from employee posting group setup for the employee assigned in the general journal and cash document.';
+ }
+ }
+}
\ No newline at end of file
diff --git a/Apps/CZ/CashDeskLocalization/app/Src/PageExtensions/ReconciliationCZP.PageExt.al b/Apps/CZ/CashDeskLocalization/app/Src/PageExtensions/ReconciliationCZP.PageExt.al
index 18c53fd194..7b7f7bf069 100644
--- a/Apps/CZ/CashDeskLocalization/app/Src/PageExtensions/ReconciliationCZP.PageExt.al
+++ b/Apps/CZ/CashDeskLocalization/app/Src/PageExtensions/ReconciliationCZP.PageExt.al
@@ -30,15 +30,13 @@ pageextension 31269 "Reconciliation CZP" extends Reconciliation
TotalCashDocumentLineCZP: Record "Cash Document Line CZP";
begin
TotalCashDocumentLineCZP.SetRange("Cash Document No.", CashDocumentHeaderCZP."No.");
- TotalCashDocumentLineCZP.CalcSums(Amount, "VAT Amount", "Amount (LCY)", "VAT Amount (LCY)");
+ TotalCashDocumentLineCZP.CalcSums("Amount Including VAT", "Amount Including VAT (LCY)");
GenJournalLine."Account Type" := Enum::"Net Change Account Type CZL"::"Cash Desk CZP";
GenJournalLine."Account No." := CashDocumentHeaderCZP."Cash Desk No.";
GenJournalLine."Currency Code" := CashDocumentHeaderCZP."Currency Code";
- GenJournalLine."Amount" := -CashDocumentHeaderCZP.SignAmount() * TotalCashDocumentLineCZP."Amount";
- GenJournalLine."VAT Amount" := -CashDocumentHeaderCZP.SignAmount() * TotalCashDocumentLineCZP."VAT Amount";
- GenJournalLine."Amount (LCY)" := -CashDocumentHeaderCZP.SignAmount() * TotalCashDocumentLineCZP."Amount (LCY)";
- GenJournalLine."VAT Amount (LCY)" := -CashDocumentHeaderCZP.SignAmount() * TotalCashDocumentLineCZP."VAT Amount (LCY)";
+ GenJournalLine."Amount" := -CashDocumentHeaderCZP.SignAmount() * TotalCashDocumentLineCZP."Amount Including VAT";
+ GenJournalLine."Amount (LCY)" := -CashDocumentHeaderCZP.SignAmount() * TotalCashDocumentLineCZP."Amount Including VAT (LCY)";
end;
local procedure PopulateGenJournalLineFrom(CashDocumentHeaderCZP: Record "Cash Document Header CZP"; CashDocumentLineCZP: Record "Cash Document Line CZP") GenJournalLine: Record "Gen. Journal Line"
@@ -46,9 +44,9 @@ pageextension 31269 "Reconciliation CZP" extends Reconciliation
GenJournalLine."Account Type" := CashDocumentLineCZP.AccountTypeToNetChangeAccountType();
GenJournalLine."Account No." := CashDocumentLineCZP."Account No.";
GenJournalLine."Currency Code" := CashDocumentLineCZP."Currency Code";
- GenJournalLine."Amount" := CashDocumentHeaderCZP.SignAmount() * CashDocumentLineCZP."Amount";
+ GenJournalLine."Amount" := CashDocumentHeaderCZP.SignAmount() * CashDocumentLineCZP."Amount Including VAT";
GenJournalLine."VAT Amount" := CashDocumentHeaderCZP.SignAmount() * CashDocumentLineCZP."VAT Amount";
- GenJournalLine."Amount (LCY)" := CashDocumentHeaderCZP.SignAmount() * CashDocumentLineCZP."Amount (LCY)";
+ GenJournalLine."Amount (LCY)" := CashDocumentHeaderCZP.SignAmount() * CashDocumentLineCZP."Amount Including VAT (LCY)";
GenJournalLine."VAT Amount (LCY)" := CashDocumentHeaderCZP.SignAmount() * CashDocumentLineCZP."VAT Amount (LCY)";
end;
}
diff --git a/Apps/CZ/CashDeskLocalization/app/Src/Pages/CashDeskUsersCZP.Page.al b/Apps/CZ/CashDeskLocalization/app/Src/Pages/CashDeskUsersCZP.Page.al
index a578c18a7f..66f7650ed2 100644
--- a/Apps/CZ/CashDeskLocalization/app/Src/Pages/CashDeskUsersCZP.Page.al
+++ b/Apps/CZ/CashDeskLocalization/app/Src/Pages/CashDeskUsersCZP.Page.al
@@ -13,7 +13,8 @@ page 31156 "Cash Desk Users CZP"
DelayedInsert = true;
PageType = List;
SourceTable = "Cash Desk User CZP";
- UsageCategory = None;
+ UsageCategory = Lists;
+ ApplicationArea = Basic, Suite;
layout
{
diff --git a/Apps/CZ/CashDeskLocalization/app/Src/Pages/CashDocumentCZP.Page.al b/Apps/CZ/CashDeskLocalization/app/Src/Pages/CashDocumentCZP.Page.al
index eee627af8c..72668af3e4 100644
--- a/Apps/CZ/CashDeskLocalization/app/Src/Pages/CashDocumentCZP.Page.al
+++ b/Apps/CZ/CashDeskLocalization/app/Src/Pages/CashDocumentCZP.Page.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -268,17 +268,6 @@ page 31160 "Cash Document CZP"
}
area(factboxes)
{
-#if not CLEAN25
- part("Attached Documents"; "Document Attachment Factbox")
- {
- ObsoleteTag = '25.0';
- ObsoleteState = Pending;
- ObsoleteReason = 'The "Document Attachment FactBox" has been replaced by "Doc. Attachment List Factbox", which supports multiple files upload.';
- ApplicationArea = All;
- Caption = 'Attachments';
- SubPageLink = "Table ID" = const(database::"Cash Document Header CZP"), "No." = field("No.");
- }
-#endif
part("Attached Documents List"; "Doc. Attachment List Factbox")
{
ApplicationArea = All;
@@ -969,4 +958,4 @@ page 31160 "Cash Document CZP"
local procedure OnAfterUpdateEditable(CashDocumentHeaderCZP: Record "Cash Document Header CZP")
begin
end;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/CashDeskLocalization/app/Src/Pages/CashDocumentListCZP.Page.al b/Apps/CZ/CashDeskLocalization/app/Src/Pages/CashDocumentListCZP.Page.al
index 862876cbcf..4533fcf226 100644
--- a/Apps/CZ/CashDeskLocalization/app/Src/Pages/CashDocumentListCZP.Page.al
+++ b/Apps/CZ/CashDeskLocalization/app/Src/Pages/CashDocumentListCZP.Page.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -91,17 +91,6 @@ page 31162 "Cash Document List CZP"
}
area(FactBoxes)
{
-#if not CLEAN25
- part("Attached Documents"; "Document Attachment Factbox")
- {
- ObsoleteTag = '25.0';
- ObsoleteState = Pending;
- ObsoleteReason = 'The "Document Attachment FactBox" has been replaced by "Doc. Attachment List Factbox", which supports multiple files upload.';
- ApplicationArea = All;
- Caption = 'Attachments';
- SubPageLink = "Table ID" = const(database::"Cash Document Header CZP"), "No." = field("No.");
- }
-#endif
part("Attached Documents List"; "Doc. Attachment List Factbox")
{
ApplicationArea = All;
@@ -461,4 +450,4 @@ page 31162 "Cash Document List CZP"
begin
CashDocumentPostYesNoCZP.Preview(Rec);
end;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/CashDeskLocalization/app/Src/Pages/PostedCashDocumentCZP.Page.al b/Apps/CZ/CashDeskLocalization/app/Src/Pages/PostedCashDocumentCZP.Page.al
index f854767d08..f9eb02e93d 100644
--- a/Apps/CZ/CashDeskLocalization/app/Src/Pages/PostedCashDocumentCZP.Page.al
+++ b/Apps/CZ/CashDeskLocalization/app/Src/Pages/PostedCashDocumentCZP.Page.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -204,17 +204,6 @@ page 31165 "Posted Cash Document CZP"
}
area(FactBoxes)
{
-#if not CLEAN25
- part("Attached Documents"; "Document Attachment Factbox")
- {
- ObsoleteTag = '25.0';
- ObsoleteState = Pending;
- ObsoleteReason = 'The "Document Attachment FactBox" has been replaced by "Doc. Attachment List Factbox", which supports multiple files upload.';
- ApplicationArea = All;
- Caption = 'Attachments';
- SubPageLink = "Table ID" = const(database::"Posted Cash Document Hdr. CZP"), "No." = field("No.");
- }
-#endif
part("Attached Documents List"; "Doc. Attachment List Factbox")
{
ApplicationArea = All;
@@ -365,4 +354,4 @@ page 31165 "Posted Cash Document CZP"
}
}
}
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/CashDeskLocalization/app/Src/Pages/PostedCashDocumentListCZP.Page.al b/Apps/CZ/CashDeskLocalization/app/Src/Pages/PostedCashDocumentListCZP.Page.al
index a68576ace8..0a18388dd2 100644
--- a/Apps/CZ/CashDeskLocalization/app/Src/Pages/PostedCashDocumentListCZP.Page.al
+++ b/Apps/CZ/CashDeskLocalization/app/Src/Pages/PostedCashDocumentListCZP.Page.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -80,17 +80,6 @@ page 31167 "Posted Cash Document List CZP"
}
area(FactBoxes)
{
-#if not CLEAN25
- part("Attached Documents"; "Document Attachment Factbox")
- {
- ObsoleteTag = '25.0';
- ObsoleteState = Pending;
- ObsoleteReason = 'The "Document Attachment FactBox" has been replaced by "Doc. Attachment List Factbox", which supports multiple files upload.';
- ApplicationArea = All;
- Caption = 'Attachments';
- SubPageLink = "Table ID" = const(Database::"Posted Cash Document Hdr. CZP"), "No." = field("No.");
- }
-#endif
part("Attached Documents List"; "Doc. Attachment List Factbox")
{
ApplicationArea = All;
@@ -258,4 +247,4 @@ page 31167 "Posted Cash Document List CZP"
var
CashDeskManagementCZP: Codeunit "Cash Desk Management CZP";
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/CashDeskLocalization/app/Src/Tables/CashDocumentLineCZP.Table.al b/Apps/CZ/CashDeskLocalization/app/Src/Tables/CashDocumentLineCZP.Table.al
index 620f651de7..1b21aa0719 100644
--- a/Apps/CZ/CashDeskLocalization/app/Src/Tables/CashDocumentLineCZP.Table.al
+++ b/Apps/CZ/CashDeskLocalization/app/Src/Tables/CashDocumentLineCZP.Table.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -828,13 +828,8 @@ table 11733 "Cash Document Line CZP"
Caption = 'VAT Difference (LCY)';
DataClassification = CustomerContent;
ObsoleteReason = 'Moved to Core Localization Pack for Czech.';
-#if CLEAN25
ObsoleteState = Removed;
ObsoleteTag = '28.0';
-#else
- ObsoleteState = Pending;
- ObsoleteTag = '18.0';
-#endif
}
#endif
field(63; "System-Created Entry"; Boolean)
@@ -1972,10 +1967,6 @@ table 11733 "Cash Document Line CZP"
CustLedgerEntry: Record "Cust. Ledger Entry";
VendorLedgerEntry: Record "Vendor Ledger Entry";
EmployeeLedgerEntry: Record "Employee Ledger Entry";
-#if not CLEAN25
- CrossApplicationMgtCZL: Codeunit "Cross Application Mgt. CZL";
- AppliesToAdvanceLetterNo: Code[20];
-#endif
begin
if "Account No." = '' then
exit;
@@ -2010,17 +2001,6 @@ table 11733 "Cash Document Line CZP"
EmployeeLedgerEntry.CollectSuggestedApplicationCZL(Rec, CrossApplicationBufferCZL);
end;
end;
-#if not CLEAN25
-#pragma warning disable AL0432
- if "Account Type" = "Account Type"::Vendor then begin
- OnBeforeFindRelatedAmoutToApply(Rec, AppliesToAdvanceLetterNo);
- if AppliesToAdvanceLetterNo <> '' then
- CrossApplicationMgtCZL.OnGetSuggestedAmountForPurchAdvLetterHeader(
- AppliesToAdvanceLetterNo, CrossApplicationBufferCZL,
- Database::"Cash Document Line CZP", "Cash Document No.", "Line No.");
- end;
-#pragma warning restore AL0432
-#endif
OnAfterCollectSuggestedApplication(Rec, CrossApplicationBufferCZL);
end;
@@ -2198,13 +2178,6 @@ table 11733 "Cash Document Line CZP"
local procedure OnAfterIsEETCashRegister(CashDocumentLineCZP: Record "Cash Document Line CZP"; var EETCashRegister: Boolean)
begin
end;
-#if not CLEAN25
- [Obsolete('The event is obsolete and will be removed in the future version. Use OnAfterCollectSuggestedApplication instead.', '25.0')]
- [IntegrationEvent(false, false)]
- local procedure OnBeforeFindRelatedAmoutToApply(CashDocumentLineCZP: Record "Cash Document Line CZP"; var AppliesToAdvanceLetterNo: Code[20]);
- begin
- end;
-#endif
[IntegrationEvent(false, false)]
local procedure OnBeforeCreateDim(var CashDocumentLineCZP: Record "Cash Document Line CZP"; var IsHandled: Boolean)
diff --git a/Apps/CZ/CompensationLocalization/app/Src/Codeunits/CrossApplicationHandlerCZC.Codeunit.al b/Apps/CZ/CompensationLocalization/app/Src/Codeunits/CrossApplicationHandlerCZC.Codeunit.al
index 1b4d881248..49c8c62ec3 100644
--- a/Apps/CZ/CompensationLocalization/app/Src/Codeunits/CrossApplicationHandlerCZC.Codeunit.al
+++ b/Apps/CZ/CompensationLocalization/app/Src/Codeunits/CrossApplicationHandlerCZC.Codeunit.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -10,13 +10,7 @@ using Microsoft.Sales.Receivables;
codeunit 31415 "Cross Application Handler CZC"
{
-#if not CLEAN25
- ObsoleteState = Pending;
- ObsoleteReason = 'The Access property will be changed to Internal.';
- ObsoleteTag = '25.0';
-#else
Access = Internal;
-#endif
[EventSubscriber(ObjectType::Codeunit, Codeunit::"Cross Application Mgt. CZL", 'OnCollectSuggestedApplication', '', false, false)]
local procedure AddCompensationLineCZCOnCollectSuggestedApplication(
@@ -103,4 +97,4 @@ codeunit 31415 "Cross Application Handler CZC"
CrossApplicationBufferCZL.RemoveDocument(
TableID, CompensationLineCZC."Compensation No.", CompensationLineCZC."Line No.");
end;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/CompensationLocalization/app/Src/Pages/CompensationCardCZC.Page.al b/Apps/CZ/CompensationLocalization/app/Src/Pages/CompensationCardCZC.Page.al
index 873c178a63..ca6fac9b4d 100644
--- a/Apps/CZ/CompensationLocalization/app/Src/Pages/CompensationCardCZC.Page.al
+++ b/Apps/CZ/CompensationLocalization/app/Src/Pages/CompensationCardCZC.Page.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -162,17 +162,6 @@ page 31272 "Compensation Card CZC"
}
area(factboxes)
{
-#if not CLEAN25
- part("Attached Documents"; "Document Attachment Factbox")
- {
- ObsoleteTag = '25.0';
- ObsoleteState = Pending;
- ObsoleteReason = 'The "Document Attachment FactBox" has been replaced by "Doc. Attachment List Factbox", which supports multiple files upload.';
- ApplicationArea = All;
- Caption = 'Attachments';
- SubPageLink = "Table ID" = const(Database::"Compensation Header CZC"), "No." = field("No.");
- }
-#endif
part("Attached Documents List"; "Doc. Attachment List Factbox")
{
ApplicationArea = All;
@@ -754,4 +743,4 @@ page 31272 "Compensation Card CZC"
CompensationHeaderCZC.Insert(true);
Page.Run(Page::"Compensation Card CZC", CompensationHeaderCZC);
end;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/CompensationLocalization/app/Src/Pages/CompensationListCZC.Page.al b/Apps/CZ/CompensationLocalization/app/Src/Pages/CompensationListCZC.Page.al
index 7893516f03..a657293bbf 100644
--- a/Apps/CZ/CompensationLocalization/app/Src/Pages/CompensationListCZC.Page.al
+++ b/Apps/CZ/CompensationLocalization/app/Src/Pages/CompensationListCZC.Page.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -86,17 +86,6 @@ page 31274 "Compensation List CZC"
}
area(factboxes)
{
-#if not CLEAN25
- part("Attached Documents"; "Document Attachment Factbox")
- {
- ObsoleteTag = '25.0';
- ObsoleteState = Pending;
- ObsoleteReason = 'The "Document Attachment FactBox" has been replaced by "Doc. Attachment List Factbox", which supports multiple files upload.';
- ApplicationArea = All;
- Caption = 'Attachments';
- SubPageLink = "Table ID" = const(Database::"Compensation Header CZC"), "No." = field("No.");
- }
-#endif
part("Attached Documents List"; "Doc. Attachment List Factbox")
{
ApplicationArea = All;
@@ -457,4 +446,4 @@ page 31274 "Compensation List CZC"
begin
OpenApprovalEntriesExist := ApprovalsMgmt.HasOpenApprovalEntries(Rec.RecordId);
end;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/CompensationLocalization/app/Src/Pages/PostedCompensationCardCZC.Page.al b/Apps/CZ/CompensationLocalization/app/Src/Pages/PostedCompensationCardCZC.Page.al
index 77c883fe88..9346498825 100644
--- a/Apps/CZ/CompensationLocalization/app/Src/Pages/PostedCompensationCardCZC.Page.al
+++ b/Apps/CZ/CompensationLocalization/app/Src/Pages/PostedCompensationCardCZC.Page.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -141,17 +141,6 @@ page 31277 "Posted Compensation Card CZC"
}
area(factboxes)
{
-#if not CLEAN25
- part("Attached Documents"; "Document Attachment Factbox")
- {
- ObsoleteTag = '25.0';
- ObsoleteState = Pending;
- ObsoleteReason = 'The "Document Attachment FactBox" has been replaced by "Doc. Attachment List Factbox", which supports multiple files upload.';
- ApplicationArea = All;
- Caption = 'Attachments';
- SubPageLink = "Table ID" = const(Database::"Posted Compensation Header CZC"), "No." = field("No.");
- }
-#endif
part("Attached Documents List"; "Doc. Attachment List Factbox")
{
ApplicationArea = All;
@@ -370,4 +359,4 @@ page 31277 "Posted Compensation Card CZC"
var
HasIncomingDocument: Boolean;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/CompensationLocalization/app/Src/Pages/PostedCompensationListCZC.Page.al b/Apps/CZ/CompensationLocalization/app/Src/Pages/PostedCompensationListCZC.Page.al
index b1d0a5524c..4f4dc2958b 100644
--- a/Apps/CZ/CompensationLocalization/app/Src/Pages/PostedCompensationListCZC.Page.al
+++ b/Apps/CZ/CompensationLocalization/app/Src/Pages/PostedCompensationListCZC.Page.al
@@ -1,4 +1,4 @@
-// ------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
@@ -80,17 +80,6 @@ page 31279 "Posted Compensation List CZC"
}
area(factboxes)
{
-#if not CLEAN25
- part("Attached Documents"; "Document Attachment Factbox")
- {
- ObsoleteTag = '25.0';
- ObsoleteState = Pending;
- ObsoleteReason = 'The "Document Attachment FactBox" has been replaced by "Doc. Attachment List Factbox", which supports multiple files upload.';
- ApplicationArea = All;
- Caption = 'Attachments';
- SubPageLink = "Table ID" = const(Database::"Posted Compensation Header CZC"), "No." = field("No.");
- }
-#endif
part("Attached Documents List"; "Doc. Attachment List Factbox")
{
ApplicationArea = All;
@@ -309,4 +298,4 @@ page 31279 "Posted Compensation List CZC"
var
HasIncomingDocument: Boolean;
-}
+}
\ No newline at end of file
diff --git a/Apps/CZ/CompensationLocalization/app/Src/Reports/Compensation.rdl b/Apps/CZ/CompensationLocalization/app/Src/Reports/Compensation.rdl
index 42d8405cec..2d568c0f92 100644
--- a/Apps/CZ/CompensationLocalization/app/Src/Reports/Compensation.rdl
+++ b/Apps/CZ/CompensationLocalization/app/Src/Reports/Compensation.rdl
@@ -92,13 +92,13 @@ Cstr(Fields!RegistrationNoLbl.Value)
- 1.44165cm
+ 1.5cm
1.55641cm
- 2.5cm
+ 2.25102cm
1.89146cm
@@ -107,7 +107,7 @@ Cstr(Fields!RegistrationNoLbl.Value)
1.12415cm
- 1.30937cm
+ 1.5cm
2.02374cm
@@ -891,13 +891,13 @@ Cstr(Fields!RegistrationNoLbl.Value)
- 1.44165cm
+ 1.5cm
1.55641cm
- 2.5cm
+ 2.25102cm
1.89146cm
@@ -906,7 +906,7 @@ Cstr(Fields!RegistrationNoLbl.Value)
1.12415cm
- 1.30937cm
+ 1.5cm
2.02374cm
diff --git a/Apps/CZ/CompensationLocalization/app/Src/Reports/PostedCompensation.rdl b/Apps/CZ/CompensationLocalization/app/Src/Reports/PostedCompensation.rdl
index 930d6b84ec..5ec48f8e99 100644
--- a/Apps/CZ/CompensationLocalization/app/Src/Reports/PostedCompensation.rdl
+++ b/Apps/CZ/CompensationLocalization/app/Src/Reports/PostedCompensation.rdl
@@ -92,13 +92,13 @@ Cstr(Fields!RegistrationNoLbl.Value)
- 1.44165cm
+ 1.5cm
1.55641cm
- 2.5cm
+ 2.28102cm
1.89146cm
@@ -107,7 +107,7 @@ Cstr(Fields!RegistrationNoLbl.Value)
1.12415cm
- 1.30937cm
+ 1.5cm
2.02374cm
@@ -879,7 +879,7 @@ Cstr(Fields!RegistrationNoLbl.Value)
0.69533cm
1.39311cm
- 17.97cm
+ 18cm
1
+
+ 3333333333333333333333333333333333333
+
+
@@ -1080,6 +1086,12 @@ Cstr(Fields!RegistrationNoLbl.Value)
7pt
+
+ 3
+
+
@@ -1676,7 +1688,7 @@ Cstr(Fields!RegistrationNoLbl.Value)
2.52945cm
1.39311cm
- 17.97cm
+ 18cm
2
@@ -111,7 +111,7 @@
- =Fields!greVendor_Name.Value
+ =Fields!greVendor_Name.Value
@@ -149,7 +149,7 @@
-
+
@@ -183,7 +183,7 @@
-
+
@@ -217,7 +217,7 @@
-
+
@@ -251,7 +251,7 @@
-
+
@@ -285,7 +285,7 @@
-
+
@@ -324,7 +324,7 @@
- =Fields!Vendor_Ledger_Entry__Posting_Date_.Value
+ =Fields!Vendor_Ledger_Entry__Posting_Date_.Value
@@ -356,7 +356,7 @@
- =Fields!Vendor_Ledger_Entry__Document_Type_.Value
+ =Fields!Vendor_Ledger_Entry__Document_Type_.Value
@@ -387,7 +387,7 @@
- =Fields!Vendor_Ledger_Entry__Document_No__.Value
+ =Fields!Vendor_Ledger_Entry__Document_No__.Value
@@ -418,7 +418,7 @@
- =Fields!Vendor_Ledger_Entry_External_Document_No.Value
+ =Fields!Vendor_Ledger_Entry_External_Document_No.Value
@@ -450,7 +450,7 @@
- =Fields!Vendor_Ledger_Entry_Description.Value
+ =Fields!Vendor_Ledger_Entry_Description.Value
@@ -481,7 +481,7 @@
- =Fields!Vendor_Ledger_Entry__Due_Date_.Value
+ =Fields!Vendor_Ledger_Entry__Due_Date_.Value
@@ -512,7 +512,7 @@
- =Fields!ginDaysAfterDue.Value
+ =Fields!ginDaysAfterDue.Value
@@ -544,7 +544,7 @@
- =Fields!greGLSetup__LCY_Code_.Value
+ =Fields!greGLSetup__LCY_Code_.Value
@@ -576,7 +576,7 @@
- =Fields!Vendor_Ledger_Entry__Original_Amt___LCY__.Value
+ =Fields!Vendor_Ledger_Entry__Original_Amt___LCY__.Value
@@ -677,7 +677,7 @@
-
+
@@ -709,7 +709,7 @@
-
+
@@ -741,7 +741,7 @@
-
+
@@ -773,7 +773,7 @@
-
+
@@ -805,7 +805,7 @@
-
+
@@ -837,7 +837,7 @@
-
+
@@ -869,7 +869,7 @@
- =Fields!gcoCurrency.Value
+ =Fields!gcoCurrency.Value
@@ -901,7 +901,7 @@
- =Fields!Vendor_Ledger_Entry__Original_Amount_.Value
+ =Fields!Vendor_Ledger_Entry__Original_Amount_.Value
@@ -1002,7 +1002,7 @@
-
+
@@ -1034,7 +1034,7 @@
-
+
@@ -1066,7 +1066,7 @@
-
+
@@ -1098,7 +1098,7 @@
-
+
@@ -1130,7 +1130,7 @@
- =Fields!TotalCaption.Value
+ =Fields!TotalCaption.Value
@@ -1166,7 +1166,7 @@
- =Fields!greGLSetup__LCY_Code_.Value
+ =Fields!greGLSetup__LCY_Code_.Value
@@ -1198,7 +1198,7 @@
- =Sum(Fields!Vendor_Ledger_Entry__Original_Amt___LCY__.Value)
+ =Sum(Fields!Vendor_Ledger_Entry__Original_Amt___LCY__.Value)
@@ -1300,7 +1300,7 @@
- =Fields!greVendor_Name.Value
+ =Fields!greVendor_Name.Value
@@ -1335,7 +1335,7 @@
-
+
@@ -1367,7 +1367,7 @@
-
+
@@ -1399,7 +1399,7 @@
- =Fields!greGLSetup__LCY_Code_.Value
+ =Fields!greGLSetup__LCY_Code_.Value
@@ -1431,7 +1431,7 @@
- =Sum(Fields!Vendor_Ledger_Entry__Original_Amt___LCY__.Value)
+ =Sum(Fields!Vendor_Ledger_Entry__Original_Amt___LCY__.Value)
@@ -1633,7 +1633,7 @@
- =Fields!greTCurrencyBuffer__No__.Value
+ =Fields!greTCurrencyBuffer__No__.Value
@@ -1665,7 +1665,7 @@
- =Fields!greTCurrencyBuffer__Balance_after_Posting_.Value
+ =Fields!greTCurrencyBuffer__Balance_after_Posting_.Value
@@ -1836,7 +1836,7 @@
- =Fields!BalanceCaption1.Value
+ =Fields!BalanceCaption1.Value
@@ -1870,7 +1870,7 @@
- =Fields!BalanceCaption2.Value
+ =Fields!BalanceCaption2.Value
@@ -1904,7 +1904,7 @@
- =Fields!BalanceCaption3.Value
+ =Fields!BalanceCaption3.Value
@@ -1938,7 +1938,7 @@
- =Fields!BalanceCaption4.Value
+ =Fields!BalanceCaption4.Value
@@ -1972,7 +1972,7 @@
- =Fields!BalanceCaption5.Value
+ =Fields!BalanceCaption5.Value
@@ -2006,7 +2006,7 @@
- =Fields!BalanceCaption6.Value
+ =Fields!BalanceCaption6.Value
@@ -2040,7 +2040,7 @@
- =Fields!BalanceCaption7.Value
+ =Fields!BalanceCaption7.Value
@@ -2079,7 +2079,7 @@
- =Fields!greGLSetup__LCY_Code_.Value
+ =Fields!greGLSetup__LCY_Code_.Value
@@ -2113,7 +2113,7 @@
- =LAST(Fields!gdeBalance_1_.Value)
+ =LAST(Fields!gdeBalance_1_.Value)
@@ -2537,7 +2537,7 @@
- =Fields!greGLSetup__LCY_Code__Control72.Value
+ =Fields!greGLSetup__LCY_Code__Control72.Value
@@ -2569,7 +2569,7 @@
- =Fields!greTTotalCurrencyBuffer__Balance_after_Posting_.Value
+ =Fields!greTTotalCurrencyBuffer__Balance_after_Posting_.Value
@@ -2674,7 +2674,7 @@
- =Fields!greTTotalCurrencyBuffer__No__.Value
+ =Fields!greTTotalCurrencyBuffer__No__.Value
@@ -2706,7 +2706,7 @@
- =Fields!greTTotalCurrencyBuffer__Balance_after_Posting__Control1104000009.Value
+ =Fields!greTTotalCurrencyBuffer__Balance_after_Posting__Control1104000009.Value
@@ -2907,7 +2907,7 @@
- =Fields!BalanceTCaption1.Value
+ =Fields!BalanceTCaption1.Value
@@ -2941,7 +2941,7 @@
- =Fields!BalanceTCaption2.Value
+ =Fields!BalanceTCaption2.Value
@@ -2975,7 +2975,7 @@
- =Fields!BalanceTCaption3.Value
+ =Fields!BalanceTCaption3.Value
@@ -3009,7 +3009,7 @@
- =Fields!BalanceTCaption4.Value
+ =Fields!BalanceTCaption4.Value
@@ -3043,7 +3043,7 @@
- =Fields!BalanceTCaption5.Value
+ =Fields!BalanceTCaption5.Value
@@ -3077,7 +3077,7 @@
- =Fields!BalanceTCaption6.Value
+ =Fields!BalanceTCaption6.Value
@@ -3111,7 +3111,7 @@
- =Fields!BalanceTCaption7.Value
+ =Fields!BalanceTCaption7.Value
@@ -3150,7 +3150,7 @@
- =Fields!greGLSetup__LCY_Code__Control72.Value
+ =Fields!greGLSetup__LCY_Code__Control72.Value
@@ -3184,7 +3184,7 @@
- =Fields!gdeBalanceT_1_.Value
+ =Fields!gdeBalanceT_1_.Value
@@ -3579,7 +3579,7 @@
-
+
@@ -3611,7 +3611,7 @@
-
+
@@ -3648,7 +3648,7 @@
- =Fields!greGLAcc_FIELDCAPTION__No___.Value
+ =Fields!greGLAcc_FIELDCAPTION__No___.Value
@@ -3681,7 +3681,7 @@
- =Fields!greGLAcc_FIELDCAPTION_Name_.Value
+ =Fields!greGLAcc_FIELDCAPTION_Name_.Value
@@ -3713,7 +3713,7 @@
- =Fields!greGLAcc_FIELDCAPTION__Balance_at_Date__.Value
+ =Fields!greGLAcc_FIELDCAPTION__Balance_at_Date__.Value
@@ -3747,7 +3747,7 @@
- =Fields!greGLAcc__Net_Change_Caption.Value
+ =Fields!greGLAcc__Net_Change_Caption.Value
@@ -3781,7 +3781,7 @@
- =Fields!greTGLAccBuffer__Balance_after_Posting____greGLAcc__Net_Change_Caption.Value
+ =Fields!greTGLAccBuffer__Balance_after_Posting____greGLAcc__Net_Change_Caption.Value
@@ -3820,7 +3820,7 @@
- =Fields!greTGLAccBuffer__No__.Value
+ =Fields!greTGLAccBuffer__No__.Value
@@ -3853,7 +3853,7 @@
- =Fields!greGLAcc_Name.Value
+ =Fields!greGLAcc_Name.Value
@@ -3885,7 +3885,7 @@
- =Fields!greTGLAccBuffer__Balance_after_Posting_.Value
+ =Fields!greTGLAccBuffer__Balance_after_Posting_.Value
@@ -4022,7 +4022,7 @@
-
+
@@ -4054,7 +4054,7 @@
- =Sum(Fields!greTGLAccBuffer__Balance_after_Posting_.Value)
+ =Sum(Fields!greTGLAccBuffer__Balance_after_Posting_.Value)
@@ -4285,7 +4285,7 @@
- =User!UserID
+ =User!UserID
@@ -4311,7 +4311,7 @@
- =Globals!ExecutionTime
+ =Globals!ExecutionTime
@@ -4360,7 +4360,7 @@
- =First(Fields!STRSUBSTNO_gtcText000_gteVendDateFilter_.Value, "DataSet_Result")
+ =First(Fields!STRSUBSTNO_gtcText000_gteVendDateFilter_.Value, "DataSet_Result")
@@ -4384,7 +4384,7 @@
- =First(Fields!CurrReport_PAGENOCaption.Value, "DataSet_Result")
+ =First(Fields!CurrReport_PAGENOCaption.Value, "DataSet_Result")
@@ -4408,7 +4408,7 @@
- =First(Fields!Open_Vendor_Entries_at_DateCaption.Value, "DataSet_Result")
+ =First(Fields!Open_Vendor_Entries_at_DateCaption.Value, "DataSet_Result")
@@ -4488,7 +4488,7 @@
- =First(Fields!Vendor_Ledger_Entry__TABLECAPTION__________gteLedgEntryFilter.Value, "DataSet_Result")
+ =First(Fields!Vendor_Ledger_Entry__TABLECAPTION__________gteLedgEntryFilter.Value, "DataSet_Result")
@@ -4519,7 +4519,7 @@
- =First(Fields!VendorNoCaption.Value, "DataSet_Result")
+ =First(Fields!VendorNoCaption.Value, "DataSet_Result")
@@ -4552,7 +4552,7 @@
- =FIRST(Fields!VendorNameCaption.Value, "DataSet_Result")
+ =FIRST(Fields!VendorNameCaption.Value, "DataSet_Result")
@@ -4587,7 +4587,7 @@
- =first(Fields!CurrencyCodeCaption.Value, "DataSet_Result")
+ =first(Fields!CurrencyCodeCaption.Value, "DataSet_Result")
@@ -4622,7 +4622,7 @@
- =first(Fields!OriginalAmountCaption.Value, "DataSet_Result")
+ =first(Fields!OriginalAmountCaption.Value, "DataSet_Result")
@@ -4659,7 +4659,7 @@