Issue with Sales Invoice after posting?????

Hi, I am encountering a very strange situation here: after I posted a sales invoice, the sales header will be blanked out, but not with the sales lines. I tried to debug the program many times, and although it went through the codeunit 80 without any problem (it passed through the SalesLine.deleteall, and it didn’t really do anything). So how can I make the sales line(s) go away after posting the invoice? Thanks for the help in advance.

Have you set an additional filter on SalesLine somewhere in the codeunit?

Hi, thank you for the reply. I finally got my problem solved from my colleague. It was a filter problem, but not found within the codeunit.