Welcome,
Guest
|
TOPIC:
Q about filename creation for orders/invoices 25 Nov 2015 23:43 #1
|
With great sadness we have to announce that we are ceasing development of all our VirtueMart, WooCommerce and Joomla plugins. Effective immediately, all our plugins -- even those that were paid downloads -- are made available for free from our homepage (GPL license still applies), but we cannot and will not provide any support anymore.
It has been a great pleasure to be part of the thriving development communities of VirtueMart as well as WooCommerce. However, during the last year it became painstakingly clear that in addition to a full-time job, a young family and several other time-consuming hobbies at professional level (like being a professional singer) the plugin development and the support that it requires is not sustainable and is taking its toll. It has been an honor, but it is now time to say good bye!
Welcome,
Guest
|
|
Hi, I'm using J3.4.5, Virtuemart 3.0.10 and Open-Tools Advanced Ordernumbers 3.2, and I have the following problem:
step 1: create and confirm order -> results in order# 2015-0001 and the pdf name is vminvoice_2015_0001.pdf step 2: create other order, -> results in order# 2015-0002 and the pdf name is vminvoice_2015_0002.pdf step 3: create other order, go to paypal but cancel payment-> results in 'DELETED' order# 2015-0003 (counter) but NO pdf is created step 4: create other order, -> results in order# 2015-0004 (from the counter value) but the pdf name is vminvoice_2015_0003.pdf (form some file counter? or from enumeration of actual folder files?) The question is: how can I DECREASE the counter when order is cancelled in paypal processing, to avoid different numer in PDF name and in internal order counter? OR how can I create a 'dummy' pdf, just for the sake of maintaining the correct pairing of file and counter numbers? Thanks in advance. Anna |
|
Dear Anna,
Unfortunately, in Virtuemart the generation of the order and the invoice numbers are completely decoupled from each other. An order number will be assigned as soon as an order is submitted (i.e. before the user is redirected to e.g. the PayPal payment page). If the order is then cancelled, that order will stay in the system as cancelled and the order number will stay reserved. The invoice number, on the other hand is only created when an actual invoice is generated (which with the default settings is the case when a payment is successfully received and the order is set to Confirmed). So, the order and the invoice numbers use two completely separate counters. If you really want the invoice numbers to be exactly the same as the order numbers, you can achieve this by setting the invoice number format to [ordernumber] See also the third bullet in the "Examples" section of the documentation: open-tools.net/documentation/ordernumber...-for-virtuemart.html
In particular, European tax laws typically require invoice numbers to be concurrent numbers (without gap), while VirtueMart's order numbers do not fulfill this requirement (due to cancelled orders also being counted in the order numbers). Best regards, Reinhold |