Author Topic: Invoice/Receipt/DeliveryNote Addon (finished at last)  (Read 395785 times)

Mr_Smurf

  • Jr. Member
  • **
  • Posts: 94
Re: Invoice/Receipt/DeliveryNote Addon (finished at last)
« Reply #15 on: January 30, 2006, 18:06:22 PM »
oh, i see, my mistake, i installed that wrong, i thought i had to overwrite the original fpdf files.

no its a 0 byte file, i have to say that this isnt the first time this happens on this pc, i'll try to do all this on another pc later.

that would explain it..

You should have both a pdf153 directory and a pdf directory in your classes dir..

The addon is looking for a directory named pdf153, and if not found the generation of pdf does not work..

Beest

  • Beginner
  • *
  • Posts: 8
Re: Invoice/Receipt/DeliveryNote Addon (finished at last)
« Reply #16 on: January 30, 2006, 19:45:59 PM »
You should have both a pdf153 directory and a pdf directory in your classes dir..

The addon is looking for a directory named pdf153, and if not found the generation of pdf does not work..

Both are now there but still no pdf, pc at work still downloads the 0 byte index3.php and my pc here at home just displays a blank page. the only thing in it is
Code: [Select]
<script>document.location.href='index.php'</script>

Mr_Smurf

  • Jr. Member
  • **
  • Posts: 94
Re: Invoice/Receipt/DeliveryNote Addon (finished at last)
« Reply #17 on: January 30, 2006, 20:03:51 PM »
Is the file com_virtuemart/html/templates/delivery/delivery_pdf.php installed?

If you copy link location from any of the pdf-icons and paste it in a new window and append &testmode=1 in the end of the url you shuld get alot of text saying things like:


$this->SetX(-107);
$this->SetFont('Arial','B',15);
$this->Ln(10);

etc...

If you get no output when you use testmode then it does not read the template at all.

Beest

  • Beginner
  • *
  • Posts: 8
Re: Invoice/Receipt/DeliveryNote Addon (finished at last)
« Reply #18 on: January 30, 2006, 20:28:38 PM »
Is the file com_virtuemart/html/templates/delivery/delivery_pdf.php installed?

oops, i guess one file didnt make it to the live site.
now i do get pdf files, all 46 bytes with the same content "<B>FPDF error: </B>Unsupported image type: gif"
i guess that is because of the shop logo, i'll change that into a jpeg when i get back to work and see if that fixes it.


edit:  i just added the gif code to the fpdf.php and put the gif.php file in the pdf153 directory, it all works now :)

thanks for all the help  :)

Mr_Smurf

  • Jr. Member
  • **
  • Posts: 94
Re: Invoice/Receipt/DeliveryNote Addon (finished at last)
« Reply #19 on: January 31, 2006, 11:03:54 AM »
Good, I hope you will find this add-on useful.

webgobe

  • Advanced
  • Full Member
  • *****
  • Posts: 550
  • Follow me on Twitter! http://twitter.com/webgobe
    • Internet craftsman carrying on the heritage of European manufacturing traditions through original Web designs.
  • Skype Name: webgobe
Re: Invoice/Receipt/DeliveryNote Addon (finished at last)
« Reply #20 on: February 02, 2006, 08:10:32 AM »
First of all, Mr_Smurf, you have a typo in the install file, #_{vm}_bills instead of #__{vm}_bills.
That's okay, I found it, corrected it.
Installed the latest version - read forum ;) and here I am!
I have the new tab, with the new fdelivery button and the header of the tab. I can click on new delivery ;) more, the dialogue appears, I have the chance to change the nr of items to be delivered and 2 checkboxes below:
Customer has prepaid the order.
Create invoice
The Invoice is due x days.     Delay interest x % boxes are grayed out, and I have two more choices: Cancel and Save. And here the fun begans: I can click on any og these, the result is the same: nothing changes.
I can even set the deliverables amount of any number I like, not even an error message is showing up.
I'm running VM 1.01 on top of the Joomla 1.04, site not installed in the webroot, but in a subdir, I tried to use the hack from a wide range of clients, on '98 and XP (IE, Mozilla, FireFox, Opera, whatewer you like). Databases are created, in place, all files patched, double-checked. And I'm not a beginner...
What I'm doing wrong?
Like a fine wine... Good from the start and getting better over time.

Mr_Smurf

  • Jr. Member
  • **
  • Posts: 94
