-
Notifications
You must be signed in to change notification settings - Fork 687
Closed
Labels
FinanceGitHub request for Finance areaGitHub request for Finance areaevent-requestRequest for adding an eventRequest for adding an eventships-in-future-updateFix ships in a future updateFix ships in a future update
Description
Describe the request
Hello, can you please add a new Event OnAdjustExchRateCustAfterCalcFields in codeunit 699 "Exch. Rate Adjmt. Process"?
procedure AdjustExchRateCust(GenJournalLine: Record "Gen. Journal Line"; var TempCustLedgerEntry: Record "Cust. Ledger Entry" temporary)
var
Customer: Record Customer;
CustLedgerEntry2: Record "Cust. Ledger Entry";
DetailedCustLedgEntry: Record "Detailed Cust. Ledg. Entry";
PostingDate2: Date;
begin
PostingDate2 := GenJournalLine."Posting Date";
if TempCustLedgerEntry.FindSet() then
repeat
CustLedgerEntry2.Get(TempCustLedgerEntry."Entry No.");
CustLedgerEntry2.SetRange("Date Filter", 0D, PostingDate2);
CustLedgerEntry2.CalcFields("Remaining Amount", "Remaining Amt. (LCY)");
OnAdjustExchRateCustAfterCalcFields(CustLedgerEntry2);
if ShouldAdjustEntry(
PostingDate2, CustLedgerEntry2."Currency Code", CustLedgerEntry2."Remaining Amount",
CustLedgerEntry2."Remaining Amt. (LCY)", CustLedgerEntry2."Adjusted Currency Factor")
then begin
[IntegrationEvent(false, false)]
local procedure OnAdjustExchRateCustAfterCalcFields(var CustomerLedgerEntry: Record "Cust. Ledger Entry")
begin
end;
Additional context
We have additional values to calculate the Remaining Amount and need to recalculate it to get the correct output of ShouldAdjustEntry.
Internal work item: AB#546848
Metadata
Metadata
Assignees
Labels
FinanceGitHub request for Finance areaGitHub request for Finance areaevent-requestRequest for adding an eventRequest for adding an eventships-in-future-updateFix ships in a future updateFix ships in a future update