This article applies to Microsoft Dynamics NAV for the following countries and language locales.
- Polish (pl)
- Hungarian (hu)
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.
...
InitSalesLine(SalesCorrLineBefore,SalesLine);
SalesLine.Type := SalesLine.Type::"G/L Account";
SalesLine."No." := GetSalesVATAccount(SalesCorrLineBefore."VAT Bus. Posting Group",
SalesCorrLineBefore."VAT Prod. Posting Group");
// Delete the following line.
SalesLine."VAT Calculation Type" := SalesLine."VAT Calculation Type"::"Full VAT";
// End of the deleted line.
SalesLine.VALIDATE("Unit of Measure Code",'');
SalesLine.VALIDATE(Quantity,1);
SalesLine.VALIDATE("Line Discount %",0);
SalesLine.VALIDATE("Unit Price",SalesCorrLineBefore."Amount Including VAT" - SalesCorrLineBefore."VAT Base Amount");
SalesLine.VALIDATE("Unit Cost (LCY)",0);
...
...
InitSalesLine(SalesCorrLineBefore,SalesLine);
SalesLine.Type := SalesLine.Type::"G/L Account";
SalesLine."No." := GetSalesVATAccount(SalesCorrLineBefore."VAT Bus. Posting Group",
SalesCorrLineBefore."VAT Prod. Posting Group");
// Add the following line.
SalesLine.VALIDATE("VAT Calculation Type",SalesCorrLineBefore."VAT Calculation Type");
// End of the added line.
SalesLine.VALIDATE("Unit of Measure Code",'');
SalesLine.VALIDATE(Quantity,1);
SalesLine.VALIDATE("Line Discount %",0);
SalesLine.VALIDATE("Unit Price",SalesCorrLineBefore."Amount Including VAT" - SalesCorrLineBefore."VAT Base Amount");
SalesLine.VALIDATE("Unit Cost (LCY)",0);
...
...
InitSalesLine(SalesCorrLineAfter,SalesLine);
SalesLine.Type := SalesLine.Type::"G/L Account";
SalesLine."No." := GetSalesVATAccount(SalesCorrLineAfter."VAT Bus. Posting Group",
SalesCorrLineAfter."VAT Prod. Posting Group");
// Delete the following line.
SalesLine."VAT Calculation Type" := SalesLine."VAT Calculation Type"::"Full VAT";
// End of the deleted line.
SalesLine.VALIDATE("Unit of Measure Code",'');
SalesLine.VALIDATE(Quantity,-1);
SalesLine.VALIDATE("Line Discount %",0);
SalesLine.VALIDATE("Unit Price",SalesCorrLineAfter."Amount Including VAT" - SalesCorrLineAfter."VAT Base Amount");
SalesLine."VAT Base Amount" := SalesCorrLineAfter."VAT Base Amount";
...
...
InitSalesLine(SalesCorrLineAfter,SalesLine);
SalesLine.Type := SalesLine.Type::"G/L Account";
SalesLine."No." := GetSalesVATAccount(SalesCorrLineAfter."VAT Bus. Posting Group",
SalesCorrLineAfter."VAT Prod. Posting Group");
// Add the following line.
SalesLine.VALIDATE("VAT Calculation Type",SalesCorrLineAfter."VAT Calculation Type");
// End of the added line.
SalesLine.VALIDATE("Unit of Measure Code",'');
SalesLine.VALIDATE(Quantity,-1);
SalesLine.VALIDATE("Line Discount %",0);
SalesLine.VALIDATE("Unit Price",SalesCorrLineAfter."Amount Including VAT" - SalesCorrLineAfter."VAT Base Amount");
SalesLine."VAT Base Amount" := SalesCorrLineAfter."VAT Base Amount";
...
Keywords: kberrmsg, kbqfe, kbmbscodefix, kbnoloc, kbmbsmigrate, kbmbsquickpub, kb, kbmbspartner, kbsurveynew