Skip to content

Commit 0b8a1c1

Browse files
committed
Syncing with version 26.0.28476.0
1 parent a1f3920 commit 0b8a1c1

File tree

138 files changed

+15212
-11700
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+15212
-11700
lines changed

.github/AL-Go-Settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"runs-on": "windows-latest",
66
"cacheImageName": "",
77
"UsePsSession": false,
8-
"artifact": "https://bcinsider-fvh2ekdjecfjd6gk.b02.azurefd.net/sandbox/26.0.28000.0/base",
8+
"artifact": "https://bcinsider-fvh2ekdjecfjd6gk.b02.azurefd.net/sandbox/26.0.28476.0/base",
99
"country": "base",
1010
"useProjectDependencies": true,
1111
"repoVersion": "26.0",

Apps/AT/ContosoCoffeeDemoDatasetAT/app/Demo Data/Finance/2. Master Data/CreateVatStatementNameAT.Codeunit.al

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
codeunit 11189 "Create VAT Statement NameAT"
1+
codeunit 11189 "Create VAT Statement Name AT"
22
{
33
InherentEntitlements = X;
44
InherentPermissions = X;
55

66
trigger OnRun()
77
var
88
CreateVATStatement: Codeunit "Create VAT Statement";
9-
ContosoVatStatmentES: Codeunit "Contoso Vat Statment ES";
9+
ContosoVATStatement: Codeunit "Contoso VAT Statement";
1010
begin
11-
ContosoVatStatmentES.InsertVATStatementName(CreateVATStatement.VATTemplateName(), StatementUstvaLbl, VATStatementGermanyDescLbl);
11+
ContosoVATStatement.InsertVATStatementName(CreateVATStatement.VATTemplateName(), StatementUstvaLbl, VATStatementGermanyDescLbl);
1212
end;
1313

1414
var

Apps/AT/ContosoCoffeeDemoDatasetAT/app/Demo Tool/Contoso Helpers/ContosoVatStatmentES.Codeunit.al

-37
This file was deleted.

Apps/AT/ContosoCoffeeDemoDatasetAT/app/Demo Tool/ContosoATLocalization.Codeunit.al

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ codeunit 11157 "Contoso AT Localization"
6969
Codeunit.Run(Codeunit::"Create Currency Ex. Rate AT");
7070
Codeunit.Run(Codeunit::"Create Resource AT");
7171
Codeunit.Run(Codeunit::"Create VAT Template AT");
72-
Codeunit.Run(Codeunit::"Create VAT Statement NameAT");
72+
Codeunit.Run(Codeunit::"Create VAT Statement Name AT");
7373
Codeunit.Run(Codeunit::"Create VAT Statement Line AT");
7474
end;
7575
end;

Apps/CZ/AdvancePaymentsLocalization/app/Src/Reports/SalesAdvanceLetter.rdl

+4-5
Original file line numberDiff line numberDiff line change
@@ -2621,6 +2621,7 @@ Cstr(Fields!PageLbl.Value)</Value>
26212621
</Style>
26222622
</Tablix>
26232623
<Textbox Name="QRCode">
2624+
<CanGrow>true</CanGrow>
26242625
<KeepTogether>true</KeepTogether>
26252626
<Paragraphs>
26262627
<Paragraph>
@@ -2637,9 +2638,9 @@ Cstr(Fields!PageLbl.Value)</Value>
26372638
</Paragraph>
26382639
</Paragraphs>
26392640
<rd:DefaultName>QRCode</rd:DefaultName>
2640-
<Top>11.31545cm</Top>
2641-
<Left>14.3081cm</Left>
2642-
<Height>3.3441cm</Height>
2641+
<Top>11.00293cm</Top>
2642+
<Left>14.30806cm</Left>
2643+
<Height>3.6919cm</Height>
26432644
<Width>3.6919cm</Width>
26442645
<ZIndex>3</ZIndex>
26452646
<Visibility>
@@ -2696,7 +2697,6 @@ Cstr(Fields!PageLbl.Value)</Value>
26962697
</Border>
26972698
</Style>
26982699
</Rectangle>
2699-
<rd:Selected>true</rd:Selected>
27002700
</CellContents>
27012701
</TablixCell>
27022702
</TablixCells>
@@ -2930,7 +2930,6 @@ Cstr(Fields!PageLbl.Value)</Value>
29302930
<Style />
29312931
</Paragraph>
29322932
</Paragraphs>
2933-
<Top>0in</Top>
29342933
<Height>0.5cm</Height>
29352934
<Width>12cm</Width>
29362935
<Style>

Apps/CZ/AdvancePaymentsLocalization/app/Src/Reports/SalesInvoiceWithAdv.rdl

+4-4
Original file line numberDiff line numberDiff line change
@@ -4559,7 +4559,6 @@ Cstr(Fields!PageLbl.Value)</Value>
45594559
<PaddingBottom>2pt</PaddingBottom>
45604560
</Style>
45614561
</Textbox>
4562-
<rd:Selected>true</rd:Selected>
45634562
</CellContents>
45644563
</TablixCell>
45654564
</TablixCells>
@@ -6145,6 +6144,7 @@ Cstr(Fields!PageLbl.Value)</Value>
61456144
</Style>
61466145
</Tablix>
61476146
<Textbox Name="QRCode">
6147+
<CanGrow>true</CanGrow>
61486148
<KeepTogether>true</KeepTogether>
61496149
<Paragraphs>
61506150
<Paragraph>
@@ -6161,9 +6161,9 @@ Cstr(Fields!PageLbl.Value)</Value>
61616161
</Paragraph>
61626162
</Paragraphs>
61636163
<rd:DefaultName>QRCode</rd:DefaultName>
6164-
<Top>16.48437cm</Top>
6165-
<Left>14.30813cm</Left>
6166-
<Height>3.3441cm</Height>
6164+
<Top>16.13657cm</Top>
6165+
<Left>14.30806cm</Left>
6166+
<Height>3.6919cm</Height>
61676167
<Width>3.6919cm</Width>
61686168
<ZIndex>7</ZIndex>
61696169
<Visibility>

Apps/CZ/AdvancePaymentsLocalization/app/Src/Reports/SalesInvoicewithAdvCZZ.Report.al

+2-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ report 31018 "Sales - Invoice with Adv. CZZ"
307307
column(PrepaymentAmt_SalesInvoiceHeader; PrepaymentAmt)
308308
{
309309
}
310-
column(TotalAfterPrepayed_SalesInvoiceHeader; TotalAfterPrepayed)
310+
column(TotalAfterPrepayed_SalesInvoiceHeader; Format(TotalAfterPrepayed, 0, AutoFormat.ResolveAutoFormat(Enum::"Auto Format"::AmountFormat, "Sales Invoice Header"."Currency Code")))
311311
{
312312
}
313313
column(CalculatedExchRate; CalculatedExchRate)
@@ -816,6 +816,7 @@ report 31018 "Sales - Invoice with Adv. CZZ"
816816
ReasonCode: Record "Reason Code";
817817
ShipmentMethod: Record "Shipment Method";
818818
TempVATAmountLine: Record "VAT Amount Line" temporary;
819+
AutoFormat: Codeunit "Auto Format";
819820
CompanyAddr: array[8] of Text[100];
820821
CustAddr: array[8] of Text[100];
821822
ShipToAddr: array[8] of Text[100];

Apps/CZ/CompensationLocalization/app/Src/Pages/CompensationProposalCZC.Page.al

+4-2
Original file line numberDiff line numberDiff line change
@@ -205,15 +205,17 @@ page 31276 "Compensation Proposal CZC"
205205
FilteredCustLedgerEntry.SetRange(Open, true);
206206
FilteredCustLedgerEntry.SetRange(Prepayment, false);
207207
FilteredCustLedgerEntry.SetRange("Compensation Amount (LCY) CZC", 0);
208-
FilteredCustLedgerEntry.SetRange("On Hold", '');
208+
if not CompensationsSetupCZC."Including Entries with On Hold" then
209+
FilteredCustLedgerEntry.SetRange("On Hold", '');
209210
FilteredCustLedgerEntry.SetFilter("Posting Date", '<=%1', PostingDate);
210211
OnApplyFilterOnAfterSetCustLedgerEntryFilter(PostingDate, FilteredCustLedgerEntry);
211212

212213
Clear(FilteredVendorLedgerEntry);
213214
FilteredVendorLedgerEntry.SetRange(Open, true);
214215
FilteredVendorLedgerEntry.SetRange(Prepayment, false);
215216
FilteredVendorLedgerEntry.SetRange("Compensation Amount (LCY) CZC", 0);
216-
FilteredVendorLedgerEntry.SetRange("On Hold", '');
217+
if not CompensationsSetupCZC."Including Entries with On Hold" then
218+
FilteredVendorLedgerEntry.SetRange("On Hold", '');
217219
FilteredVendorLedgerEntry.SetFilter("Posting Date", '<=%1', PostingDate);
218220
OnApplyFilterOnAfterSetVendLedgerEntryFilter(PostingDate, FilteredVendorLedgerEntry);
219221

Apps/CZ/CompensationLocalization/app/Src/Pages/CompensationsSetupCZC.Page.al

+5
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ page 31270 "Compensations Setup CZC"
5151
ApplicationArea = Basic, Suite;
5252
ToolTip = 'Specifies which customer/vendor entries to display if the system does not find any. If the value in the field is set to "NO", the entries of all other partners will be displayed, if set to "YES", the page will be blank.';
5353
}
54+
field("Including Entries with On Hold"; Rec."Including Entries with On Hold")
55+
{
56+
ApplicationArea = Basic, Suite;
57+
ToolTip = 'Specifies if the entries with On Hold status will be included in the compensation proposal.';
58+
}
5459
}
5560
group(Numbering)
5661
{

Apps/CZ/CompensationLocalization/app/Src/Tables/CompensationLineCZC.Table.al

+14-4
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,20 @@ table 31273 "Compensation Line CZC"
9494

9595
trigger OnLookup()
9696
var
97+
CompensationsSetup: Record "Compensations Setup CZC";
9798
CustLedgerEntry: Record "Cust. Ledger Entry";
9899
VendorLedgerEntry: Record "Vendor Ledger Entry";
99100
begin
101+
CompensationsSetup.Get();
100102
case "Source Type" of
101103
"Source Type"::Customer:
102104
begin
103105
CustLedgerEntry.SetCurrentKey(Open);
104106
CustLedgerEntry.SetRange(Open, true);
105107
CustLedgerEntry.SetRange(Prepayment, false);
106108
CustLedgerEntry.SetRange("Compensation Amount (LCY) CZC", 0);
107-
CustLedgerEntry.SetRange("On Hold", '');
109+
if not CompensationsSetup."Including Entries with On Hold" then
110+
CustLedgerEntry.SetRange("On Hold", '');
108111
OnSourceEntryNoLookupOnAfterCustLedgerEntryFilter(CustLedgerEntry);
109112
if CustLedgerEntry.FindSet() then
110113
repeat
@@ -126,7 +129,8 @@ table 31273 "Compensation Line CZC"
126129
VendorLedgerEntry.SetRange(Open, true);
127130
VendorLedgerEntry.SetRange(Prepayment, false);
128131
VendorLedgerEntry.SetRange("Compensation Amount (LCY) CZC", 0);
129-
VendorLedgerEntry.SetRange("On Hold", '');
132+
if not CompensationsSetup."Including Entries with On Hold" then
133+
VendorLedgerEntry.SetRange("On Hold", '');
130134
OnSourceEntryNoLookupOnAfterCustLedgerEntryFilter(CustLedgerEntry);
131135
if VendorLedgerEntry.FindSet() then
132136
repeat
@@ -612,38 +616,44 @@ table 31273 "Compensation Line CZC"
612616

613617
local procedure CheckCustLedgerEntry(var CustLedgerEntry: Record "Cust. Ledger Entry")
614618
var
619+
CompensationsSetup: Record "Compensations Setup CZC";
615620
IsHandled: Boolean;
616621
begin
617622
IsHandled := false;
618623
OnBeforeCheckCustLedgerEntry(Rec, CustLedgerEntry, IsHandled);
619624
if IsHandled then
620625
exit;
621626

627+
CompensationsSetup.Get();
622628
if CustLedgerEntry."Entry No." = 0 then
623629
exit;
624630
CustLedgerEntry.TestField(Open, true);
625631
CustLedgerEntry.TestField(Prepayment, false);
626-
CustLedgerEntry.TestField("On Hold", '');
627632
CustLedgerEntry.TestField("Compensation Amount (LCY) CZC", 0);
633+
if not CompensationsSetup."Including Entries with On Hold" then
634+
CustLedgerEntry.TestField("On Hold", '');
628635
if CustLedgerEntry.RelatedToAdvanceLetterCZL() then
629636
Error(RelatedToAdvanceLetterErr, CustLedgerEntry.TableCaption(), CustLedgerEntry."Entry No.");
630637
end;
631638

632639
local procedure CheckVendorLedgerEntry(var VendorLedgerEntry: Record "Vendor Ledger Entry")
633640
var
641+
CompensationsSetup: Record "Compensations Setup CZC";
634642
IsHandled: Boolean;
635643
begin
636644
IsHandled := false;
637645
OnBeforeCheckVendorLedgerEntry(Rec, VendorLedgerEntry, IsHandled);
638646
if IsHandled then
639647
exit;
640648

649+
CompensationsSetup.Get();
641650
if VendorLedgerEntry."Entry No." = 0 then
642651
exit;
643652
VendorLedgerEntry.TestField(Open, true);
644653
VendorLedgerEntry.TestField(Prepayment, false);
645-
VendorLedgerEntry.TestField("On Hold", '');
646654
VendorLedgerEntry.TestField("Compensation Amount (LCY) CZC", 0);
655+
if not CompensationsSetup."Including Entries with On Hold" then
656+
VendorLedgerEntry.TestField("On Hold", '');
647657
if VendorLedgerEntry.RelatedToAdvanceLetterCZL() then
648658
Error(RelatedToAdvanceLetterErr, VendorLedgerEntry.TableCaption(), VendorLedgerEntry."Entry No.");
649659
end;

Apps/CZ/CompensationLocalization/app/Src/Tables/CompensationsSetupCZC.Table.al

+5
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ table 31270 "Compensations Setup CZC"
7575
Caption = 'Show Empty when not Found';
7676
DataClassification = CustomerContent;
7777
}
78+
field(45; "Including Entries with On Hold"; Boolean)
79+
{
80+
Caption = 'Including Entries with On Hold';
81+
DataClassification = CustomerContent;
82+
}
7883
}
7984

