• Resolved pepper80

    (@pepper80)


    Buongiorno, scusate la scocciatura, volevo sapere se c’è un modo di avere aggiornate le fatture già emesse in seguito a modifica del template e dei contenuti della stessa, cioè se modifico il logo e i messaggi presenti nella mia fattura una volta salvati, come posso vedere le modifiche anche nelle fatture già create in fase di ordine?
    è possibile?

    grazie infinite

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author labdav

    (@labdav)

    se usi WooCommerce PDF Invoice & Packing Slips, basta rigenerare/aprire i pdf delle fatture che rispettano sempre il template impostato al momento.

    Ewout

    (@pomegranate)

    Please note that since version 2.2.0, the plugin no longer updates old invoices when settings are changing. This is important because the invoice is a tax document that should be immutable after it’s released. If you change the name of your company or your address, or update your terms (footer text), the old invoices should not change.

    You have two options now:

    1. Under WooCommerce > PDF Invoices > Documents > Invoice, there’s an option that will allow you to always use the latest settings. You can use this as long as you want, but be warned that this will mean existing invoices may change if you change the settings. You can however also use this once, then regenerate invoice that need to be updated, and then turn off the setting again
    2. You can also delete existing invoices by clicking the trash icon behind the invoice heading in the order details page, then recreate the invoice (note that this will also use a new invoice number!!!)

    Hope that helps!

    @labdav I’m not familiar with Italian law, but you may want to add the same principle to the receipt documents too. The only changes you need to make are:
    remove the $receipt->get_settings() method so that the get_settings() method of the parent abstract is used (source). You could also copy it into your own document class, but for optimal compatibility I would recommend to leave this to the abstract (unless you need to do this differently).
    You can then return true for the use_historical_settings method to enable immutability to the documents: wpo_wcpdf_document_use_historical_settings (use the second filter parameter to make sure it only applys to your receipt document in that case!)
    Optionally, you could add the same setting as in the invoice to override this:
    source 1
    source 2

    send me an email you need more help with this or have any questions!

    Plugin Author labdav

    (@labdav)

    @ewout
    I guess that he’s talking about a simple layout changing of the invoice.

    I don’t know if use_historical_settings could be useful for a receipt, since it’s not a legal document as the invoice is.
    But, many thanks for your awesome job.

    Thread Starter pepper80

    (@pepper80)

    Thanks

    this step resolve my problem

    Under WooCommerce > PDF Invoices > Documents > Invoice, there’s an option that will allow you to always use the latest settings. You can use this as long as you want, but be warned that this will mean existing invoices may change if you change the settings. You can however also use this once, then regenerate invoice that need to be updated, and then turn off the setting again

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Modifico dati presenti in fattura, aggiornamento fatture già create’ is closed to new replies.