...
PPS.TESTFIELD("Part. Pay. Bal- Account No");
Desc := STRSUBSTNO(PPS."Description Part. Payment"
,VendLedgerEntry."Document Type",VendLedgerEntry."Document No.");
IF STRLEN(Desc) > 50 THEN
ERROR(BA038,PPS.FIELDCAPTION("Description Part. Payment"));
IF STRLEN(Desc) > 50 THEN
ERROR(BA038,PPS.FIELDCAPTION("Description Part. Payment"));
// Delete the following lines.
IF VendLedgerEntry."Currency Code" <> '' THEN
IF VendLedgerEntry.Amount <> 0 THEN
CurrFactor := (VendLedgerEntry."Remaining Amt. (LCY)" / VendLedgerEntry.Amount)
ELSE
CLEAR(CurrFactor);
// End of the deleted lines.
GenJournalLine3.INIT;
GenJournalLine3."Document No." := DocNo;
GenJournalLine3.VALIDATE("Posting Date",TODAY);
GenJournalLine3.VALIDATE("Account Type",GenJournalLine3."Account Type"::Vendor);
GenJournalLine3.VALIDATE("Account No.",VendLedgerEntry."Vendor No.");
...
...
PPS.TESTFIELD("Part. Pay. Bal- Account No");
Desc := STRSUBSTNO(PPS."Description Part. Payment"
,VendLedgerEntry."Document Type",VendLedgerEntry."Document No.");
IF STRLEN(Desc) > 50 THEN
ERROR(BA038,PPS.FIELDCAPTION("Description Part. Payment"));
GenJournalLine3.INIT;
GenJournalLine3."Document No." := DocNo;
GenJournalLine3.VALIDATE("Posting Date",TODAY);
GenJournalLine3.VALIDATE("Account Type",GenJournalLine3."Account Type"::Vendor);
GenJournalLine3.VALIDATE("Account No.",VendLedgerEntry."Vendor No.");
...
...
GenJournalLine3.VALIDATE("Posting Date",TODAY);
GenJournalLine3.VALIDATE("Account Type",GenJournalLine3."Account Type"::Vendor);
GenJournalLine3.VALIDATE("Account No.",VendLedgerEntry."Vendor No.");
GenJournalLine3.VALIDATE("Currency Code",VendLedgerEntry."Currency Code");
GenJournalLine3.VALIDATE(Amount,-Amount);
// Delete the following lines.
IF VendLedgerEntry."Currency Code" <> '' THEN
GenJournalLine3.VALIDATE("Amount (LCY)",GenJournalLine3.Amount * CurrFactor);
// End of the deleted lines.
GenJournalLine3."External Document No." := VendLedgerEntry."External Document No.";
GenJournalLine3."Document Type" := GenJournalLine3."Document Type"::" ";
GenJournalLine3.VALIDATE("Bal. Account No.",PPS."Part. Pay. Bal- Account No");
GenJournalLine3.VALIDATE("Due Date",GenJournalLine2."Due Date");
GenJournalLine3."LB Giro Journal No." := Pack."No.";
...
...
GenJournalLine3.VALIDATE("Posting Date",TODAY);
GenJournalLine3.VALIDATE("Account Type",GenJournalLine3."Account Type"::Vendor);
GenJournalLine3.VALIDATE("Account No.",VendLedgerEntry."Vendor No.");
GenJournalLine3.VALIDATE("Currency Code",VendLedgerEntry."Currency Code");
GenJournalLine3.VALIDATE(Amount,-Amount);
GenJournalLine3."External Document No." := VendLedgerEntry."External Document No.";
GenJournalLine3."Document Type" := GenJournalLine3."Document Type"::" ";
GenJournalLine3.VALIDATE("Bal. Account No.",PPS."Part. Pay. Bal- Account No");
GenJournalLine3.VALIDATE("Due Date",GenJournalLine2."Due Date");
GenJournalLine3."LB Giro Journal No." := Pack."No.";
...
...
GenJournalLine3.VALIDATE("Posting Date",TODAY);
GenJournalLine3.VALIDATE("Account Type",GenJournalLine3."Account Type"::Vendor);
GenJournalLine3.VALIDATE("Account No.",VendLedgerEntry."Vendor No.");
GenJournalLine3.VALIDATE("Currency Code",VendLedgerEntry."Currency Code");
GenJournalLine3.VALIDATE(Amount,AmountToPay + Amount);
// Delete the following lines.
IF VendLedgerEntry."Currency Code" <> '' THEN
GenJournalLine3.VALIDATE("Amount (LCY)",GenJournalLine3.Amount * CurrFactor);
// End of the deleted lines.
GenJournalLine3."External Document No." := VendLedgerEntry."External Document No.";
GenJournalLine3."Document Type" := GenJournalLine3."Document Type"::" ";
GenJournalLine3.VALIDATE("Bal. Account No.",PPS."Part. Pay. Bal- Account No");
GenJournalLine3.VALIDATE("Due Date",GenJournalLine2."Due Date Next Payment");
GenJournalLine3.Description := Desc;
...
...
GenJournalLine3.VALIDATE("Posting Date",TODAY);
GenJournalLine3.VALIDATE("Account Type",GenJournalLine3."Account Type"::Vendor);
GenJournalLine3.VALIDATE("Account No.",VendLedgerEntry."Vendor No.");
GenJournalLine3.VALIDATE("Currency Code",VendLedgerEntry."Currency Code");
GenJournalLine3.VALIDATE(Amount,AmountToPay + Amount);
GenJournalLine3."External Document No." := VendLedgerEntry."External Document No.";
GenJournalLine3."Document Type" := GenJournalLine3."Document Type"::" ";
GenJournalLine3.VALIDATE("Bal. Account No.",PPS."Part. Pay. Bal- Account No");
GenJournalLine3.VALIDATE("Due Date",GenJournalLine2."Due Date Next Payment");
GenJournalLine3.Description := Desc;
...