...
PurchLine.CalcVATAmountLines(1,PurchHeader,CombinedPurchLineTemp,TempVATAmountLine);
IF PurchLine.FINDSET THEN
REPEAT
// Delete the following line.
JobPurchLine := PurchLine;
ItemJnlRollRndg := FALSE;
LineCount := LineCount + 1;
IF GUIALLOWED THEN
Window.UPDATE(2,LineCount);
...
...
PurchLine.CalcVATAmountLines(1,PurchHeader,CombinedPurchLineTemp,TempVATAmountLine);
IF PurchLine.FINDSET THEN
REPEAT
ItemJnlRollRndg := FALSE;
LineCount := LineCount + 1;
IF GUIALLOWED THEN
Window.UPDATE(2,LineCount);
...
...
TempDocDim.SETRANGE("Table ID",DATABASE::"Purchase Line");
TempDocDim.SETRANGE("Line No.",PurchLine."Line No.");
TempJnlLineDim.DELETEALL;
DimMgt.CopyDocDimToJnlLineDim(TempDocDim,TempJnlLineDim);
// Delete the following line.
JobPostLine.InsertPurchLine(PurchHeader,PurchInvHeader,PurchCrMemoHeader,JobPurchLine,SrcCode,TempJnlLineDim);
END;
IF (PurchLine."IC Partner Code" <> '') AND Invoice THEN
...
...
TempDocDim.SETRANGE("Table ID",DATABASE::"Purchase Line");
TempDocDim.SETRANGE("Line No.",PurchLine."Line No.");
TempJnlLineDim.DELETEALL;
DimMgt.CopyDocDimToJnlLineDim(TempDocDim,TempJnlLineDim);
// Add the following line.
JobPostLine.InsertPurchLine(PurchHeader,PurchInvHeader,PurchCrMemoHeader,PurchLine,SrcCode,TempJnlLineDim);
END;
IF (PurchLine."IC Partner Code" <> '') AND Invoice THEN
...