Recurring Run Automation via scheduler with "month in letter"

76 views
Skip to first unread message

Nicolas Micoud

unread,
Mar 2, 2021, 1:34:35 AM3/2/21
to iDempiere
Hi,

Every month, the recurring run process is executed and it's great.
The cherry on the cake would be to execute automatically using a scheduler.

Group/Date/Action are easy to pass as parameter.
But I can't find a way to pass the "current month in letter".
Means, I would like to be : "Mars" for French ; Marzo for Spanish, ....
The only thing I see would be to add a new reference list (with the 12 months).

Wondering if that can be achieved using current parameters ?

Thanks,

Nicolas

Martin Schönbeck

unread,
Mar 2, 2021, 2:54:55 AM3/2/21
to iDempiere
Hi Nicolas,

when I look at recurring run I don't see a parameter 'current month in letter'? Is it a parameter you defined additionally?

Regards,
Martin

Carlos Antonio Ruiz Gomez

unread,
Mar 2, 2021, 3:02:46 AM3/2/21
to idem...@googlegroups.com
Hi Nicolas, maybe it can be solved with the template we implemented here:
https://wiki.idempiere.org/en/NF2.1_Recurring_Run_Automation

Regards,

Carlos Ruiz
https://www.bx-service.com/



El 2/3/21 a las 07:34, Nicolas Micoud escribió:
> --

Nicolas Micoud

unread,
Mar 2, 2021, 5:28:57 AM3/2/21
to iDempiere
Yes, that's what I mean (my initial was not clear), automatically fill the parameter "Comments" with "Mars", "Marzo", .....

Nicolas Micoud

unread,
Mar 2, 2021, 5:45:24 AM3/2/21
to iDempiere
In other words, ATM, every month the process is executed and user has to fill the group, the date, the docaction and the comment (which is the month in letter)
Idea is to have a scheduler to avoid this manual task, so it means to find a way to write Mars/Marzo in the comments parameter

Martin Schönbeck

unread,
Mar 2, 2021, 11:39:07 AM3/2/21
to iDempiere
Hi Nicolas,

if you want to have the month in the comments parameter to put it into the description of the processed documents, I think you can simply ignore the comment and draw the date from one of the fields of the document. Then you can use the pattern @xyzdate<MMMM>@ to get the month literally.

Regards,
Martin

Nicolas Micoud

unread,
Mar 2, 2021, 12:38:25 PM3/2/21
to iDempiere
Hi Martin,

I was not aware of such possibility, I'll give it a try, thanks

Nicolas

Nicolas Micoud

unread,
Mar 3, 2021, 12:24:36 AM3/3/21
to iDempiere
Hi Martin,

I've just tried your suggestion on test.idempiere.org ; the reference invoice is 1000001 with description = "Invoice bla bla bla @DateInvoiced<MMMM>@  bla bla bla"
And it's perfect, thanks !

Regards,

Nicolas
Reply all
Reply to author
Forward
0 new messages