ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] Codeunit 31058 "Customer Vendor Balance CZL" - procedure FillCustomerVendorBuffer()
Hi there,
I would like to ask for a two new publishers in the codeunit 31058 "Customer Vendor Balance CZL", procedure FillCustomerVendorBuffer(). We need to fill additional fields:
procedure FillCustomerVendorBuffer(var TempCurrency: Record Currency temporary; var TempCVLedgerEntryBuffer: Record "CV Ledger Entry Buffer" temporary; CustomerNo: Code[20]; VendorNo: Code[20]; AtDate: Date; AmountsInCurrency: Boolean)
var
...
begin
...
if CustLedgerEntry.FindSet() then
repeat
CustLedgerEntry.SetFilter(CustLedgerEntry."Date Filter", '..%1', AtDate);
CustLedgerEntry.CalcFields(CustLedgerEntry."Remaining Amount");
if CustLedgerEntry."Remaining Amount" <> 0 then begin
NextEntryNo += 1;
TempCVLedgerEntryBuffer."Entry No." := NextEntryNo;
...
OnFillCustomerVendorBufferOnBeforeInsertCustLedgerEntry((TempCVLedgerEntryBuffer, CustLedgerEntry); // NEW EVENT
TempCVLedgerEntryBuffer.Insert();
if AmountsInCurrency then
if not TempCurrency.Get(CustLedgerEntry."Currency Code") then begin
TempCurrency.Code := CustLedgerEntry."Currency Code";
TempCurrency.Insert();
end;
end;
until CustLedgerEntry.Next() = 0;
...
if VendorLedgerEntry.FindSet() then
repeat
VendorLedgerEntry.SetFilter(VendorLedgerEntry."Date Filter", '..%1', AtDate);
VendorLedgerEntry.CalcFields(VendorLedgerEntry."Remaining Amount");
if VendorLedgerEntry."Remaining Amount" <> 0 then begin
NextEntryNo += 1;
TempCVLedgerEntryBuffer."Entry No." := NextEntryNo;
...
OnFillCustomerVendorBufferOnBeforeInsertVendorLedgerEntry(TempCVLedgerEntryBuffer, VendorLedgerEntry); // NEW EVENT
TempCVLedgerEntryBuffer.Insert();
if AmountsInCurrency then
if not TempCurrency.Get(VendorLedgerEntry."Currency Code") then begin
TempCurrency.Code := VendorLedgerEntry."Currency Code";
TempCurrency.Insert();
end;
end;
until VendorLedgerEntry.Next() = 0;
end;
[IntegrationEvent(false, false)]
local procedure OnFillCustomerVendorBufferOnBeforeInsertCustLedgerEntry(var TempCVLedgerEntryBuffer: Record "CV Ledger Entry Buffer" temporary; CustLedgerEntry: Record "Cust. Ledger Entry")
begin
end;
[IntegrationEvent(false, false)]
local procedure OnFillCustomerVendorBufferOnBeforeInsertVendorLedgerEntry(var TempCVLedgerEntryBuffer: Record "CV Ledger Entry Buffer" temporary; VendorLedgerEntry: Record "Vendor Ledger Entry")
begin
end;
Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 10306.