...
VAR
Text000@1130000 : TextConst 'ENU=Please specify the Ending Date;ITA=Specificare Data fine';
VendorBillLine@1130001 : Record 12182;
EndingDate@1130002 : Date;
OnlyOpened@1130003 : Boolean;
RemainingAmountLCY@1130004 : Decimal;
...
...
VAR
Text000@1130000 : TextConst 'ENU=Please specify the Ending Date;ITA=Specificare Data fine';
VendorBillLine@1130001 : Record 12182;
// Add the following line.
TempDetailedVendorLedgEntryApplied@1130013 : TEMPORARY Record 380;
// End of the added line.
EndingDate@1130002 : Date;
OnlyOpened@1130003 : Boolean;
RemainingAmountLCY@1130004 : Decimal;
...
...
TotalVendorBillAmnt@1130010 : Decimal;
VendLedgEntry3@1130011 : Record 25;
VendorLedgerEmtryTypeINT@1102601000 : Integer;
BEGIN
END.
...
...
TotalVendorBillAmnt@1130010 : Decimal;
VendLedgEntry3@1130011 : Record 25;
VendorLedgerEmtryTypeINT@1102601000 : Integer;
// Add the following lines.
AppliedDocumentTypeText@1170000000 : Text[30];
LOCAL PROCEDURE FindAppliedDtldVendLedgEntry@1130007(VendorLedgerEntryNo@1130000 : Integer);
VAR
DetailedVendorLedgEntry@1130001 : Record 380;
DetailedVendorLedgEntryApplied@1130003 : Record 380;
BEGIN
TempDetailedVendorLedgEntryApplied.RESET;
TempDetailedVendorLedgEntryApplied.DELETEALL;
DetailedVendorLedgEntry.SETRANGE("Vendor Ledger Entry No.",VendorLedgerEntryNo);
DetailedVendorLedgEntry.SETRANGE("Entry Type",DetailedVendorLedgEntry."Entry Type"::Application);
DetailedVendorLedgEntry.SETRANGE(Unapplied,FALSE);
DetailedVendorLedgEntryApplied.SETRANGE(
"Entry Type",DetailedVendorLedgEntryApplied."Entry Type"::Application);
IF DetailedVendorLedgEntry.FINDSET THEN
REPEAT
DetailedVendorLedgEntryApplied.SETRANGE(
"Applied Vend. Ledger Entry No.",DetailedVendorLedgEntry."Applied Vend. Ledger Entry No.");
DetailedVendorLedgEntryApplied.SETFILTER(
"Vendor Ledger Entry No.",'<>%1',VendorLedgerEntryNo);
DetailedVendorLedgEntryApplied.SETRANGE(
"Vendor No.",DetailedVendorLedgEntry."Vendor No.");
DetailedVendorLedgEntryApplied.SETRANGE(
"Transaction No.",DetailedVendorLedgEntry."Transaction No.");
IF DetailedVendorLedgEntryApplied.FINDSET THEN
REPEAT
TempDetailedVendorLedgEntryApplied := DetailedVendorLedgEntryApplied;
IF TempDetailedVendorLedgEntryApplied.INSERT THEN;
UNTIL DetailedVendorLedgEntryApplied.NEXT = 0;
UNTIL DetailedVendorLedgEntry.NEXT = 0;
END;
// End of the added lines.
BEGIN
END.
...