Difference between revisions of "AdminDoc2.0"
(→Formula) |
(→Formula) |
||
Line 42: | Line 42: | ||
'''Do not forget that time is given in sexacentimal. So to convert in hours you have to divide by 600.''' | '''Do not forget that time is given in sexacentimal. So to convert in hours you have to divide by 600.''' | ||
+ | |||
+ | 1 minute = 10 sexacentimals | ||
+ | 5 minuts = 50 sexacentimals | ||
+ | |||
+ | 1 hundredth of minute = 6 sexacentimals | ||
+ | 10 hundredth of minute (=1 tenth of minute) = 60 sexacentimals | ||
+ | |||
+ | |||
Example: for 100,10 €/h | Example: for 100,10 €/h | ||
10010*%DURATION/60000 | 10010*%DURATION/60000 | ||
+ | |||
+ | to round at 5 minutes : roundDuration(X,50) | ||
+ | |||
+ | to round with 10 hundredths : roundDUration(X,60) |
Revision as of 17:43, 20 April 2007
Cette page sera destinée à contenir la doc admin de la version 2.0, pour le moment elle a surtout pour but de lister un certain nombre de changements ou de nouveautés pour permettre aux beta-testeurs (et aux futurs rédacteurs de la doc) de s'y retrouver dans la version 2.0
- Lors de l'import d'utilisateurs, contrairement à la version 1.2 où il y avait une série de check-box permettant de définir les paramètres par défaut, c'est les paramètres par défaut du club qui sont appliqués.
Flight hours computation
In all formula, due to difference with interpretaion of decimal separator in various personnal computer, all values must to write without decimal separator, use X/Y to obtain correct value
Formula
Variable name | description |
---|---|
%DURATION | flight time input into the form |
%COUNTER_DEPARTURE | counter departure input into the form |
%COUNTER_ARRIVAL | counter arrival input into the form |
Function | description | Example |
---|---|---|
max(a,b) | return the maximum between a and b | |
abs(a) | return the absolute value of a | |
roundCeil(a,b) | return the a value round top to b | roundCeil(106,5) return 110 |
Pricing management
Formula
The formula knows following variables:
Variable name | description |
---|---|
%DURATION | Calculated duration recorded for the flight |
%COUNTER_DEPARTURE | counter departure recorded for the flight |
%COUNTER_ARRIVAL | counter arrival recorded for the flight |
Do not forget that time is given in sexacentimal. So to convert in hours you have to divide by 600.
1 minute = 10 sexacentimals 5 minuts = 50 sexacentimals
1 hundredth of minute = 6 sexacentimals 10 hundredth of minute (=1 tenth of minute) = 60 sexacentimals
Example: for 100,10 €/h
10010*%DURATION/60000
to round at 5 minutes : roundDuration(X,50)
to round with 10 hundredths : roundDUration(X,60)