VirtueMart Forum

VirtueMart 2 + 3 => Virtuemart Development and bug reports => Topic started by: alf1234 on June 12, 2012, 12:04:20 pm

Title: Stop PDF invoices being sent
Post by: alf1234 on June 12, 2012, 12:04:20 pm
Hi,

How do i stop PDF invoices being sent (as attachments in emails) in 2.0.7e
in 2.0.6 there was a tickbox in configuration, it is no longer there. Instead there is a drop down, and i have selected none, but once i view an invoice, it is always attached. Even if i cancel an order, the invoice gets attached. Bug(s)?

thanks!
Title: Re: Stop PDF invoices being sent
Post by: alf1234 on June 30, 2012, 19:27:35 pm
looks like it still happening in 2.0.8 :(
Anyone got any ideas?
Title: Re: Stop PDF invoices being sent
Post by: John2400 on July 01, 2012, 11:18:33 am
I also have this happen -  pdf invoices being sent for all configurations.
Title: Re: Stop PDF invoices being sent
Post by: John2400 on July 02, 2012, 00:47:12 am
The invoices now have the correct headings for vendor and buyer - but the buyers email has pending in the heading and the vendor confirmed - so both get a PDF -  ( i did not go into orders and update anything)
My configuration says ; only send an invoice on confirmed , which I have not done.

first email that arrives:
Vendor:   Hello xxxxxxxx,
Mr sfds fsafasfa confirmed an order with a total of $ 664, his/her order number

Buyer :  Your order number:
Your order password:
Your order status is Pending

The actual layout , and the way the invoices now read is good.

Title: Re: Stop PDF invoices being sent
Post by: Milbo on July 02, 2012, 12:16:24 pm
Did you checked version a?
Title: Re: Stop PDF invoices being sent
Post by: John2400 on July 02, 2012, 12:53:04 pm
I updated this morning - 2.0.8a and I tested got this below?

I test now 10 hours later and they are perfect ?

no I update this agin to say that the invoices - are almost perfect but they are getting sent when configuration is set to none or pending.   and before I get into the order section of VM (BE) -    some do come through OK.  why ?
Title: Re: Stop PDF invoices being sent
Post by: 4est on July 02, 2012, 14:29:05 pm
How can I stop invoices from being sent? 
I have set send invoices to "none", but they are still being sent to the customer (and to me)

Title: Re: Stop PDF invoices being sent
Post by: alf1234 on July 03, 2012, 12:58:50 pm
How can I stop invoices from being sent? 
I have set send invoices to "none", but they are still being sent to the customer (and to me)
i can't stop them either.
still happening in 2.0.8a
:(
how long does it take to get a simple bug fixed?
Title: Re: Stop PDF invoices being sent
Post by: John2400 on July 04, 2012, 07:59:13 am
PDFs being set in 2.0.8 "b"

I have updated : shown in image 2.0.8 b
i have set configuration: see image
I purchase a product :standard payments _ options
I receive the emails : buyer and seller with PDFs attached and I have not confirmed the order in the back end.

Remember I get both due to testing only.

[attachment cleanup by admin]
Title: Re: Stop PDF invoices being sent
Post by: Milbo on July 04, 2012, 12:04:42 pm
How can I stop invoices from being sent? 
I have set send invoices to "none", but they are still being sent to the customer (and to me)
i can't stop them either.
still happening in 2.0.8a
:(
how long does it take to get a simple bug fixed?


Little hint coming from the reality around the corner.

Maybe the bug is not simple, eh? I just dont have the problem. So it is not easy or simple.
Title: Re: Stop PDF invoices being sent
Post by: John2400 on July 04, 2012, 13:57:21 pm
Ok update on PDF configuration_

If I go to the configuration setting and I change it and change it back - then it appears to work OK.

* So when I install a new version of VM - maybe  the configuration turns something on or off. 

I turned off and all the payment and shipment methods one by one and then back on. - they did nothing.

* i notice when I update VM I have to turn off some modules I don't use everytime - Maybe ? it does something to the configuration setting?  Right now I did 10 tests and they all come through ok.  _ infact if it is OK - then for me my shop works well.

But - the vendor's email still has the wrong wording -
Title: Re: Stop PDF invoices being sent
Post by: 4est on July 04, 2012, 21:28:09 pm
maybe offtopic, or near, but do you also receive the email with order status change?
in VM1 only the customer received this, now in VM2 I too receive every status change.  Can this be disabled somewhere, as for me it's just another email to delete?

I do understand it might be useful in some situations where someone else does update the statuses and you want things under control, but it's not my case :)

Title: Re: Stop PDF invoices being sent
Post by: John2400 on July 05, 2012, 00:49:20 am
4east,

 yes you should always get an email - but you should only get a pdf invoice with the configuration set as you want - ie: if you set configuration to shipping then on the first order you(vendor) and the buyer will get an email. It should say pending.   and no PDFs

* then you go to orders in the back and if you change the setting to shipping (and nothing else) - then an email with an invoice should arrive to you and the customer.

* to turn that off - that is another story - I use microsoft Outlook to collect POP mail - when all VM email come in they just go to a redirected folder and sit there - infact I have a sound set up to hear them come in.  they never turn up in my personal mail. That way no mess and delete if needed in one click - but for accounting purposes - might be best to always receive a pdf copy of the invoice.

* now the extra bit did you - do what I did below and turn the configurtion to none. then save . then turn it back say to shipping and save and then reset to another configuartion and test.  -  did they emails come but the PDFs stop. ???  this is important .
Title: Re: Stop PDF invoices being sent
Post by: John2400 on July 05, 2012, 11:06:44 am
Every thing in 2.0.8c installed correctly,

* fast orders , no pdfs in the emails, working very well the site - is great but?  vendor's email still the same I changes all the configurations back and forth saved. I even chnge the setting in the products section from shipped to pending - in case it was pulling it from there. 

I went to the orders section and I changed the orders to shipped, cancelled, etc all settings - all emails came through correctly to the buyer - but the vendor always had the word shipped in every email. in the same spot as in image - it is like it is a text and not pulling from anywhere?  see image.

The subject was always correct.

[attachment cleanup by admin]
Title: Re: Stop PDF invoices being sent
Post by: bpluijms on July 05, 2012, 12:41:08 pm
I have installed VM2.0.8.c and I still get an PDF invoice attached to every e-mail at every status change.
I have set the order-status for invoice to NONE, so It should be correct.

Now my customers (if it was a live site) are receiving an PDF invoice even when their order isn't confirmed.
I hope there will be a quick solution for this.


A bit offtopic:
maybe offtopic, or near, but do you also receive the email with order status change?

This should be a option, maybe for a next release? I don't want to receive an email everytime I change a status is changed.



[attachment cleanup by admin]
Title: Re: Stop PDF invoices being sent
Post by: John2400 on July 05, 2012, 12:48:30 pm

* now the extra bit did you - do what I did below and turn the configurtion to none. then save . then turn it back say to shipping and save and then reset to another configuartion and test.  -  did they emails come but the PDFs stop. ???  this is important .

did some one test this - reset your configurations - to something else and save - test buy a product - reset them back save and buy a product?
Title: Re: Stop PDF invoices being sent
Post by: bpluijms on July 05, 2012, 12:52:38 pm
Hello John,

I have tried this a couple of times, but it still doesn't work.
VM 2.0.8c is installed correctly, I have switch the status for PDF invoice attachment a couple of times but it is attached at every mail.
Could this be a caching problem?

UPDATE: I have tried to delete all cache, changed the status a couple of times and saved it everytime, but there is still a problem with the PDF invoices that are attached to EVERY e-mail.

And indeed, the Vendor message inside the e-mail is always the same (confirmed), but I hope to get an option to turn off vendor e-mails.
Title: Re: Stop PDF invoices being sent
Post by: slammy on August 05, 2012, 12:04:44 pm
Hello,

I think John2400 posted already the solution for this (Thanks John!), but it took me some minutes to get it.

I am on a testenvironment with vm sr 2.0.8_e and jml 2.5.6 and I didn´t use pdf-invoices in the past, we put a hardcopy with when we ship the goods.
Last week I was just interessted in the pdf-invoice and changed the configuration under vm backend -> configuration -> attach pdf invoices  from "none" to "confirmation". I did some testorders last week, and those I did, have a pdf-invoice attachement in every mail when I change the status, even when I change the configuration back to "none"and make a orderstatus change.

BUT:!!!

I just did a new order (with configuration setting none) and pdf-invoices are gone.

Maybe vm saves the actual pdf-configuration-mode (this time the order is placed) and attaches this information to the order, this would explain why old orders with this configuration mode still further send pdf-invoices and new orders with configuration mode "none" don´t.

Can someone confirm?

Title: Re: Stop PDF invoices being sent
Post by: Milbo on August 05, 2012, 13:32:34 pm
There was an error,

fixed in the svn.
Title: Re: Stop PDF invoices being sent
Post by: slammy on August 05, 2012, 17:04:38 pm
Hello again,

I have to correct my last post. The workaround worked fine until I enabled PayPal payment method. Now I have ongoing invoice attachements again. If I do the workaround again, with disabling paypal payment  method and "none" in backend configuration and a new order it works again without attachements.
 
Milbo, can u post a file ?Which file(s) are fixed in svn, view.html.php from views/invoice?
thank u for ur time.
regards slammy