Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
07e5c6a
Port NAV Extract-ES-Cartera changes from bugs branch
Alexander-Ya Jul 1, 2026
d38b5ca
Update CH change
Alexander-Ya Jul 1, 2026
83ccd1b
Update event comments
Alexander-Ya Jul 1, 2026
7ae22ff
Add event comments for Purch Post
Alexander-Ya Jul 1, 2026
225bfe9
Move changes objects from NAV PR
Alexander-Ya Jul 1, 2026
386e97a
Add missing changes
Alexander-Ya Jul 1, 2026
9c25985
Add missing changes
Alexander-Ya Jul 2, 2026
2949c4e
Update Receivables/Payables
Alexander-Ya Jul 2, 2026
152e6b8
Update Navigate
Alexander-Ya Jul 2, 2026
ab88360
Add missing changes
Alexander-Ya Jul 2, 2026
39f1293
Add more extractions
Alexander-Ya Jul 3, 2026
a742199
Update CRTGenJnlPostLine codeunit
Alexander-Ya Jul 3, 2026
2a67fd0
Update for review comments
Alexander-Ya Jul 3, 2026
bf207a2
Fix merge
Alexander-Ya Jul 3, 2026
3032fae
Update file name
Alexander-Ya Jul 3, 2026
6aa719f
Fix compile errors
Alexander-Ya Jul 4, 2026
fc36957
Fix code review issues
Alexander-Ya Jul 4, 2026
8d3dc2b
Process review comments and fix issues
Alexander-Ya Jul 4, 2026
dc71072
Fix ES and IT builds
Alexander-Ya Jul 5, 2026
2cfad94
Revert one change
Alexander-Ya Jul 5, 2026
42fbd72
Sync changes
Alexander-Ya Jul 20, 2026
6521cea
Fix compile error
Alexander-Ya Jul 20, 2026
a01e1a2
Sync recent changes
Alexander-Ya Jul 25, 2026
3a0fa09
Update subscribers license property
Alexander-Ya Jul 25, 2026
5621c8f
Fix compile error
Alexander-Ya Jul 25, 2026
910a3b1
Update more codeunits
Alexander-Ya Jul 25, 2026
70c6666
Fix compile error
Alexander-Ya Jul 25, 2026
9e00563
Fix compile errors
Alexander-Ya Jul 26, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ codeunit 11 "Gen. Jnl.-Check Line"
exit;

GenJournalLine.TestField("Document No.", ErrorInfo.Create());

OnAfterTestDocumentNo(GenJournalLine);
end;

local procedure TestAccountAndBalAccountType(var GenJnlLine: Record "Gen. Journal Line")
Expand Down Expand Up @@ -1563,6 +1565,15 @@ codeunit 11 "Gen. Jnl.-Check Line"
begin
end;

/// <summary>
/// Integration event raised after validating document number field requirements for journal lines.
/// </summary>
/// <param name="GenJournalLine">Journal line record being validated for document number requirements.</param>
[IntegrationEvent(false, false)]
local procedure OnAfterTestDocumentNo(GenJournalLine: Record "Gen. Journal Line")
begin
end;

/// <summary>
/// Integration event raised before validating document number field requirements for journal lines.
/// Enables custom logic to completely override standard document number validation processing.
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
// ------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -864,7 +864,7 @@ codeunit 12 "Gen. Jnl.-Post Line"
VATEntry."Sett. Unrealised Base (FCY)" := GenJnlLine."Source Curr. VAT Base Amount";
VATEntry.Adjustment := GenJnlLine.Adjustment;
SetBASFields(VATEntry, GenJnlLine."BAS Doc. No.", GenJnlLine."BAS Version", GenJnlLine."BAS Adjustment");
OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine, VATEntry, CurrExchRate);
OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine, VATEntry, CurrExchRate, VATPostingSetup);
GenJnlLine."BAS Adjustment" := false;

if GenJnlLine."VAT Difference" = 0 then
Expand Down Expand Up @@ -12210,7 +12210,7 @@ codeunit 12 "Gen. Jnl.-Post Line"
end;

[IntegrationEvent(false, false)]
local procedure OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine: Record "Gen. Journal Line"; var VATEntry: Record "VAT Entry"; CurrExchRate: Record "Currency Exchange Rate")
local procedure OnInsertVATOnAfterAssignVATEntryFields(var GenJnlLine: Record "Gen. Journal Line"; var VATEntry: Record "VAT Entry"; CurrExchRate: Record "Currency Exchange Rate"; var VATPostingSetup: Record "VAT Posting Setup")
begin
end;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,8 @@ codeunit 227 "VendEntry-Apply Posted Entries"
CheckAdditionalCurrency(ApplyUnapplyParameters."Posting Date", DtldVendLedgEntry."Posting Date");
AddCurrChecked := true;
end;
CheckInitialDocumentType(
DtldVendLedgEntry, ApplyUnapplyParameters."Document No.", ApplyUnapplyParameters."Posting Date");
CheckReversal(DtldVendLedgEntry."Vendor Ledger Entry No.");
if DtldVendLedgEntry."Transaction No." <> 0 then
CheckUnappliedEntries(DtldVendLedgEntry);
Expand Down Expand Up @@ -442,6 +444,18 @@ codeunit 227 "VendEntry-Apply Posted Entries"
ExchRateAdjmtRunHandler.RunVendExchRateAdjustment(GenJnlLine, TempVendorLedgerEntry);
end;

