Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using the standard 'create invoice from salesorder' in workflows
#5
I've created these files (yes, I should have used one commit in stead of four):

https://github.com/Luke1982/corebos/comm...c88c5718de
https://github.com/Luke1982/corebos/comm...819f82ac2a
https://github.com/Luke1982/corebos/comm...604f1d7364
https://github.com/Luke1982/corebos/comm...e313694f8e

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:

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.
Reply


Messages In This Thread
RE: Using the standard 'create invoice from salesorder' in workflows - by Guido1982 - 08-05-2016, 12:22 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)