# Invoicing Sales Order with Selected Lines

**URL:** <https://www.dynamicsuser.net/t/invoicing-sales-order-with-selected-lines/56448>\
**Category:** Developer Forum\
**Created:** [January 15, 2015, 9:50pm UTC](https://www.dynamicsuser.net/t/invoicing-sales-order-with-selected-lines/56448 "2015-01-15T21:50:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hxa005](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@Hxa005](https://www.dynamicsuser.net/u/Hxa005)\
**Post date:** [January 15, 2015, 9:50pm UTC](https://www.dynamicsuser.net/t/invoicing-sales-order-with-selected-lines/56448/1 "2015-01-15T21:50:56Z")

</div>

Hi,

I would really appreciate urgent assistance on this issue. I have a scenario where I need to invoice sales orders (includes single order invoicing as well as consolidated invoicing) with selected sales lines. We have sales orders that can consist on 3 types of sales lines 1. MainLine 2. Component Line and 3.datalines

For performance reasons we don’t want to post (process) data lines to custinvoicetrans tables . My question is where (class,method) do I put a check to stop data lines from getting posted to custinvoicetrans table…Ideal solution would be stop them getting posted to parmtables , this way we get maximum gain.

After spending some time on this … I know that the method that creates parm data is salesformletterParmdata.ChooseLinesServer. But there is nothing there that I can use to figure out which line is being processed at a particular times.

PS I have already looked into following methods and none of them get invoked when I run invoicing …so please if you know

SalesInvoiceJournalCreateBase.CreateJournalLines

SalesInvoiceJournalCreate.CreateJournalLines

SalesParmtLinesTable …all the init methods
