how to validate a sales invoice or a JV

i want to know , what the name of the codeunit or the function that validate a posted sales invoice or a JV or a receipt voucher

thanks in advance

Can you be more clear?

i am working on autopost function to post transactions

for JV i use the codeunit “Gen. Jnl.-Post” to post a JV

and the codeunit “Sales-Post” to post a sales invoice,

if there are a uncorrect JV or sales invoice the system give me an error and it exit the form ,

HOW I CAN SKIP AND COUNT THE INCORRECT JV AND SALES INVOICE

thanks in advance

i am working on autopost function to post transactions

for JV i use the codeunit “Gen. Jnl.-Post” to post a JV

and the codeunit “Sales-Post” to post a sales invoice,

if there are a uncorrect JV or sales invoice the system give me an error and it exit the form ,

HOW I CAN SKIP AND COUNT THE INCORRECT JV AND SALES INVOICE

thanks in advance

Actually for General Journal Line Checking process is done in “Gen. Jnl.-Check Line” codeunit.

and for Sales Invoice checking done in code unit - 80