Support » Plugin: WooCommerce Print Invoice & Delivery Note » Wrong invoice Date

  • info.karteria.ch

    (@infokarteriach)


    Hi there

    I have also remarked that since a latest update suddenly the invoice date is showing on the invoice. This was not visible before.

    I think it is great, but the date should be changeable. I made opened an order for a customer on the 5th November and on the 8th November 2017 I printed the invoice, but the date on the invoice was the 6th November 2017? How can this be changed?

    Best thanks in advance for your efforts and your assistance.

    Regards Claudia

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Vishal Kothari

    (@ashokrane)

    Hi @infokarteriach,

    I will check on this, but since I haven’t added code that specifically adds the invoice date, I think this is due to recent WooCommerce updates.

    Regarding your order, did you change the order status on 6th November? Just curious to know why the date of 6th Nov came on the invoice. Also, is this the case for all your orders – where the invoice date is the next date of the order placed date?

    It is hard to provide the invoice date as changeable, rather I would hide it instead.

    :Vishal

    info.karteria.ch

    (@infokarteriach)

    Hi @ashokrane

    Thanks for your reply and your efforts. I don’t know from where they Plugin takes the date, but it will be all the time possible, that a customer places an order in my shop, which will be delivered some days later, as I also deliver on order. So the invoice should show the date, when I print it for shipment. It looks not very professional when you ship an order with an invoice, which has an 4 or more days old date.

    No, I did not change the status on the order on the 6th November 2017, I changed it on the 8th November 2017, therefore I think it’s fully not logical to get on the invoice the date of 6th November 2017.

    I checked trough several orders, some show as invoice date the same date as the order was placed in the shop. One shows f.e. the invoice date of today, even if the order was placed in June 2017. Some show a fully different invoice date, 3 or 5 days after the order was place??? And there is no system behind, sometimes it shows the date when the order status was changed to status “in processing”, sometimes it shows the date on which I changed the status to “completed”. This is really curious???

    Actually I don’t want to make it invisible, as I think it is a good thing to have an invoice date.

    Very best thanks and best regards

    Claudia

    Plugin Author Vishal Kothari

    (@ashokrane)

    Thanks for all the details Claudia. This helps.

    I will check on this issue & get back to you most probably by Monday.

    :Vishal

    Any news on this one? I also need the Invoice date on the invoice. And preferably the date the invoice will be send.

    • This reply was modified 1 year, 8 months ago by creativenl.
    Plugin Contributor Rashmi Malpande

    (@rashmim)

    Hi @creativenl,

    It is not possible to add a invoice date in the current version of the plugin. But you can display it using some custom coding. You will have to override the invoice template and add some code to display the invoice date. This invoice date is also displayed in the admin order page below the ‘Print Invoice’ button.

    Can you tell me where you want the invoice date to be displayed so that I can tell where exactly you will need to add the custom code?

    Regards,
    Rashmi

    Hi, I think just below the invoice number will be a great place to put it.

    Can you help me more with the custom coding?

    Plugin Contributor Rashmi Malpande

    (@rashmim)

    Hi @creativen,

    You will have to make some changes in the plugin files.

    1. Go to line no 251 in ‘woocommerce-delivery-notes/includes/wcdn-template-functions.php’ file. You will find this condition –
    if( wcdn_get_template_type() == 'invoice:' ) {

    Remove the colon from the string ‘invoice:’. Change it to – if( wcdn_get_template_type() == 'invoice' ) {

    2. Go to line 501 in ‘woocommerce-delivery-notes/includes/class-wcdn-print.php’ file. You will find this statement –

    $meta_added = add_post_meta( $order_id, $meta_key, time(), true );

    Change it to – $meta_added = update_post_meta( $order_id, $meta_key, time() );

    This will show the date on which the invoice is sent. We will add this in the plugin in our next update.

    Regards,
    Rashmi

    Great,
    Only the “invoice date” needs to be translated … i will look into that now.

    My client is using the print invoice option on her android telephone. She doesn’t get a print of the invoice, but the pages of the wpadmin is on the print (2 pages).
    Any idea. On the iPhone it is working well.

    and one other question.. can the shipping address be hidden on the invoice?

    I had to add something to translate it in the right way. i also had to use another way of translating before (Loco Translate) to make a new translation file.

    #: ../includes/class-wcdn-writepanel.php:218
    msgid “Invoice Date”
    msgstr “Factuurdatum”

    the msgid “Invoice date: ” didn’t do the thrick.

    Plugin Contributor Rashmi Malpande

    (@rashmim)

    Hi @creativenl,

    I am not sure why the print invoice is not working on Android. I will take a look at that and get back to you.

    Do you want to hide the shipping address just for Invoice or for Delivery Notes and Receipt as well?

    Regards,
    Rashmi

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Wrong invoice Date’ is closed to new replies.