...
VendEntries."Document Date",VendEntries.Base,VendEntries.Amount)
ELSE BEGIN
IF VendEntries."VAT Calculation Type" = VendEntries."VAT Calculation Type"::"Reverse Charge VAT" THEN
// Delete the following line.
VendEntries."Country/Region Code" := 'RC';
VATRepBuffer.InsertVATPerDeclAnnexVEDetail(VRDeclType,VRDeclYear,VRDeclMonth,VRDeclQuarter,
VendorsRelation.Number,VendEntries."Country/Region Code",VendEntries."VAT Registration No.",'',
VendEntries."Document Date",VendEntries.Base,VendEntries.Amount);
...
...
VendEntries."Document Date",VendEntries.Base,VendEntries.Amount)
ELSE BEGIN
IF VendEntries."VAT Calculation Type" = VendEntries."VAT Calculation Type"::"Reverse Charge VAT" THEN
// Add the following lines.
IF VendEntries."Country/Region Code" = CompanyInfo."Country/Region Code" THEN
VendEntries."Country/Region Code" := 'RC';
// End of the lines.
VATRepBuffer.InsertVATPerDeclAnnexVEDetail(VRDeclType,VRDeclYear,VRDeclMonth,VRDeclQuarter,
VendorsRelation.Number,VendEntries."Country/Region Code",VendEntries."VAT Registration No.",'',
VendEntries."Document Date",VendEntries.Base,VendEntries.Amount);
...