...
END
END;
// Delete the following line.
PROCEDURE GetLedgerEntryDataForCustVend@1120007(TransactionNo@1120000 : Integer;VAR PartyNo@1120011 : Code[20];VAR PartyName@1120012 : Text[50];VAR FCYAmount@1120013 : Text[250];VAR CurrencyCode@1120014 : Code[10];VAR PayRecAccount@1120044 : Code[20]);
VAR
CustLedgerEntry@1120005 : Record 21;
VendorLedgerEntry@1120006 : Record 25;
...
...
END
END;
// Add the following line.
PROCEDURE GetLedgerEntryDataForCustVend@1120007(TransactionNo@1120000 : Integer;VAR PartyNo@1120011 : Code[20];VAR PartyName@1120012 : Text[50];VAR FCYAmount@1120013 : Text[250];VAR CurrencyCode@1120014 : Code[10]);
VAR
CustLedgerEntry@1120005 : Record 21;
VendorLedgerEntry@1120006 : Record 25;
...
...
VAR
CustLedgerEntry@1120005 : Record 21;
VendorLedgerEntry@1120006 : Record 25;
// Delete the following lines.
CountOfGLEntriesInTransaction@1120001 : Integer;
BEGIN
CustLedgerEntry.SETRANGE("Transaction No.",TransactionNo);
IF CustLedgerEntry.FINDFIRST AND (CustLedgerEntry.COUNT = 1) THEN BEGIN
// End of the deleted lines.
GetCustomerLedgerEntryData(CustLedgerEntry,PartyNo,PartyName,FCYAmount,CurrencyCode);
EXIT;
END;
...
...
VAR
CustLedgerEntry@1120005 : Record 21;
VendorLedgerEntry@1120006 : Record 25;
// Add the following lines.
BEGIN
CustLedgerEntry.SETRANGE("Transaction No.",TransactionNo);
IF CustLedgerEntry.FINDFIRST THEN BEGIN
PayRecAccount := GetReceivablesAccount(CustLedgerEntry."Customer Posting Group");
CustLedgerEntry.SETFILTER("Customer No.",'<>%1',CustLedgerEntry."Customer No.");
IF CustLedgerEntry.FINDFIRST THEN BEGIN
PartyName := 'multi-clients';
PartyNo := '*';
END ELSE
// End of the added lines.
GetCustomerLedgerEntryData(CustLedgerEntry,PartyNo,PartyName,FCYAmount,CurrencyCode);
EXIT;
END;
...
...
END;
VendorLedgerEntry.SETRANGE("Transaction No.",TransactionNo);
// Delete the following line.
IF VendorLedgerEntry.FINDFIRST AND (VendorLedgerEntry.COUNT = 1) THEN BEGIN
GetVendorLedgerEntryData(VendorLedgerEntry,PartyNo,PartyName,FCYAmount,CurrencyCode);
END
END;
...
...
END;
VendorLedgerEntry.SETRANGE("Transaction No.",TransactionNo);
// Add the following lines.
IF VendorLedgerEntry.FINDFIRST THEN BEGIN
PayRecAccount := GetPayablesAccount(VendorLedgerEntry."Vendor Posting Group");
VendorLedgerEntry.SETFILTER("Vendor No.",'<>%1',VendorLedgerEntry."Vendor No.");
IF VendorLedgerEntry.FINDFIRST THEN BEGIN
PartyName := 'multi-fournisseurs';
PartyNo := '*';
END ELSE
// End of the added lines.
GetVendorLedgerEntryData(VendorLedgerEntry,PartyNo,PartyName,FCYAmount,CurrencyCode);
END
END;
...