• Resolved Armands

    (@armandsdz)


    Hi!

    Is it possible to force a regeneration of invoice when order status changes?
    My issue is that when order is made by direct bank/wire transfer payment method client gets an email with advance payment invoice.
    When it gets paid then order status gets changed manually to “completed”.
    And it would need to send a little bit different invoice this time. But instead it sends the same advance payment invoice because it’s already generated.
    Within invoice template I have some conditions that would take care of this if only it would try to regenerate the invoice when it attaches it to email.
    If I delete the generated invoice then status change and invoice sent to client is correct because it can’t find the invoice and therefore it regenerates it.

    Any thoughts on how this could be automated? Can I force invoice regeneration somehow?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    The invoice PDF is always generated on the fly except when it concerns email attachments and the email is sent within 60 seconds with an attachment with the same name. If you wait 60 seconds and then change the order to completed, it will not reuse the (temporary) pdf file.

    Thread Starter Armands

    (@armandsdz)

    Thanks!

    Good to know! That’s indeed the case.
    When I was testing I was completing the order right away, so got the temporary invoice in second email.

    Thanks again!
    Great plugin! ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PDF regeneration on status change’ is closed to new replies.