...
IF "Intrastat Jnl. Batch"."Corrective Entry" THEN BEGIN
TESTFIELD("Custom Office No.");
CheckCorrectiveStatPeriod;
END;
"Intra - form Buffer".TRANSFERFIELDS("Intrastat Jnl. Line");
// Delete the following line.
"Intra - form Buffer".Amount := ROUND("Intra - form Buffer".Amount,1);
// End of the line.
"Intra - form Buffer"."User ID" := USERID;
"Intra - form Buffer"."No." := "Intra - form Buffer"."No." + TotalLines;
"Intra - form Buffer".INSERT;
...
...
IF "Intrastat Jnl. Batch"."Corrective Entry" THEN BEGIN
TESTFIELD("Custom Office No.");
CheckCorrectiveStatPeriod;
END;
// Add the following lines.
"Intra - form Buffer".RESET;
"Intra - form Buffer".SETFILTER("Document No.",'%1',"Document No.");
"Intra - form Buffer".SETFILTER("Service Tariff No.",'%1',"Service Tariff No.");
"Intra - form Buffer".SETFILTER("VAT Registration No.",'%1',"VAT Registration No.");
IF "Intra - form Buffer".FINDFIRST THEN BEGIN
"Intra - form Buffer".Amount += Amount;
"Intra - form Buffer".MODIFY;
END ELSE BEGIN
// End of the lines.
"Intra - form Buffer".TRANSFERFIELDS("Intrastat Jnl. Line");
"Intra - form Buffer"."User ID" := USERID;
"Intra - form Buffer"."No." := "Intra - form Buffer"."No." + TotalLines;
"Intra - form Buffer".INSERT;
// Add the following line.
END;
// End of the line.
...