if you wrote your Code in SalesInvoiceJournalPost, the salestable / line is not necessary. But you can still do it.
do a similar Change in SalesLineType.insert() and SalesLineType.initFromSalesTable()
if you wrote your Code in SalesInvoiceJournalPost, the salestable / line is not necessary. But you can still do it.
do a similar Change in SalesLineType.insert() and SalesLineType.initFromSalesTable()