Denis

The linenumber cannot be used because you can invoice the lines in random order, and furthermore you can delete the line after the invoice and create another line with the same linenumber afterwards.

You can use the CustInvoiceTrans.InventTransId that is equal the the SalesLine.InventTransId

Tonny Jensen

________________________________

Fra: Danny Gaethofs [mailto:[EMAIL PROTECTED]
Sendt: ti 16-11-2004 20:29
Til: [EMAIL PROTECTED]
Emne: Re: AW: [development-axapta] CustInvoiceTrans.lineNum versus SalesLine.lineNum





Denis,

I realize that but for now some people wanted to have
it this way.

In time I will add the code to the methods on the
table CustInvoiceTrans and CustInvoiceJour.

Thanks anyway for the reminder.

regards,
Danny

--- "Unger, Denis" <[EMAIL PROTECTED]> wrote:

>
> Please note that anyone can delete a sales order. So
> you don't have any infos to print.
> Better way is to store your info in
> CustInvoiceTrans.
>
> Denis
>
>
> -----Ursprüngliche Nachricht-----
> Von: Danny Gaethofs [mailto:[EMAIL PROTECTED]
> Gesendet: Dienstag, 16. November 2004 14:47
> An: [EMAIL PROTECTED]
> Betreff: [development-axapta]
> CustInvoiceTrans.lineNum versus SalesLine.lineNum
>
>
>
>
>
> Dear all,
>
> I am trying to print some additional information on
> the invoice
> line. The information is not stored in the table
> CustInvoiceTrans
> but remains in the table SalesLine, at least for
> now.
>
> I created a display method that looks up the value.
> Example:
>
> The method contains the following
> select salesLine where salesLine.LineNum ==
> custInvoiceTrans.LineNum && salesLine.SalesId ==
> custInvoiceTrans.SalesId;
>
> return salesLine.SalesStatus;
>
> To my surprise the display method is not finding the
> sales line.
> I figured out that the custInvoiceTrans record is
> populated in the
> method initFromSalesLine() on the table. This method
> sets the
> lineNum correctly. This method was called by
> initJournalLine().
>
> But afterwards the method initJournalLine() on the
> class
> SalesFormLetter_Invoice calls the method
> setLinenum(sumByLineNum) where sumByLineNum starts
> with value 0 and is raised by one
> (sumByLineNum++) .
>
> Why is this done that way? How can I ensure that the
> correct record
> on the table SalesLine is retrieved in the display
> method.
>
> regards,
> Danny
>
>
>
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
> Diese E-Mail enthält vertrauliche und/oder rechtlich
> geschützte Informationen. Wenn Sie nicht der
> richtige Adressat sind oder diese E-Mail irrtümlich
> erhalten haben, informieren Sie bitte sofort den
> Absender und vernichten Sie diese Mail. Das
> unerlaubte Kopieren sowie die unbefugte Weitergabe
> dieser Mail ist nicht gestattet.
>
> This e-mail may contain confidential and/or
> privileged information. If you are not the intended
> recipient (or have received this e-mail in error)
> please notify the sender immediately and destroy
> this e-mail. Any unauthorized copying, disclosure or
> distribution of the material in this e-mail is
> strictly forbidden.
>
>
>
>
>
>
>



              
__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com









Yahoo! Groups Links











[Non-text portions of this message have been removed]


Yahoo! Groups Sponsor

Get unlimited calls to

U.S./Canada



Yahoo! Groups Links

Reply via email to