Re: Invoice/Receipt/DeliveryNote Addon (finished at last)
« Reply #21 on: February 02, 2006, 09:03:17 AM »
The only thing I can think of right now is that the registration of the functions in the database has gone wrong..

When you click Cancel, do you return to the previous page?
When you ckick Save, where do you end up? And do you get any type of error message at all?

I have uploaded a new version of the installation package with the typo corrected :)

webgobe

  • Advanced
  • Full Member
  • *****
  • Posts: 550
  • Follow me on Twitter! http://twitter.com/webgobe
    • Internet craftsman carrying on the heritage of European manufacturing traditions through original Web designs.
  • Skype Name: webgobe
Re: Invoice/Receipt/DeliveryNote Addon (finished at last)
« Reply #22 on: February 02, 2006, 09:28:39 AM »
Hmm, may have right, I will check that registration thing.
In both cases (Cancel and Save) I'm back directly from where I was when I opened the tab. Nothing happens.
Like a fine wine... Good from the start and getting better over time.

Mr_Smurf

  • Jr. Member
  • **
  • Posts: 94
Re: Invoice/Receipt/DeliveryNote Addon (finished at last)
« Reply #23 on: February 09, 2006, 00:22:09 AM »
Hmm, may have right, I will check that registration thing.
In both cases (Cancel and Save) I'm back directly from where I was when I opened the tab. Nothing happens.

Found the bug!

The bug is in fact in the order edit addon.. the form name in the order edit is the same as in the delivery addon.. The drawbacks of cut and paste ;)

If you rename the form in the edit order addon to editForm instead of deliveryForm things will magically start to work.

iqapps1

  • Full Member
  • ***
  • Posts: 651
Re: Invoice/Receipt/DeliveryNote Addon (finished at last)
« Reply #24 on: February 09, 2006, 22:06:07 PM »
Hi

nice module... ;D
Module working OK

Efter I install module I got folowing error on my adminpage

Quote
Line: 228
Char: 2
error: 'this.tab' is null or not an object
URL: /administrator/index2.php?page=order.order_print&limitstart=0&keyword=&order_id=2&option=com_virtuemart&Itemid=1
Code: 0


Comments please

2.
 I create new delivery note (invoice).
If I click on pdf icon opens new blank window. How I can see/print invoice?
Regards
IQAPPS

Mr_Smurf

  • Jr. Member
  • **
  • Posts: 94
Re: Invoice/Receipt/DeliveryNote Addon (finished at last)
« Reply #25 on: February 09, 2006, 22:21:30 PM »
Hi

nice module... ;D
Module working OK

Efter I install module I got folowing error on my adminpage

Quote
Line: 228
Char: 2
error: 'this.tab' is null or not an object
URL: http://www.xxxxxxxx.com/administrator/index2.php?page=order.order_print&limitstart=0&keyword=&order_id=2&option=com_virtuemart&Itemid=1
Code: 0


Comments please

Regards
IQAPPS


What version of virtuemart?

iqapps1

  • Full Member
  • ***
  • Posts: 651
Re: Invoice/Receipt/DeliveryNote Addon (finished at last)
« Reply #26 on: February 09, 2006, 22:36:23 PM »
Hi

Hyperfast reply...  ;)

Joolma 1.0.7,virtuemart 1.0.2

Regards
IQAPPS

Mr_Smurf

  • Jr. Member
  • **
  • Posts: 94
Re: Invoice/Receipt/DeliveryNote Addon (finished at last)
« Reply #27 on: February 09, 2006, 22:45:38 PM »
Hi

Hyperfast reply...  ;)

Joolma 1.0.7,virtuemart 1.0.2

Regards
IQAPPS

Does everyting work, and this is just an annoying javascript warining?

iqapps1

  • Full Member
  • ***
  • Posts: 651
Re: Invoice/Receipt/DeliveryNote Addon (finished at last)
« Reply #28 on: February 09, 2006, 22:57:00 PM »
Hi

Quote
Does everyting work, and this is just an annoying javascript warining?

Yes it is only javascrip warning.

2.
 I create new delivery note (invoice).
If I click on pdf icon opens new blank window. How I can see/print invoice?
Regards
IQAPPS

Mr_Smurf

  • Jr. Member
  • **
  • Posts: 94
Re: Invoice/Receipt/DeliveryNote Addon (finished at last)
« Reply #29 on: February 09, 2006, 23:04:07 PM »
You should get a pdf-file...
have you installed the pdf template file in and the pdf153 directory?