joki94
joki94
Offline
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
Responses (8)
  • Accepted Answer

    joki94
    joki94
    Offline
    Wednesday, November 02 2016, 09:43 AM - #Permalink
    0
    Is there no solution?
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, November 02 2016, 10:10 AM - #Permalink
    0
    I don't understand what you're describing.. two different invoices should have 2 different numbers.. you are getting invoices generated with the same number?
    The reply is currently minimized Show
  • Accepted Answer

    joki94
    joki94
    Offline
    Wednesday, November 02 2016, 10:23 AM - #Permalink
    0
    The 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
    The reply is currently minimized Show
  • Accepted Answer

    joki94
    joki94
    Offline
    Wednesday, November 02 2016, 01:09 PM - #Permalink
    0
    Do you know what I mean?
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, November 03 2016, 09:59 AM - #Permalink
    0
    but 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.
    The reply is currently minimized Show
  • Accepted Answer

    joki94
    joki94
    Offline
    Thursday, November 03 2016, 10:10 AM - #Permalink
    0
    I 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
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, November 03 2016, 10:13 AM - #Permalink
    0
    yes, 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!
    The reply is currently minimized Show
  • Accepted Answer

    joki94
    joki94
    Offline
    Thursday, November 03 2016, 01:46 PM - #Permalink
    0
    Hi, did you recieved my mail?
    The reply is currently minimized Show
Your Reply