...
// Delete the following line.
FromPurchRcptLine.TESTFIELD("Job No.",'');
// End of the deleted line.
FromPurchRcptLine.TESTFIELD("Work Center No.",'');
IF NOT ItemChargeAssgntPurch.RECORDLEVELLOCKING THEN
ItemChargeAssgntPurch.LOCKTABLE(TRUE,TRUE);
NextLine := ItemChargeAssgntPurch."Line No.";
ItemChargeAssgntPurch2.SETRANGE("Document Type",ItemChargeAssgntPurch."Document Type");
ItemChargeAssgntPurch2.SETRANGE("Document No.",ItemChargeAssgntPurch."Document No.");
ItemChargeAssgntPurch2.SETRANGE("Document Line No.",ItemChargeAssgntPurch."Document Line No.");
...
...
FromPurchRcptLine.TESTFIELD("Work Center No.",'');
IF NOT ItemChargeAssgntPurch.RECORDLEVELLOCKING THEN
ItemChargeAssgntPurch.LOCKTABLE(TRUE,TRUE);
NextLine := ItemChargeAssgntPurch."Line No.";
ItemChargeAssgntPurch2.SETRANGE("Document Type",ItemChargeAssgntPurch."Document Type");
ItemChargeAssgntPurch2.SETRANGE("Document No.",ItemChargeAssgntPurch."Document No.");
ItemChargeAssgntPurch2.SETRANGE("Document Line No.",ItemChargeAssgntPurch."Document Line No.");
...