News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Invoice PDF not updated

Started by daneshpayeh, October 10, 2015, 06:58:19 AM

Previous topic - Next topic

daneshpayeh

Hi everyone,

I use Jommla 3.4.4.  and VirtueMart 3.0.9.
When I try to update the status of an order (like changing from confirmed to shipped), customer receive an email with correct subject and information in the email. but, it doesn't update the previously generated pdf invoice. when I delete the previous pf file from safe path, then it works correct. I dont know the problem, maybe Virtuemart doesn't have permission to delete or rename the old pdf file and replace it by new one.
anyone know how to solve this problem?
thanks,

Mahdi

GJC Web Design

IMHO this is by design -- the pdf is only recreated if the orig. is deleted...

why do u generate an invoice before the sales process is complete?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

daneshpayeh

thank you,
I don't make pdf files. when a customer makes payment system makes a invoice pdf file with confirmed status and send it to user. Then when I change status to shipped system sends another email to customer but, attaches same previous pdf file. If I delete the pdf invoice first then change the status to shipped, system makes a new different pdf invoice with shipping information in it. So, it seams that it is designed to make different invoice file depend the status condition of order.

GJC Web Design

well thats what I said.. it only creates a "new" one if there isn't an existing one...   

I guess ideally it needs some code to delete the current one if it exists every time you click the create...
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jenkinhill

But do you really need to send out an invoice once an item is shipped, because IMHO an invoice should only be required immediately after payment is made. You can configure "Default Order Status to create an invoice" in the VM BE. When a physical product item is shipped you can print a delivery note through the BE to saend with that product.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

daneshpayeh

thank you jenkinhill and GJC,

To be honest, you right and there is no need to make new invoice file. But when system makes new invoice after changing status to shipped, adds a list of new status changes at the end of the invoice including shipment status and shipping comments. it also is a little bit descriptive for costumer, however as you said it is not necessary.
I was wondered maybe something is wrong with my system and it is not able to update the pdf file. I don't have any problem if this is by design.

thanks

GJC Web Design

Perhaps the "design" could be better but i suspect it is for legal concerns in various countries

an invoice is a legal document and shouldn't be altered once issued...

the solution is to just issue the invoice when the transaction is fully complete...
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation