Env.parseVariable cannot use expression from current PO object

Description

Hi,

I'm adding a specific process to send an order to the customer (generate the PDF, create an email and send it).

It uses a mail template and I have an issue with the description

Order Description @Description@

When parsing @Description@ is replaced by AD_User.Description.

So, I've updated the mail template to this notation @C_Order_ID<Description>@

But the output was "".
Is because Env.parseVariable didn't find the foreignTable variable.

I've updated Env.java and now is working.

Could you please review the patch ?

Thanks,

Nicolas

Environment

None

Attachments

1

Activity

Show:

Carlos Ruiz December 4, 2019 at 1:31 PM

This was solved in - notation @C_Order_ID<C_Order.Description>@

Nicolas Micoud December 3, 2019 at 5:04 PM

Hello ,

In attachment, a patch to allow following notation to be called from the order itself.

Thanks,

Nicolas

ps: the title of the ticket is not clear, feel free to update it

Duplicate

Details

Assignee

Reporter

Labels

Priority

Created December 3, 2019 at 5:02 PM
Updated February 1, 2020 at 1:40 PM
Resolved December 4, 2019 at 1:31 PM