8085
keys

Apps/CZ/CoreLocalizationPack/app/Src/Codeunits/UserSetupAdvManagementCZL.Codeunit.al

+19-8
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,16 @@ codeunit 31072 "User Setup Adv. Management CZL"
8383
LocationQtyIncreaseErr: Label 'You have no right to post Location (quantity increase) with Location Code: %1. Check User Setup!', Comment = '%1 = Location Code';
8484
LocationQtyDecreaseErr: Label 'You have no right to post Location (quantity decrease) with Location Code: %1. Check User Setup!', Comment = '%1 = Location Code';
8585
begin
86-
if not CheckWorkDocDate(ItemJournalLine."Document Date") then
87-
ItemJournalLine.TestField("Document Date", WorkDate());
88-
if not CheckSysDocDate(ItemJournalLine."Document Date") then
89-
ItemJournalLine.TestField("Document Date", Today);
90-
if not CheckWorkPostingDate(ItemJournalLine."Posting Date") then
91-
ItemJournalLine.TestField("Posting Date", WorkDate());
92-
if not CheckSysPostingDate(ItemJournalLine."Posting Date") then
93-
ItemJournalLine.TestField("Posting Date", Today);
86+
if not IsUndoPosting(ItemJournalLine) then begin
87+
if not CheckWorkDocDate(ItemJournalLine."Document Date") then
88+
ItemJournalLine.TestField("Document Date", WorkDate());
89+
if not CheckSysDocDate(ItemJournalLine."Document Date") then
90+
ItemJournalLine.TestField("Document Date", Today);
91+
if not CheckWorkPostingDate(ItemJournalLine."Posting Date") then
92+
ItemJournalLine.TestField("Posting Date", WorkDate());
93+
if not CheckSysPostingDate(ItemJournalLine."Posting Date") then
94+
ItemJournalLine.TestField("Posting Date", Today);
95+
end;
9496

