Page 1 of 1
IDRE: generation of invoice in different state??
Posted: 27 Sep 2010, 16:03
by Nukem36
High!
normally IDRE is generating PDF's , when an order reaches the status "delivery". I want to change this behaviour in that way, the PDF generation is possible when the order state is "confirmed". Is this possible, and how?
Backgroud information: the shop will only support paymant method in advance, so the customer should receive his confirmation mail with the invoice and paying information included. When the payment is arrived the goods will be sent to the customer.
Thanks for any tips!
Regards
Nukem36
Re: IDRE: generation of invoice in different state??
Posted: 27 Sep 2010, 19:14
by Jan
Hi, sorry I don't understand, the addon does not make the pdf automatically, but after user clicks on the icon
Re: IDRE: generation of invoice in different state??
Posted: 28 Sep 2010, 08:26
by Nukem36
High!
that's right, but I have to delivery the order for that, what not really is logic in the case the customer has to pay first. I want to use the status "confirmed" to send the customer the mail with the invoice, what is not possible in the moment.
Regards
Nukem36
Re: IDRE: generation of invoice in different state??
Posted: 02 Oct 2010, 12:41
by Jan
No, such option needs to be customized, the VM core file needs to be changed - so the function (clicking on the e.g. Email Icon) should be transferred to the select box of the status.
(but no experiences there
)
Re: IDRE: generation of invoice in different state??
Posted: 07 Oct 2010, 14:58
by Nukem36
High!
OK thanks. But maybe the following could be a solution. Like mentioned in my prev. post, the shop will only use "prepaid" before delivery.
VM generates a confirmation mail, when an order is placed. With some code added to confirmation-email.tpl.php it should be possible to generate an invoice pdf and attache that to the mail. These functions are part of IDRE.
I could try to add that code. Could you tell me which functions should be called?
Regards
Nukem36
Re: IDRE: generation of invoice in different state??
Posted: 08 Oct 2010, 14:15
by Jan
In fact you need to run all the fucntion which are normally run by clicking on the icon. It means you should see the functions which are called after clicking the icon - but before it, there needs to be some check, if all the data which are displayed in the form are existing and then the pdf could be created. For now I am not on my PC so cannot give more detailed infos
but you just search all the function in the addon
Re: IDRE: generation of invoice in different state??
Posted: 09 Oct 2010, 20:07
by Nukem36
High Jan!
I'm on that way..... I'll do a post with the result, when I succeed!
Nukem36
Re: IDRE: generation of invoice in different state??
Posted: 11 Oct 2010, 15:00
by Jan
Ok, will be great.
Jan