Hi, I have a problem with the due date. I set the default value to date + 2 weeks. When I open a new invoice, complete the due date correctly. But when I go from quote to convert Invoice, so the due date will not fill at all. Can I ask for advice? Thanks. Radim
You have added due date to Invoice Only?
If yes and you want that to be set while you are converting quote to invoice, you should add same field name to quote and set the default value too as you did for invoice. In that way when quote is converted, it copies values to same field names, your due date will be populated.
If that does not solves your problem, you can add a before logic hook to Invoices and set the value for New invoices due date to be 2 weeks from current date.
In the quote I select Payment Terms eg. 14 days (choice of blinds 14/30/60) and save quote. During the conversion quote to invoice I want to set automatic a due date to today + value from Payment Terms. Now when converting item due date remains empty
You will have to alter the logic in modules/AOS_Quotes/converToInvoice.php
Since the fields during conversion are set in this file, you will have to custom code the due date field and set it to today+payment terms.
The file itself should provide enough reference on how to go ahead with this but if you still need help, lemme know.