This article applies to Microsoft Dynamics NAV for the following countries and language locales:
- Belgium (French) (fr-be)
- Belgium (Dutch) (nl-be)
Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.
View products that this article applies to.
...
AppliesToID := PaymentJnlLine."Applies-to ID";
// per line always positive
IF (PaymentJnlLine."Account Type" = 0) OR
(PaymentJnlLine."Account Type" = PaymentJnlLine."Account Type"::Vendor) AND
((PaymentJnlLine.Amount > 0) OR (PostPaymentRecord))
THEN
"Document Type" := "Document Type"::Payment
ELSE
"Document Type" := "Document Type"::Refund;
"Document No." := DocumentNo;
"Posting Date" := PaymentJnlLine."Posting Date";
...
...
AppliesToID := PaymentJnlLine."Applies-to ID";
// per line always positive
"Document Type" := "Document Type"::Payment;
"Document No." := DocumentNo;
"Posting Date" := PaymentJnlLine."Posting Date";
...
...
IF PostPaymentRecord AND
NOT PaymentJnlLine."Partial Payment" AND
NOT PaymentJnlLine."Separate Line"
THEN
"Applies-to ID" := AppliesToID
ELSE BEGIN
...
...
IF PostPaymentRecord AND
NOT PaymentJnlLine."Partial Payment" AND
NOT PaymentJnlLine."Separate Line" AND
(PaymentJnlLine."Applies-to Doc. Type" <>PaymentJnlLine."Applies-to Doc. Type"::"Credit Memo")
THEN
"Applies-to ID" := AppliesToID
ELSE BEGIN
...
Keywords: kberrmsg, kbsurveynew, kbnoloc, kbmbscodefix, kbqfe, kbmbsquickpub, kbmbspartner, kb, kbmbsmigrate