9597
// Location checks
9698
if ItemJournalLine."Value Entry Type" <> ItemJournalLine."Value Entry Type"::Revaluation then begin
@@ -135,6 +137,15 @@ codeunit 31072 "User Setup Adv. Management CZL"
135137
end;
136138
end;
137139

140+
local procedure IsUndoPosting(ItemJournalLine: Record "Item Journal Line"): Boolean
141+
begin
142+
exit(ItemJournalLine.Correction and
143+
(ItemJournalLine."Document Type" in [
144+
ItemJournalLine."Document Type"::"Purchase Receipt",
145+
ItemJournalLine."Document Type"::"Sales Shipment",
146+
ItemJournalLine."Document Type"::"Transfer Shipment"]));
147+
end;
148+
138149
[TryFunction]
139150
procedure CheckJobJournalLine(JobJournalLine: Record "Job Journal Line")
140151
begin

Apps/CZ/CoreLocalizationPack/app/Src/Codeunits/VATStatementHandlerCZL.Codeunit.al

+5-3
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ codeunit 31140 "VAT Statement Handler CZL"
111111
Parantheses, i, OperatorNo, VATStmtLineID : Integer;
112112
Operator: Char;
113113
LeftOperand, RightOperand : Text;
114-
LineTotalAmount, LineTotalBase : Decimal;
114+
LineTotalAmount, LineTotalBase : Decimal;
115115
LeftAmount, RightAmount : Decimal;
116116
LeftBase, RightBase : Decimal;
117117
ResultAmount, ResultBase : Decimal;
@@ -175,12 +175,14 @@ codeunit 31140 "VAT Statement Handler CZL"
175175
begin
176176
if RightAmount = 0 then begin
177177
ResultAmount := 0;
178-
Error(DivideByZeroErr);
178+
if LeftAmount <> 0 then
179+
Error(DivideByZeroErr);
179180
end else
180181
ResultAmount := LeftAmount / RightAmount;
181182
if RightBase = 0 then begin
182183
ResultBase := 0;
183-
Error(DivideByZeroErr);
184+
if LeftBase <> 0 then
185+
Error(DivideByZeroErr);
184186
end else
185187
ResultBase := LeftBase / RightBase;
186188
end;

0 commit comments

Comments
 (0)