I've created these files (yes, I should have used one commit in stead of four):
https://github.com/Luke1982/corebos/commit/f380f050b7921d9cef221477a201fcc88c5718de
https://github.com/Luke1982/corebos/commit/38c1a530bb80758ff2082b8b31d0c0819f82ac2a
https://github.com/Luke1982/corebos/commit/eb5ab581456145f04c6b74d969f71d604f1d7364
https://github.com/Luke1982/corebos/commit/23955c89634812a4cc2549defcead0e313694f8e
The update process works. The problem is when I try to create a new workflow using this task, I get the following:
Nevermind. I forgot the '&'. Apparently this is a reference function.
Okay, the complete set is as follows:
I've tested this, and it works for me. Also the number of days added to the creation date works. This does not take into account weekdays/business days, it's just days. Please review the code and let me know where it could be better. Please also test this, I've done so but I don't know if there are any caveats left...
Hm, I seem to have found one bug that wasn't there before: the product lines aren't transported to the invoice anymore. This worked in my tests before, but not anymore.
https://github.com/Luke1982/corebos/commit/f380f050b7921d9cef221477a201fcc88c5718de
https://github.com/Luke1982/corebos/commit/38c1a530bb80758ff2082b8b31d0c0819f82ac2a
https://github.com/Luke1982/corebos/commit/eb5ab581456145f04c6b74d969f71d604f1d7364
https://github.com/Luke1982/corebos/commit/23955c89634812a4cc2549defcead0e313694f8e
The update process works. The problem is when I try to create a new workflow using this task, I get the following:
Code:
Fatal error: Declaration of CreateInvFromSO::doTask() must be compatible with VTTask::doTask(&$data) in {$MY_SERVER}/modules/com_vtiger_workflow/tasks/create_invoice_from_so.inc on line 88
Nevermind. I forgot the '&'. Apparently this is a reference function.
Okay, the complete set is as follows:
- The update script for the cbupdater module
- The XML file for the cbupdater module that creates the cbupdater record
- The task class
- The dutch new language file for workflows
- The US new language file
- The taskform for this workflow
I've tested this, and it works for me. Also the number of days added to the creation date works. This does not take into account weekdays/business days, it's just days. Please review the code and let me know where it could be better. Please also test this, I've done so but I don't know if there are any caveats left...
Hm, I seem to have found one bug that wasn't there before: the product lines aren't transported to the invoice anymore. This worked in my tests before, but not anymore.