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
click here


Yahoo! Groups Links

Reply via email to