Template changes

Created on 2 April 2024, 8 months ago

When I generate a change in the template that generates the invoices in pdf, the changes are applied only to the new orders, in the old orders when the new invoice is generated I do not generate the new changes to the template

🐛 Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @danielvs1990
  • Status changed to Closed: works as designed 8 months ago
  • 🇮🇱Israel jsacksick

    Yes, that is because invoices are immutable. Once they're generated, the invoice file is stored on the disk and a reference to the invoice file is stored on the invoice.

    If you want to regenerate old invoices, you're going to have to delete the generate invoices from the disk and eventually clear the invoice file reference.

    Marking this as "works as designed" as we implemented this behavior on purpose.

  • muchas gracias por contestar, como podria eliminar las facturas del disco y sus referencias??

Production build 0.71.5 2024