[Vtigercrm-developers] Salesorder to Invoice Convert gets stopped, Workflow/Eventhandler problem

Tim Mohrbach preexo at googlemail.com
Tue Mar 15 00:24:05 GMT 2016


Blank page means server error 500, probably a fatal php error. Activate the debug output in the vtiger config file and look into the Webserver log files, let us know the error. 

Could be anything mate, with errors might be possible to solve. 

On March 15, 2016 7:07:44 AM GMT+08:00, Lennart van Ballegoij <lennart at egmmedia.nl> wrote:
>Hey guys,
>
>
>I’ve got a problem and I was wondering if anyone has encountered a
>similar
>problem or anyone has a guess what’s causing my problem.
>
>
>I have a workflow created through the module: Workflow Designer that
>converts a Sales order to an Invoice, I also have a custom module with
>an
>Event handler that launches on a after save event of the Invoice
>module.
>
>When launching the workflow that converts the Sales order to an Invoice
>I
>get a blank page.
>
>If I check invoices, is do see that the invoice is created, but it has
>no
>items (products) assigned to it.
>
>I understand an Invoice is created in 2 steps:
>
>            -Step1 all fields get saved.
>
>            -Step2 All attached items get saved.
>
>
>So it looks like my ‘vtiger.entity.aftersave’ event is being called on
>Step1 and for some reason stops the Invoice from being created.
>
>So after realizing it’s probably because my Handler gets called in
>Step1 of
>the Invoice save, I build in a check in my Module Handler to see if the
>created invoice contains items (products) if not my script does nothing
>else.
>
>
>But I still get the blank page even after creating this check in my
>EventHandler.
>
>
>Do I maybe need to tell my EventHandler to continue; or something like
>that
>after it sees it has no items assigned to the invoice?
>
>
>Hopefully someone can give me a push in the right direction.
>
>Thanks in Advance!
>
>
>Kind Regards,
>
>
>Lennart
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>http://www.vtiger.com/

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20160315/95a532be/attachment.html>


More information about the vtigercrm-developers mailing list