Saphir Posted December 19, 2017 Share Posted December 19, 2017 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 More sharing options...
Recommended Posts