Jump to content

Custom procedure after create invoice


Saphir

Recommended Posts

Hello Guys,

We need to execute a custom procedure after made a invoice. Actualy we have use the hook "InvoiceCreated", but we identify that inside of hook "InvoiceCreated" the invoice is with due date incorrect.

We set the "Order Days Grace" option to 5 days. The date of invoice should be current date + 5 days. But inside of hook "InvoiceCreated" the due date of invoice is current date, after the "InvoiceCreated" hook is finished the invoice due date is correct, current date + 5 days.

We need that the invoice due date inside hook "InvoiceCreated" is correct or another hook with this behavior.

An alternative we found was to use the hook "InvoiceCreationPreEmail", in this hook the due date of invoice is correct, however this hook does not start when it is an invoice of a new order, this hook only performs in the generation of recurring invoices. We need a hook that start in both cases.

We need your help to solve this.

 

Best regards,
Jeferson

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated