...
ERROR(
Text16200,
FIELDCAPTION("Bal. Account No."),FIELDCAPTION("VAT Protocol"),"VAT Protocol");
// Delete the following lines.
TESTFIELD("Gen. Posting Type",GenJnlLine."Gen. Posting Type"::Sale);
IF "Bal. Gen. Posting Type" <> 0 THEN
TESTFIELD("Bal. Gen. Posting Type","Bal. Gen. Posting Type"::Purchase);
// End of the deleted lines.
END;
IF "Account No." <> '' THEN
...
...
ERROR(
Text16200,
FIELDCAPTION("Bal. Account No."),FIELDCAPTION("VAT Protocol"),"VAT Protocol");
// Add the following lines.
TESTFIELD("Gen. Posting Type",GenJnlLine."Gen. Posting Type"::Sale);
IF "Bal. Gen. Posting Type" <> 0 THEN
TESTFIELD("Bal. Gen. Posting Type","Bal. Gen. Posting Type"::Purchase);
// End of the added lines.
END;
IF "Account No." <> '' THEN
...