Title: Sequential number based on condition
Last modified: February 21, 2022

---

# Sequential number based on condition

 *  Resolved [n0th](https://wordpress.org/support/users/n0th/)
 * (@n0th)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/sequential-number-based-on-condition/)
 * Hi all!
 * As Spanish shop we need to differentiate between different series for invoices,
   so would be possible to use different sequential number based on some condition?
   For example if the customer filled the NIF/VAT number to use one numeration if
   not use a different one. That would be great.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [alexmigf](https://wordpress.org/support/users/alexmigf/)
 * (@alexmigf)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/sequential-number-based-on-condition/#post-15388132)
 * Hello [@n0th](https://wordpress.org/support/users/n0th/)
 * How many series do you require?
 *  Thread Starter [n0th](https://wordpress.org/support/users/n0th/)
 * (@n0th)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/sequential-number-based-on-condition/#post-15399226)
 * Hi [@alexmigf](https://wordpress.org/support/users/alexmigf/), at least two, 
   one for the ones without NIF/VAT (Tickets / Facturas simplificadas) other for
   the ones with NIF VAT (Facturas)
 *  Plugin Contributor [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/sequential-number-based-on-condition/#post-15400612)
 * Hi [@n0th](https://wordpress.org/support/users/n0th/),
 * Custom document numbering is something that is beyond of the scope of this support
   forum, since it’s something a bit complex. That’s why we only offer help for 
   this for premium users (for basic setups), or as a custom job.
 * However, if you have some code skills, you could use the `wpo_wcpdf_document_sequential_number_store`
   filter hook ([source](https://github.com/wpovernight/woocommerce-pdf-invoices-packing-slips/blob/71e8d0734e2fd3c228facd0b95bb191c51f4838d/includes/documents/abstract-wcpdf-order-document.php#L1001))
   to create different document numbering based on specif given conditions. If you
   need extra help, please write us by [support@wpovernight.com](https://wordpress.org/support/topic/sequential-number-based-on-condition/support@wpovernight.com?output_format=md)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Sequential number based on condition’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/sequential-number-based-on-condition/#post-15400612)
 * Status: resolved