Steve, Palle, Otto,

Thanks a lot for your help. This is indeed working and
I understand the reasoning. As such partial shipments
happens a lot.

regards,
Danny
--- [EMAIL PROTECTED] wrote:

> 
> Hi Danny,
>  
> use the field InventTransId . You can have partial
> invoices or one invoice per customer for several
> sales orders and if someone prints the linenum on
> the invoice it would be funny...
>  
> 
> /Otto
>  
> 
>  -----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 Sponsor 
> 
> ADVERTISEMENT
> 
>
<http://us.ard.yahoo.com/SIG=129strqev/M=298184.5584357.6650215.3001176/D=groups/S=1705006764:HM/EXP=1100699440/A=2426682/R=0/SIG=11edksnhv/*http://www.netflix.com/Default?mqso=60185402>
> click here    
>  
>
<http://us.adserver.yahoo.com/l?M=298184.5584357.6650215.3001176/D=groups/S=:HM/A=2426682/rand=240536163>
>       
> 
> 
>   _____  
> 
> Yahoo! Groups Links
> 
> 
> *     To visit your group on the web, go to:
> http://groups.yahoo.com/group/development-axapta/
> <http://groups.yahoo.com/group/development-axapta/> 
>   
> 
> *     To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
<mailto:[EMAIL PROTECTED]>
> 
>   
> 
> *     Your use of Yahoo! Groups is subject to the Yahoo!
> Terms of Service <http://docs.yahoo.com/info/terms/>
> . 
> 
> 
> 
> 
> [Non-text portions of this message have been
> removed]
> 
> 
> 
> 
> 



                
__________________________________ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/development-axapta/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




Reply via email to