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/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:

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 - Guido1982 - 08-05-2016, 12:22 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)