... PurchPost.GetPurchLines(Rec,TempPurchLine,0); CLEAR(PurchPost); PurchPost.SumPurchLinesTemp( Rec,TempPurchLine,0,TotalPurchLine,TotalPurchLineLCY,VATAmount,VATAmountText); IF "Prices Including VAT" THEN BEGIN TotalAmount2 := TotalPurchLine.Amount; TotalAmount1 := TotalAmount2 + VATAmount; TotalPurchLine."Line Amount" := TotalAmount1 + TotalPurchLine."Inv. Discount Amount"; END ELSE BEGIN TotalAmount1 := TotalPurchLine.Amount; TotalAmount2 := TotalPurchLine."Amount Including VAT"; END; IF Vend.GET("Pay-to Vendor No.") THEN Vend.CALCFIELDS("Balance (LCY)") ELSE CLEAR(Vend); PurchLine.CalcVATAmountLines(0,Rec,TempPurchLine,TempVATAmountLine); TempVATAmountLine.MODIFYALL(Modified,FALSE); SetVATSpecification;
PurchLine.CalcVATAmountLines(0,Rec,TempPurchLine,TempVATAmountLine); TempVATAmountLine.MODIFYALL(Modified,FALSE); SetVATSpecification;