VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Coding Central => Topic started by: Uke on March 15, 2014, 16:49:29 PM

Title: Code for creating delivery note pdf
Post by: Uke on March 15, 2014, 16:49:29 PM
Hello!

I use a function to combine invoice and delivery note to one pdf document for printing out in one step. Now i want that the delivery note pdf is created automaticaly when not exists, and not only when i click on the icon in backend. What code can i use for creating the delivery note?

Other option is to force the create of delivery note pdf when status is changing to "confirmed" together with the invoice pdf.

Joomla 2.5.17 VM V2.0.26d

Thanks in advance.

Uke
Title: Re: Code for creating delivery note pdf
Post by: virtubedo on March 19, 2014, 03:32:57 AM
Hello,

i use the same config:
Quote from: Uke on March 15, 2014, 16:49:29 PM
Joomla 2.5.17 VM V2.0.26d

if i click on the Print View - Delivery Note button in the backend i only get an error:
Fatal error: Call to undefined method VmVendorPDF::getImageFileType() in /...myURL.../components/com_virtuemart/helpers/vmpdf.php on line 234

being able to print it would be fantastic.
anyone ideas?

thanks
Peter
Title: Re: Code for creating delivery note pdf
Post by: Milbo on March 19, 2014, 09:26:50 AM
virtubedo your problem is another one. I think you installed a component using a new tcpdf. There should be a fix for this in the new vm2.5.4, please read and download here http://forum.virtuemart.net/index.php?topic=122785.0