This article applies to Microsoft Dynamics NAV 2009 for the following countries and language locales.
- Microsoft Dynamics NAV 2009
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.
CopyThisLine := TRUE;
IF ((ToSalesHeader."Language Code" <> FromSalesHeader."Language Code") OR RecalculateLines) AND
(FromSalesLine."Attached to Line No." <> 0) OR
FromSalesLine."Prepayment Line"
THEN
EXIT(FALSE);
ToSalesLine.SetSalesHeader(ToSalesHeader);
…
CopyThisLine := TRUE;
SalesSetup.GET;
IF SalesSetup."Invoice Rounding" THEN BEGIN
Cust.GET(FromSalesHeader."Bill-to Customer No.");
CustPostingGroup.GET(Cust."Customer Posting Group");
RoundingLineInserted := FromSalesLine."No." = CustPostingGroup."Invoice Rounding Account";
END;
IF ((ToSalesHeader."Language Code" <> FromSalesHeader."Language Code") OR RecalculateLines) AND
(FromSalesLine."Attached to Line No." <> 0) OR
FromSalesLine."Prepayment Line" OR RoundingLineInserted
THEN
EXIT(FALSE);
ToSalesLine.SetSalesHeader(ToSalesHeader);…
CopyThisLine := TRUE;
IF ((ToPurchHeader."Language Code" <> FromPurchHeader."Language Code") OR RecalculateLines) AND
(FromPurchLine."Attached to Line No." <> 0) OR
FromPurchLine."Prepayment Line"
THEN
EXIT(FALSE);
…
CopyThisLine := TRUE;
PurchSetup.GET;
IF PurchSetup."Invoice Rounding" THEN BEGIN
Vendor.GET(FromPurchHeader."Pay-to Vendor No.");
VendorPostingGroup.GET(Vendor."Vendor Posting Group");
RoundingLineInserted := FromPurchLine."No." = VendorPostingGroup."Invoice Rounding Account";
END;
IF ((ToPurchHeader."Language Code" <> FromPurchHeader."Language Code") OR RecalculateLines) AND
(FromPurchLine."Attached to Line No." <> 0) OR
FromPurchLine."Prepayment Line" OR RoundingLineInserted
THEN
EXIT(FALSE);
…
Keywords: kbmbscodefix, kbnoloc, kbsurveynew, kbqfe, kbmbsquickpub, kbmbspartner, kb, kbmbsmigrate