local procedure CheckInitialDocumentType(var DtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry"; DocNo: Code[20]; PostingDate: Date)
var
IsHandled: Boolean;
begin
IsHandled := false;
OnBeforeCheckInitialDocumentType(DtldVendLedgEntry, DocNo, PostingDate, IsHandled);
if IsHandled then
exit;

OnAfterCheckInitialDocumentType(DtldVEndLedgEntry);
end;

local procedure CheckPostingDate(ApplyUnapplyParameters: Record "Apply Unapply Parameters"; var MaxPostingDate: Date)
var
GenJnlCheckLine: Codeunit "Gen. Jnl.-Check Line";
Expand Down Expand Up @@ -843,6 +857,27 @@ codeunit 227 "VendEntry-Apply Posted Entries"
begin
end;

/// <summary>
/// Raised after checking initial document Type
/// </summary>
/// <param name="DtldVendLedgEntry">The detailed vendor ledger entry.</param>
[IntegrationEvent(false, false)]
local procedure OnAfterCheckInitialDocumentType(var DtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry")
begin
end;

/// <summary>
/// Raised before checking initial document Type
/// </summary>
/// <param name="DtldVendLedgEntry">The detailed vendor ledger entry.</param>
/// <param name="DocNo">The document number.</param>
/// <param name="PostingDate">The posting date.</param>
/// <param name="IsHandled">Indicates whether the event is handled.</param>
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckInitialDocumentType(var DtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry"; DocNo: Code[20]; PostingDate: Date; var IsHandled: Boolean)
begin
end;

[IntegrationEvent(false, false)]
local procedure OnPostUnApplyVendorCommitOnBeforeFilterDtldVendLedgEntry(DetailedVendorLedgEntry2: Record "Detailed Vendor Ledg. Entry"; ApplyUnapplyParameters: Record "Apply Unapply Parameters")
begin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ using Microsoft.FixedAssets.FixedAsset;
using Microsoft.Foundation.Attachment;
using Microsoft.Foundation.AuditCodes;
using Microsoft.Foundation.NoSeries;
using Microsoft.Foundation.PaymentTerms;
using Microsoft.Intercompany.Partner;
using Microsoft.Purchases.History;
using Microsoft.Purchases.Remittance;
Expand Down Expand Up @@ -582,6 +583,13 @@ table 25 "Vendor Ledger Entry"
{
Caption = 'Prepayment';
}
field(91; "Payment Terms Code"; Code[10])
{
Caption = 'Payment Terms Code';
Editable = false;
TableRelation = "Payment Terms";
ToolTip = 'Specifies the payment terms that determine the due date and payment discount date for the entry.';
}
field(95; "G/L Register No."; Integer)
{
Caption = 'G/L Register No.';
Expand Down Expand Up @@ -1049,6 +1057,22 @@ table 25 "Vendor Ledger Entry"
exit('');
end;

procedure SetAppliesToDocFilters(var GenJnlLine: Record "Gen. Journal Line")
begin
SetRange("Document Type", GenJnlLine."Applies-to Doc. Type");
SetRange("Document No.", GenJnlLine."Applies-to Doc. No.");

OnAfterSetAppliesToDocFilters(Rec, GenJnlLine);
end;

procedure ClearDocumentFilters()
begin
SetRange("Document Type");
SetRange("Document No.");

OnAfterClearDocumentFilters(Rec);
end;

procedure CopyFromGenJnlLine(GenJnlLine: Record "Gen. Journal Line")
begin
"Vendor No." := GenJnlLine."Account No.";
Expand Down Expand Up @@ -1090,6 +1114,7 @@ table 25 "Vendor Ledger Entry"
"Creditor No." := GenJnlLine."Creditor No.";
"Payment Reference" := GenJnlLine."Payment Reference";
"Payment Method Code" := GenJnlLine."Payment Method Code";
"Payment Terms Code" := GenJnlLine."Payment Terms Code";
"Exported to Payment File" := GenJnlLine."Exported to Payment File";
Adjustment := GenJnlLine.Adjustment;
"BAS Adjustment" := GenJnlLine."BAS Adjustment";
Expand Down Expand Up @@ -1332,5 +1357,15 @@ table 25 "Vendor Ledger Entry"
local procedure OnBeforeUpdateAmountsForApplication(var VendorLedgerEntry: Record "Vendor Ledger Entry"; ApplnDate: Date; ApplnCurrencyCode: Code[10]; RoundAmounts: Boolean; UpdateMaxPaymentTolerance: Boolean; var IsHandled: Boolean)
begin
end;

[IntegrationEvent(false, false)]
local procedure OnAfterSetAppliesToDocFilters(var Rec: Record "Vendor Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line")
begin
end;

[IntegrationEvent(false, false)]
local procedure OnAfterClearDocumentFilters(var Rec: Record "Vendor Ledger Entry")
begin
end;
}

Loading
Loading