aobsgit
aobsgit
local procedure PostDirectApplication(PreviewMode: Boolean) var . . . >>>IsHandled: Boolean; begin >>>IsHandled := false; OnBeforePostDirectApplication(Rec, PreviewMode, IsHandled); if IsHandled then exit; if CalcType = CalcType::Direct then begin . . ....
local procedure CalcApplnAmountToApply(AmountToApply: Decimal): Decimal var ApplnAmountToApply: Decimal; begin ValidExchRate := true; if ApplnCurrencyCode = "Currency Code" then exit(AmountToApply); if ApplnDate = 0D then ApplnDate := "Posting Date"; ApplnAmountToApply :=...
local procedure CalcApplnRemainingAmount(Amt: Decimal): Decimal var ApplnRemainingAmount: Decimal; begin ValidExchRate := true; if ApplnCurrencyCode = "Currency Code" then exit(Amt); if ApplnDate = 0D then ApplnDate := "Posting Date"; ApplnRemainingAmount :=...
local procedure FindApplyingEntry() begin if CalcType = CalcType::Direct then begin EmplEntryApplID := UserId; if EmplEntryApplID = '' then EmplEntryApplID := '***'; EmplLedgEntry.SetCurrentKey("Employee No.", "Applies-to ID", Open); EmplLedgEntry.SetRange("Employee No.", "Employee No.");...
trigger OnQueryClosePage(CloseAction: Action): Boolean begin if CloseAction = ACTION::LookupOK then LookupOKOnPush; if ApplnType = ApplnType::"Applies-to Doc. No." then begin >>>OLD CODE if OK and (TempApplyingEmplLedgEntry."Posting Date" < "Posting Date") then...
procedure SetApplyingEmplLedgEntry() var Employee: Record Employee; begin >>>OnBeforeSetApplyingEmplLedgEntry(AppliedEmplLedgEntry, GenJnlLine); case CalcType of CalcType::Direct: . . . >>> [IntegrationEvent(true, false)] local procedure OnBeforeSetApplyingEmplLedgEntry(var ApplyingEmplLedgEntry: Record "Employee Ledger Entry"; GenJournalLine: Record "Gen....
procedure SetEmplApplId() begin if (CalcType = CalcType::GenJnlLine) and (TempApplyingEmplLedgEntry."Posting Date" < "Posting Date") then Error( EarlierPostingDateErr, TempApplyingEmplLedgEntry."Document Type", TempApplyingEmplLedgEntry."Document No.", "Document Type", "Document No."); if TempApplyingEmplLedgEntry."Entry No." 0 then GenJnlApply.CheckAgainstApplnCurrency(...
>>>OLD CODE local procedure CalcApplnAmount() begin . . . >>>NEW CODE procedure CalcApplnAmount() begin . . .
>>>OLD CODE local procedure CheckRounding() begin >>>NEW CODE procedure CheckRounding() begin
[Additional Parameter Request] Codeunit 11 Gen. Jnl.-Check Line - OnBeforeCheckPurchDocNoIsNotUsed
Could you please add additional parameter (Record "Gen. Journal Line") to OnBeforeCheckPurchDocNoIsNotUsed in CU11. Somehow related issue is #4332. >>>OLD CODE procedure CheckPurchDocNoIsNotUsed(var GenJournalLine: Record "Gen. Journal Line") var OldVendLedgEntry:...