• Hello,

    I built a campervan rental website, using WooCommerce, Elementor, and PDF Invoices & Packing Slips for WooCommerce.

    I need help investigating an invoice-numbering issue involving an unpaid, cancelled order.

    What happened

    A customer attempted to make a booking, but the payment was not completed. The order remained in “Pending payment” status and was subsequently cancelled automatically by WooCommerce when the payment time limit was reached. No payment was collected.

    The only relevant order note I can see confirms that the unpaid order was cancelled because the time limit had been reached.

    What the plugin shows

    Under Advanced → Numbers, the following entries appear for the same order:NumberDate and time displayedOrderType121 November 2026, 22:56:44#1702“gapped”1410 November 2026, 18:26:08#1702“invoice”

    The order currently displays invoice FW-2026-0014. Its document details show “Invoice created via: single order action.”

    However, I have not been able to establish whether a PDF for invoice number 12 was successfully generated or emailed, or why the same order later received invoice number 14. The available order notes do not explain this.

    Could you please help me clarify the following?

    1. What does “gapped” mean in this specific situation, and what could explain number 12 being recorded against an order that currently has invoice number 14?
    2. Which database records or existing logs should I check to determine whether invoice 12 was generated or emailed, and whether its data was subsequently changed or removed?
    3. What is the recommended procedure for handling this discrepancy and continuing the numbering sequence while preserving existing invoice numbers and a clear audit trail? We need to keep accurate records for accounting and tax purposes.
    4. Which settings control automatic invoice creation for unpaid, cancelled or failed orders, and do those settings also restrict manual invoice creation from the order screen?

    I would appreciate your guidance on identifying the cause before making any changes to the invoice data or numbering.

    Thank you for your help.

    • This topic was modified 1 week, 6 days ago by lilith2026.
    • This topic was modified 5 days, 7 hours ago by Yui. Reason: excess url deleted

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Contributor Darren Peyou

    (@dpeyou)

    Hi @lilith2026,

    In the free version of the plugin, document numbers are consumed when a pdf document is requested for the first time. This would either be through manual creation via the order backend or from email attachment to woocommerce emails.

    A gapped status here could mean that:

    • The document was deleted after having been created (by something or someone).
    • Its number was modified (by something or someone).
    • Creation failed after reserving the document number but before saving it to the order metadata. The number-store entry would remain, but the order would have no matching invoice number, so it could show “gapped.”

    In the database, document numbers are stored in:

    {WordPress table prefix}wcpdf_invoice_number
    

    For the default wp_ prefix, that is wp_wcpdf_invoice_number.

    —

    Is there anything particular you could tell us about this order, compared to other cancelled orders? Something like the payment status..?

    Do the order notes mention anything about a status change to either Processing or Completed before going to Cancelled?

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.