0
Hello,
I have the bug, that the invoicenumber changed everytime when an invoice was sent to customer. But If the customer get two invoices, what ever be the reason, he get two invoicenumbers. I need that the invoicenumber is fixed for one purchase.
Hope you can help me
I have the bug, that the invoicenumber changed everytime when an invoice was sent to customer. But If the customer get two invoices, what ever be the reason, he get two invoicenumbers. I need that the invoicenumber is fixed for one purchase.
Hope you can help me
Responses (8)
-
Accepted Answer
-
Accepted Answer
0The same invoice has different invoice numbers. If the user by a product from virtuemart via bank transfer, he got an email with payment information and invoice. If he then paid the invoice, the status will changed. So he will get the same invoice again but with another invoice number. That is a big issue, because for the buyer it looks that he bought the products again.
I cant eliminate the problem, that the user then gets two invoices, because If someone by a product via paypal, the user gets an email that we already recieved the money and that we will sent the product as soon as possible. Of course this user needs also the invoice.
So I changed your code, that invoice will be generated on 2 different statusses, but now I have the problem, that the invoice number for one purchase will be different. Hope now it is clearer.
Thanks for your help in advance, joki94 -
Accepted Answer
0but what you're describing is the VIRTUEMART invoice.. isn't it?
I mean, these 2 invoices you are decribing must be the VM invoice, and the IM invoice, which are two different things.
IM creates their own invoices, but it has no control over VM creating their own invoices too...
do you know what I mean? what you need is to disable the VM invoices. -
Accepted Answer
0I disabled it.
IM invoice generates a pdf invoice if the status of virtuemart is confirmed by customer and also if the status is confirmed.
And then the invoicenumber is everytime one higher. Means the customer get an VM invoice with a nice looking template if he bought a product. Than the invoicenumer will be 00001 and then after he paid his purchase he got another mail with IM invoice pdf template and there the invoice number is 00002. But it should have the same invoice number, because it is only one order -
Accepted Answer
0yes, the invoice number is supposed to be one higher every time.. that's the normal way it has to work.
you are saying that you disabled it, but you are saying also "Means the customer get an VM invoice".. so I don't understand what you mean.. did you disable the VM invoice, or not?
in any case, yes, the user should have only 1 invoice (and invoice number) per order. if you want to send me access I'll be glad to take a look..
thanks!
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »