• Resolved Ralf_CT

    (@ralf_ct)


    Greetings!

    I’ve got an online WooCommerce shop using the WooCommerce PDF Invoices & Packing Slips plugin. For some reason invoice numbers are allocated to incomplete/cancelled orders, i.e. the customer aborts the purchase and the payment never goes through.

    To prevent invoice numbers for non-existent orders I then have to go into the database to delete the invoice number, and then correct the “Next Invoice Number” under WooCommerce PDF Invoices/Documents.

    How can this allocation of invoice numbers for incomplete orders be prevented? I only want invoice numbers for completed paid orders.

    Many thanks.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi! Invoice numbers are only create automatically when an invoice is created. If you attach the invoice to emails that are sent early in the process (before payment is successful, as with the Admin New Order email), you may indeed end up with invoices you don’t want. You can fix this by only attaching the invoice to emails sent out after payment is successful (like Completed/Processing status emails) see:
    When is the PDF invoice number assigned?

    Hope that helps!
    Ewout

    Thread Starter Ralf_CT

    (@ralf_ct)

    Thank you for your tip. Under WooCommerce PDF Invoices “Documents/Invoice” everything is currently ticked under “Attach to”. Could this be the reason? Should I just tick “Completed Order”?

    Plugin Contributor Ewout

    (@pomegranate)

    Yep, that’s most certainly the reason! Completed order is the safest, but in most configurations Processing is also paid (though I would just attach it to one email to save server resources).

    Hi, I have the same problem … I put the check on the item “attach the invoice to: email order completed” but I have not solved. How can I do for you not generate invoice for canceled orders? Thank you

    Thread Starter Ralf_CT

    (@ralf_ct)

    Only tick “Completed Order” … worked for me.

    maka85

    (@maka85)

    Thanks, but I do not see this possibility … I have version 1.6.5 maybe I have to proceed with the plugin update

    Thread Starter Ralf_CT

    (@ralf_ct)

    Not sure what settings 1.6.5 has. I’m on 3.0.8 and also behind. Don’t you have a Woocommerce/PDF Invoices/Documents tab in 1.6.5? Are you on the latest WordPress version, if not then you may not be able to upgrade the plugin.

    maka85

    (@maka85)

    I updated the plugin to the latest version and put the check in Order completed but unfortunately it still does not work. Continue to generate the invoice with progressive number forcing me to manually intervene on the billing number or to make the credit note. How can I do? Thanks

    Plugin Contributor Ewout

    (@pomegranate)

    @maka85
    There are two conditions under which an invoice number can be generated:

    1. Automatically – when the invoice is sent as an email attachment. Since you have only checked the ‘completed’ order email for the attachment, this will not happen for orders that are not completed (of course, when an order already has an invoice number this setting will not remove that automatically).
    2. Manually – when you click the button. This button in the order list will always be shown, regardless of the order status or whether there is an invoice number. So if an order did not have an invoice but you click the button, it will create an invoice + invoice number.

    Ewout

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Cancelled Orders get an Invoice Number’ is closed to new replies.