[Vtigercrm-developers] invoice workflows product details not available
Hamono, Chris (DPC)
Chris.Hamono at sa.gov.au
Mon Oct 13 03:26:08 GMT 2014
Hi Uma
I did some basic debugging and found a couple of things.
Firstly upgrading to 6.1 fixes the “($_DATE_FORMAT_)” issue it is now replaced with (dd-mm-yyyy)
The other thing I found was that the script attempts to look for the “productid” in the entitydata object passed to the workflows script. There is no field by that name. There is an array of listitems.
It would seem the product is not being loaded at all when the entity data is first being filled out
Chris
From: vtigercrm-developers-bounces at lists.vtigercrm.com [mailto:vtigercrm-developers-bounces at lists.vtigercrm.com] On Behalf Of Hamono, Chris (DPC)
Sent: Monday, 13 October 2014 9:21 AM
To: vtigercrm-developers at lists.vtigercrm.com
Subject: Re: [Vtigercrm-developers] invoice workflows product details not available
Hi Uma
Back from leave hence the late reply.
I am not sure what you mean by “In your case, it seems you have edited the same. So it breaks.” There was no changes made to the fields as inserted by the dropdown and what you showed is exactly the same as what I used except for the “($_DATE_FORMAT_)” (which seems to be undocumented).
I tested again this morning putting all possible variables into the email, none printed except the “($_DATE_FORMAT_)” which was printed exactly as it was entered (no interpolation)
We are using vtiger 6.0
Chris
From: vtigercrm-developers-bounces at lists.vtigercrm.com<mailto:vtigercrm-developers-bounces at lists.vtigercrm.com> [mailto:vtigercrm-developers-bounces at lists.vtigercrm.com] On Behalf Of Uma S
Sent: Friday, 3 October 2014 6:46 PM
To: vtigercrm-developers at lists.vtigercrm.com<mailto:vtigercrm-developers at lists.vtigercrm.com>
Subject: Re: [Vtigercrm-developers] invoice workflows product details not available
Hi,
When you want to display product-id and sales start date of invoice in workflow, This is the correct format.
$(productid : (Products) product_no) $(productid : (Products) sales_start_date) ($_DATE_FORMAT_)
In your case, it seems you have edited the same. So it breaks.
On Thu, Oct 2, 2014 at 12:11 PM, Hamono, Chris (DPC) <Chris.Hamono at sa.gov.au<mailto:Chris.Hamono at sa.gov.au>> wrote:
When creating a workflow for an invoice. If you choose the send an email task, you are given the opportunity to add fields to your email body
None of the product fields seem to work.
For example using the following code the product sales start date is supposed to be displayed
$(productid : (Products) sales_start_date)
In reality nothing is displayed
Any advice on how this can be fixed?
Chris
_______________________________________________
http://www.vtiger.com/
--
With
Best Regards
Uma.S
Vtiger Team
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20141013/2038bd02/attachment-0001.html>
More information about the vtigercrm-developers
mailing list