• Resolved marahman.b2b

    (@marahmanb2b)


    Invoice Number Options: Issue

    These are the invoice number options.
    Tyep:https://prntscr.com/e2o6g7
    I have selection of “WooCommerce Sequential Order Numbers” which was generating like 910-2017

    But after last update, the option is not taking any effect get the order number as invoice number.

    System is generating its like 16383-2017 which is not my sequence currently. i Test both the number option selection results are same. and even used the code [order-number]-[Y] but still the order number getting 910-2017 and invoice number 16383-2017.

    https://prntscr.com/e2o80b

    Kindly advise how to get order number as invoice too.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Na de laatste update (2.6.1) worden ordernummers opgeslagen als post_id, template settings staan op type WooCommerce ordernummer en notatie Format is [order-number], bij versie 2.5.7 werd dan het ordernummer/order_id getoond bij account order en admin orders. ook kregen de pdf facturen het ordernummer. Nu krijgt alles het post_id mee wat verwarrend werkt. Is dit makkelijk aan te passen? Alvast dank!

    Plugin Author Bas Elbers

    (@baaaaas)

    The Post ID is the same as the order ID, but the problem is that get_order_number() method has filter to change the order ID.

    I will change $this->order->id to $this->order->get_order_number() with next update. In the meantime you could use this code yourself.

    Thread Starter marahman.b2b

    (@marahmanb2b)

    Bas Thank you for understanding the concern,

    could you show us the file path to do the change.

    Hi, can you please post where to change this code so it can work correctly until you make an update.

    Plugin Author Bas Elbers

    (@baaaaas)

    includes/abstracts/abstract-bewpi-invoice.php

    • This reply was modified 8 years, 1 month ago by Bas Elbers.
    Thread Starter marahman.b2b

    (@marahmanb2b)

    Dear Bas,

    thanks for path, hope i did correct, as new invoice got order number as Invoice number too.

    Changes done at:
    /**
    * Format invoice number with placeholders.
    *
    * @return string
    */
    replaced
    $this->order->id
    to
    $this->order->get_order_number().

    Plugin Author Bas Elbers

    (@baaaaas)

    Correct!
    Did it work? ??

    Thread Starter marahman.b2b

    (@marahmanb2b)

    it worked.

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Invoice Number Options : Issue’ is closed to new replies.