Project

General

Custom queries

Profile

Actions

Feature #4913

closed

create view-template for computing hours without week-ends

Added by Reynaud Sylvain almost 12 years ago. Updated almost 12 years ago.

Status:
Rejected
Priority:
High
Assigned To:
Category:
-
Target version:
-
Start date:
08/20/2013
Due date:
% Done:

100%

Estimated time:

Description

see implementation in Lavoisier 1

Actions #1

Updated by Reynaud Sylvain almost 12 years ago

  • Status changed from New to Rejected
  • Assigned To set to Reynaud Sylvain
  • % Done changed from 0 to 100

No more needed, now it can be done with EXSLT:

<connector type="StringConnector" xmlns:date="http://exslt.org/dates-and-times">
    <parameter name="content" eval=" 
        choose(date:day-in-week(path('date'))=7,
            date:format-date(date:add(path('date'),'P2D'),'yyyy-MM-dd'),
            choose(date:day-in-week(path('date'))=1,
                date:format-date(date:add(path('date'),'P1D'),'yyyy-MM-dd'),
                path('date')
            )
        )"/>
</connector>
Actions

Also available in: Atom PDF