"Intra - form Buffer".RESET;
IF "Intra - form Buffer".GET(
"Intrastat Jnl. Line"."VAT Registration No.","Intrastat Jnl. Line"."Transaction Type",
"Intrastat Jnl. Line"."Tariff No.",'','','','','',"Intrastat Jnl. Line"."Corrective entry",0,
"Intrastat Jnl. Line"."Service Tariff No.")
THEN BEGIN
"Intra - form Buffer".Amount := "Intra - form Buffer".Amount + "Intrastat Jnl. Line".Amount;
"Intra - form Buffer"."Source Currency Amount" := "Intra - form Buffer"."Source Currency Amount" +
"Intrastat Jnl. Line"."Source Currency Amount";
"Intra - form Buffer".MODIFY;
END ELSE BEGIN
"Intra - form Buffer".TRANSFERFIELDS("Intrastat Jnl. Line");
"Intra - form Buffer"."User ID" := USERID;
"Intra - form Buffer"."Group Code":= '';
"Intra - form Buffer"."Transport Method" := '';
"Intra - form Buffer"."Transaction Specification" := '';
"Intra - form Buffer"."Country of Origin Code" := '';
"Intra - form Buffer".Area := '';
"Intra - form Buffer"."No." := 0;
"Intra - form Buffer".INSERT;
END;