IDRE: generation of invoice in different state??

Before you ask about IDnR Addon see the VirtueMart - Invoice, Delivery Note and Receipt Addon
Nukem36
Phoca Enthusiast
Phoca Enthusiast
Posts: 65
Joined: 08 Sep 2008, 19:34

IDRE: generation of invoice in different state??

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: IDRE: generation of invoice in different state??

Post by Jan »

Hi, sorry I don't understand, the addon does not make the pdf automatically, but after user clicks on the icon :idea:
If you find Phoca extensions useful, please support the project
Nukem36
Phoca Enthusiast
Phoca Enthusiast
Posts: 65
Joined: 08 Sep 2008, 19:34

Re: IDRE: generation of invoice in different state??

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: IDRE: generation of invoice in different state??

Post 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. :idea: :( (but no experiences there :-( )
If you find Phoca extensions useful, please support the project
Nukem36
Phoca Enthusiast
Phoca Enthusiast
Posts: 65
Joined: 08 Sep 2008, 19:34

Re: IDRE: generation of invoice in different state??

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: IDRE: generation of invoice in different state??

Post 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 :idea: :(
If you find Phoca extensions useful, please support the project
Nukem36
Phoca Enthusiast
Phoca Enthusiast
Posts: 65
Joined: 08 Sep 2008, 19:34

Re: IDRE: generation of invoice in different state??

Post by Nukem36 »

High Jan!

I'm on that way..... I'll do a post with the result, when I succeed!

Nukem36
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: IDRE: generation of invoice in different state??

Post by Jan »

Ok, will be great.

Jan
If you find Phoca extensions useful, please support the project
Post Reply