2. Juli 2008 11:50
Code
InsertEntries()
DtldCustLedgEntry.SETCURRENTKEY("Transaction No.","Customer No.","Entry Type");
DtldCustLedgEntry.SETRANGE("Transaction No.",DtldCustLedgEntry2."Transaction No.");
DtldCustLedgEntry.SETRANGE("Customer No.",DtldCustLedgEntry2."Customer No.");
DELETEALL;
IF DtldCustLedgEntry.FINDSET THEN
REPEAT
IF (DtldCustLedgEntry."Entry Type" <> DtldCustLedgEntry."Entry Type"::"Urspr. Posten") AND
NOT DtldCustLedgEntry.Unapplied
THEN BEGIN
Rec := DtldCustLedgEntry;
INSERT;
END;
UNTIL DtldCustLedgEntry.NEXT = 0;
Code
InsertEntries()
DtldCustLedgEntry.SETCURRENTKEY("Transaction No.","Customer No.","Entry Type");
DtldCustLedgEntry.SETRANGE("Transaction No.",DtldCustLedgEntry2."Transaction No.");
DtldCustLedgEntry.SETRANGE("Customer No.",DtldCustLedgEntry2."Customer No.");
DELETEALL;
IF DtldCustLedgEntry.FIND('-') THEN
REPEAT
IF (DtldCustLedgEntry."Entry Type" <> DtldCustLedgEntry."Entry Type"::"Urspr. Posten") AND
NOT DtldCustLedgEntry.Unapplied
THEN BEGIN
Rec := DtldCustLedgEntry;
INSERT;
END;
UNTIL DtldCustLedgEntry.NEXT = 0;
REPEAT
IF (DtldCustLedgEntry."Entry Type" <> DtldCustLedgEntry."Entry Type"::"Urspr. Posten") AND
NOT DtldCustLedgEntry.Unapplied
THEN BEGIN
Rec := DtldCustLedgEntry;
INSERT;
END;
2. Juli 2008 12:05
2. Juli 2008 12:09
2. Juli 2008 12:23
2. Juli 2008 13:25
2. Juli 2008 13:46
2. Juli 2008 14:17