[ 
https://issues.apache.org/jira/browse/OFBIZ-1249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12528217
 ] 

Fabien Carrion commented on OFBIZ-1249:
---------------------------------------

The calculate method in the minilang plugin only lets somebody do calculation on
TYPE_DOUBLE, TYPE_FLOAT, TYPE_LONG, TYPE_INTEGER, TYPE_STRING, TYPE_BIG_DECIMAL

I add the way to calculate on a DATE object. I just convert the date to a long 
which is the quantity of seconds since 1979 and then it is possible to do any 
kind of calculation we want.

It is useful if we use it with the now-date-to-env function.

> To permit to
> ------------
>
>                 Key: OFBIZ-1249
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1249
>             Project: OFBiz
>          Issue Type: New Feature
>    Affects Versions: SVN trunk
>         Environment: all
>            Reporter: Fabien Carrion
>            Priority: Minor
>         Attachments: calculate_date_diff.patch.gz
>
>
> This patch lets use the calculate function in the minilang service function 
> with java.util.Date and java.sql.Date object.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to