my $sql = "select ws.weekstart,ws.weekend,ws.calweek,ws.calyear, ws.id_staff
,to_char(ws.workhours::interval,'HH24:MI') as workhours
,to_char(ws.vacancyhours+ws.vacillhours+ws.vacextrahours,'HH24:MI') as vacancyhours
- ,to_char(ws.vacancyhours,'HH24:MI') as vacancynormal,
- ,to_char(ws.vacillhours,'HH24:MI') as vacancyill,
- ,to_char(ws.vacextrahours,'HH24:MI') as vacancyextra,
+ ,to_char(ws.vacancyhours,'HH24:MI') as vacancynormal
+ ,to_char(ws.vacillhours,'HH24:MI') as vacancyill
+ ,to_char(ws.vacextrahours,'HH24:MI') as vacancyextra
,to_char(ws.partunemplhours,'HH24:MI') as partunemplhours
,to_char(ws.recuperationhours,'HH24:MI') as recuperationhours
,to_char(ws.totalhours,'HH24:MI') as totalhours
<tr>
<td style=\"text-align: right;background-color: #e6e6e6;\">heures contractuelles:<br/>heures travaillées:</td>
<th style=\"width: 15mm;\">".$data->{contracthours}."<br/>".$data->{workhours}."</th>
- <td style=\"text-align: right;background-color: #e6e6e6;\">congé maladie:<br>congé:</td>
- <th style=\"width: 15mm;\">".(($data->{vacancyill} ne '')?$data->{vacancyill} :"00:00")."<br>".(($data->{vacancynormal} ne '')?$data->{vacancynormal} :"00:00")."</th>
+ <td style=\"text-align: right;background-color: #e6e6e6;\">congé maladie:<br>congé:<br>congé except.:</td>
+ <th style=\"width: 15mm;\">".(($data->{vacancyill} ne '')?$data->{vacancyill} :"00:00")."<br>".(($data->{vacancynormal} ne '')?$data->{vacancynormal} :"00:00")."<br>".(($data->{vacancyextra} ne '')?$data->{vacancyextra} :"00:00")."</th>
<td style=\"text-align: right;background-color: #e6e6e6;\">heures<br/>récupérées:</td>
<th style=\"width: 15mm;\">".$data->{recuperationhours}."<br/> </th>
<td style=\"text-align: right;background-color: #e6e6e6;\">durée travail<br/>réel prestée:</td>
our $sitecfg ={
cookiename => 'potlu',
dbtype => 'PgPP',
- dsn => 'DBI:PgPP:dbname=potlu2_db;host=localhost',
- #dsn => 'DBI:PgPP:dbname=potlu2_db;host=sql12.your-server.de',
+ #dsn => 'DBI:PgPP:dbname=potlu2_db;host=localhost',
+ dsn => 'DBI:PgPP:dbname=potlu2_db;host=sql12.your-server.de',
dbuser => 'potlu2_user',
dbpassword => 'dMY8xGB6cBLzrDGE',
page => 'index.tt',
my $class = shift;
my $p = shift;
my $self = bless {}, $class;
- $self->{debug} = 1;
+ $self->{debug} = 0;
$self->{dbh} = DBI->connect($p->{dsn},$p->{dbuser},$p->{dbpassword},{PrintError=>1,RaiseError=>1,AutoCommit=>1}) or return "query Connection Error!".$!;
return $self;
}
</td>
<td class="resultcol"> </td>
</tr>
- <tr><th class="labelcol">Zeitraum 1</th>
+ <tr><th class="labelcol">[% lbl.timeperiod %] 1</th>
<td>
<div class="cell" style="width: 86px;">
<input class="timefield data_staffreportperioddays" data-column="timestart1" data-id="" style="display: inline;float: left;" placeholder="00:00" data-table="staffreportperioddays" id="timestart1" name="staffreportperioddays_timestart1" onblur=
<input class="data_staffreportperioddays white text-black readonly" id="interruptionhours" name="staffreportperioddays_interruptionhours" style="width: 60px;display: inline;" type="text" value=""> </td>
<td class="resultcol"> </td>
</tr>
- <tr><th class="labelcol">Zeitraum 2</th>
+ <tr><th class="labelcol">[% lbl.timeperiod %] 2</th>
<td>
<div class="cell" style="width: 86px;">
<input class="timefield data_staffreportperioddays" data-column="timestart2" data-id="" style="float: left;" placeholder="00:00" data-table="staffreportperioddays" id="timestart2" name="staffreportperioddays_timestart2" onblur="timecalc.validateTime(this);staffperiodweeks.checkworktime();return false;" type="text" value="">
<th colspan="4" class="moduletoolbar">[% lbl.pauses %]</th>
</tr>
<tr>
- <th class="labelcol">Zeitraum 1</th>
+ <th class="labelcol">[% lbl.timeperiod %] 1</th>
<td>
<div class="cell" style="width: 86px;">
<input class="timefield data_staffreportperioddays" data-column="pausestart1" data-id="" style="float: left;" placeholder="00:00" data-table="staffreportperioddays" id="pausestart1" name="staffreportperioddays_pausestart1" onblur=
</td>
</tr>
<tr>
- <th class="labelcol">Zeitraum 2</th>
+ <th class="labelcol">[% lbl.timeperiod %] 2</th>
<td>
<div class="cell" style="width: 86px;">
<input class="timefield data_staffreportperioddays" data-column="pausestart2" data-id="" style="float: left;" placeholder="00:00" data-table="staffreportperioddays" id="pausestart2" name="staffreportperioddays_pausestart2" onblur=
-[% appversion='1.1.8' %]
+[% appversion='1.3.0' %]
[% minify = '' %]
[% PROCESS "lang/${lang}.tt" %]
<!DOCTYPE html>
"validated2" => "val.",\r
"vacancyextra3" => "Sonderurl.",\r
"comment" => "Bemerkung...",\r
- "datasaved" => "Die Daten wurden gespeichert!"\r
+ "datasaved" => "Die Daten wurden gespeichert!",\r
+ "timeperiod" => "Zeitraum"\r
} %]
\ No newline at end of file
"weekhours_short" => "h/semaine",
"minmaxvalues" => "Valeurs Minimum/Maximum",
"maxdayhours" => "max heures/jour",
- "maxweekhours" => "max heures/semaine",
- "maxcutoff" => "max coupure",
- "maxtotal" => "max total",
- "mindailyfreehours" => "min heures libre quotidienne",
+ "maxweekhours" => "max. semaine",
+ "maxcutoff" => "max. coupure",
+ "maxtotal" => "max. jour",
+ "mindailyfreehours" => "min repos quot.",
"mindailyouttime" => "min repos quotidien",
"mindailyouttime2" => "min h. libres<br/>quotidienne",
"resttime" => "repos quot."
"dataset" => "Dataset",
"usernamechange" => "Changement du Login",
"newusername" => "nouveau Login",
- "edittimetracks" => "Editer Pointage",
+ "edittimetracks" => "Pointage",
"infoouttimes" => "Info heures libres avant/après",
- "freetimebefore" => "heures libres avant",
- "freetimeafter" => "heures libres après",
+ "freetimebefore" => "repos quot. avant",
+ "freetimeafter" => "repos quot. après",
"statementbeforevalidation" => "Décompte avant validation",
"reopen" => "Reouvrir",
"transferhours" => "heures à reporter",
"days" => "jours",
"staffnumber" => "No.",
"ttpincode" => "Code Pin",
- "timetracker" => "Pointeuse",
- "timetrackers" => "Pointeuses",
+ "timetracker" => "pointeuse",
+ "timetrackers" => "pointeuses",
"cleanfp" => "supprimer empr. digitales",
"staffpwd" => "Mot de Passe Calendrier",
"vacancyhours" => "heures/année",
- "vacancyyears" => "Congé annuelle",
+ "vacancyyears" => "congé annuelle",
"year" => "année",
- "fixtime" => "Minuten (+/-)",
+ "fixtime" => "minutes (+/-)",
"staffvacancy" => "Congé",
"vacancyill" => "maladie",
"vacancyextra" => "extraordinaire",
"vacancyextra2" => "c. except.",
- "partunempl" => "Chômage partielle",
- "ttentry" => "Entrée",
- "ttexit" => "Sortie",
+ "partunempl" => "chômage part.",
+ "ttentry" => "entrée",
+ "ttexit" => "sortie",
"tttotal" => "Total",
"msgworkhoursinside" => "les pauses doivent être dans l`heure de travail",
"freeday" => "jour de repos",
"date" => "Date",
- "vacdescription" => "Description",
+ "vacdescription" => "description",
"note" => "Note",
- "exception" => "Exceptions",
+ "exception" => "exceptions",
"restriction" => "Restriction",
"none" => "aucune",
"onlyworkdays" => "seulement si heures configurées",
"flexworktime" => "heures de travail flexible",
"strictworktime" => "heures de travail stricte",
- "totalwork" => "Total Arbeit",
+ "totalwork" => "Total travail",
"filter" => "filtrer...",
"statementtransfered3" => "trans.",
"supphourspayed2" => "payé",
"validated2" => "val.",
"vacancyextra3" => "c. except.",
"comment" => "note...",
- "datasaved" => "Les données ont été sauvegardées!"
+ "datasaved" => "Les données ont été sauvegardées!",
+ "timeperiod" => "période"
} %]
\ No newline at end of file
}
let repdata = {"schemata":schemata,"id_reportperiod":udata[0].id,"staff_exclude":staffexcl};
if (udata[0]) {
- report.generate('pot',"periode_" + moment(udata[0].startdate).format("YYYYMMDD") + "-" + moment(udata[0].enddate).format("YYYYMMDD"),repdata);
+ let cdate=moment().format("YYYYMMDD-HHmm");
+ report.generate('pot',"periode_" + moment(udata[0].startdate).format("YYYYMMDD") + "-" + moment(udata[0].enddate).format("YYYYMMDD") + "_" + cdate,repdata);
}
},
datarefresh: function(){
</div>
<div id="tbl_staffperiods" ></div>
<div id="tbl_spsplitted" style="display: none;"></div>
+
</div>
<div id="pnl_staffperiodweeks" class="panel" style="display: none;">
<div class="bar moduletoolbar">
[% INCLUDE module/periods/tlb_staffperiodweeks.tt %]
</div>
<div id="tbl_staffperiodweeks" ></div>
+ <div id="tbl_staffperiodfooter"style="border-top: 2px solid black;"></div>
</div>
<div id="pnl_staffvacancy" class="panel" style="display: none;">
<div class="bar moduletoolbar">
{
"name": "POT",
- "version": "1.1.8",
+ "version": "1.3.0",
"description": "plan d'organisation du travail",
"main": "main.js",
"scripts": {