Hi Gonzalo,

It's hard to post the whole code because is part of a large customization, but the main steps are the following:



Once you've filled CustInvoiceTable and CustInvoiceLines you can call the CustPostInvoice class to perform the posting.



RecordSortedList    recordSortedList    = new RecordSortedList(tableNum(CustInvoiceTable));



CustPostInvoice     custPostInvoice;

CustPrintOutInvoice custPrintOutInvoice;

;

custPostInvoice     = new CustPostInvoice(custInvoiceTable,

                                  typeOfCreditmaxCheck,

                                  creditError);



custPostInvoice.run();  //this posts the invoice



custPrintOutInvoice = new CustPrintOutInvoice();



recordSortedList.ins(custInvoiceTable);

//this prints the invoice (the first parameter is "proforma", the second is to mark the print as "copy"

custPrintOutInvoice.printout(NoYes::No,recordSortedList,NoYes::No);



Hope this solves, regards!



Alex



________________________________

Da: [email protected] [mailto:[EMAIL PROTECTED] Per conto di gonzalo_edo
Inviato: lunedì 20 marzo 2006 15.32
A: [email protected]
Oggetto: [development-axapta] Free text invoice



Hi all..

There's any have an example of how can I post and print a free text
invoice via code??

I really need to do this...??

Hope ya all can help me...


Regards,

Gonzalo








SPONSORED LINKS

Computer part <http://groups.yahoo.com/gads?t=ms&k=Computer+part&w1=Computer+part&w2=Programming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=yLpvcLTIDJ5FTkRJGsO11w

Programming languages <http://groups.yahoo.com/gads?t=ms&k=Programming+languages&w1=Computer+part&w2=Programming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=cuhEClK4dU4wapXFmKisbQ

Microsoft axapta <http://groups.yahoo.com/gads?t=ms&k=Microsoft+axapta&w1=Computer+part&w2=Programming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=yfeG_U6QaLfPOZZIud02Fg

Support exchange <http://groups.yahoo.com/gads?t=ms&k=Support+exchange&w1=Computer+part&w2=Programming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=hy8yRGMzrmxdphyITTUeqA







________________________________

YAHOO! GROUPS LINKS



*      Visit your group "development-axapta <http://groups.yahoo.com/group/development-axapta> " on the web.
       
*      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/> .



________________________________

--
The information transmitted is intended for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.


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





SPONSORED LINKS
Computer part Programming languages Microsoft axapta
Support exchange


YAHOO! GROUPS LINKS




Reply via email to