using this:
if {@variablenextdate}>{TRAVEL.ENDDATETIME}then datediff('d', {TRAVEL.BEGINDATETIME},{TRAVEL.ENDDATETIME}) else
if{@variablenextdate}=date(0,0,0)then DateDiff ('d',{EXPENSEDETAIL.ARRIVEDATETIME} ,{TRAVEL.ENDDATETIME} )else
DateDiff ('d',{EXPENSEDETAIL.ARRIVEDATETIME} ,{@variablenextdate} )
to get a datediff of selected travel times - then multiplying this by Subsistence rate and then (hotel)Rate in separate formulas to get a per group total - but then I need to summarize all of these into one amount -
i.e 2/3/2 days at 330/135/253 per day = 660+405+506= 1571
I have arrays to calculate the 2/3/2 and the 330/135/253 -
Can I get the calculations from there - will send array coding if necessary.
if {@variablenextdate}>{TRAVEL.ENDDATETIME}then datediff('d', {TRAVEL.BEGINDATETIME},{TRAVEL.ENDDATETIME}) else
if{@variablenextdate}=date(0,0,0)then DateDiff ('d',{EXPENSEDETAIL.ARRIVEDATETIME} ,{TRAVEL.ENDDATETIME} )else
DateDiff ('d',{EXPENSEDETAIL.ARRIVEDATETIME} ,{@variablenextdate} )
to get a datediff of selected travel times - then multiplying this by Subsistence rate and then (hotel)Rate in separate formulas to get a per group total - but then I need to summarize all of these into one amount -
i.e 2/3/2 days at 330/135/253 per day = 660+405+506= 1571
I have arrays to calculate the 2/3/2 and the 330/135/253 -
Can I get the calculations from there - will send array coding if necessary.