• Resolved bass98

    (@bass98)


    Im using plugin WooCommerce Orders and Products Export – MR
    where i can export orders every month for my accountant

    most important is invoice number and date of making an invoice
    before i update plugin WooCommerce PDF Invoices & Packing Slips

    i had something like this in exporter plugin:

    private static $ordersdetails = array(
    “ID” => array(“Order number”, true),
    “_customer_user” => array(“Customer ID”, false),
    “_wcpdf_formatted_invoice_number” => array(“Invoice number”, true),
    “_wcpdf_invoice_date” => array(“Ivoice date”, true),
    );

    but after update, shows up a new table in mysql for invoice numbers and dont show up on export

    please help me how to make it work proper

    • This topic was modified 7 years, 3 months ago by bass98.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hello Bass,
    Indeed some of the data has been renamed in 2.0.

    Here’s where everything is stored now:

    1. _wcpdf_invoice_date – UTC timestamp of the invoice date
    2. _wcpdf_invoice_date_formatted – Invoice date formatted to local time & format
    3. _wcpdf_invoice_number – Formatted invoice number
    4. _wcpdf_invoice_number_data – Array of the data that was used to generate the invoice number:
    • number
    • formatted_number
    • prefix
    • suffix
    • document_type
    • order_id
    • padding

    It looks like you only need to change _wcpdf_formatted_invoice_number to _wcpdf_invoice_number and _wcpdf_invoice_date to wcpdf_invoice_date_formatted.

    
    private static $ordersdetails = array(
    	“ID” => array(“Order number”, true),
    	“_customer_user” => array(“Customer ID”, false),
    	“_wcpdf_invoice_number” => array(“Invoice number”, true),
    	“_wcpdf_invoice_date_formatted” => array(“Invoice date”, true),
    );
    

    Let me know if that indeed does the trick!

    Ewout

    Thread Starter bass98

    (@bass98)

    yes it works!!!!!!

    Thank you very very much !

    Plugin Contributor Ewout

    (@pomegranate)

    Great, very glad to hear that ??

    Have a fantastic day!
    Ewout

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