| exception |
Twig\Error\RuntimeError {#2311
-lineno: 133
-name: "pdf/bulletin_de_salaire.html.twig"
-rawMessage: "Variable "dateDebut" does not exist."
-sourcePath: "/home/harmony/public_html/templates/pdf/bulletin_de_salaire.html.twig"
-sourceCode: """
<style>\r\n
\tdiv#page-impression{\r\n
background-color: #efefef;\r\n
font-family: Arial;\r\n
font-weight: normal;\r\n
font-size: 16px;\r\n
color: #999;\r\n
\t\twidth: 80%;\r\n
\t\tmargin: auto;\r\n
}\r\n
\r\n
p{\r\n
padding: 0;\r\n
margin: 5px 0;\r\n
}\r\n
.hr{\r\n
height: 1px;\r\n
border-top: 1px solid #999;\r\n
background-color: #999;\r\n
}\r\n
\r\n
p.facture-header{\r\n
display: inline-block;\r\n
font-size: 8px;\r\n
line-height: 0px!important;\r\n
background-color: #0a001f;\r\n
}\r\n
p.facture-footer{\r\n
\tfont-size: 10px;\r\n
//line-height: 0px!important;\r\n
//line-height: 50%;\r\n
\t\tfont-style: italic;\r\n
\t\tfont-weight: bold;\r\n
}\r\n
p.mentionvalide{\r\n
font-size: 10px;\r\n
font-style: italic;\r\n
}\r\n
.text-black{\r\n
color: #000;\r\n
}\r\n
.block{\r\n
padding: 5px;\r\n
border-radius: 10px;\r\n
border: 1px solid #000;\r\n
}\r\n
\r\n
table.table-body{\r\n
border:1px solid #bbb;\r\n
border-collapse: collapse;\r\n
}\r\n
table.table-body tr td, table.table-body tr th {\r\n
border:1px solid #bbb;\r\n
}\r\n
table.table-body tr th {\r\n
padding: 7px;\r\n
}\r\n
\r\n
table.table-body tr td{\r\n
text-align: left;\r\n
}\r\n
\r\n
table th.table-head-th-bg{\r\n
text-align: center;\r\n
}\r\n
\r\n
table.table-body .table-footer-th-bg{\r\n
background: transparent;\r\n
color: #000;\r\n
font-weight: bold;\r\n
}\r\n
\r\n
table{\r\n
color: #000;\r\n
font-size: 12px;\r\n
}\r\n
\r\n
table tr td.border-none {\r\n
border-bottom:none;\r\n
}\r\n
table tr td.bordered-top {\r\n
border-top: 1px solid #bbb;\r\n
}\r\n
.text-center{\r\n
text-align: center;\r\n
}\r\n
.text-left{\r\n
text-align: left;\r\n
}\r\n
.text-right{\r\n
text-align: right;\r\n
}\r\n
.text-blue{\r\n
\r\n
}\r\n
\t\r\n
\tdiv#page-entiere{\r\n
\t\tposition: relative;\r\n
\t\twidth: 80%;\r\n
\t\tmargin: auto;\r\n
\t\theight: 99%;\r\n
\t\tfont-family: Times, serif;\r\n
\t}\r\n
\t\r\n
div#hauteur-entete-exterieur{\r\n
height: {{ boutique.settings.margeEntete }}px;\r\n
}\r\n
\r\n
div#hauteur-pied-exterieur{\r\n
height: {{ boutique.settings.margePiedDePage }}px;\r\n
}\r\n
\r\n
\tdiv#footer{\r\n
\t\tposition: absolute;\r\n
\t\tbottom: 40px;\r\n
\t\tfont-family: Times, serif;\r\n
\t\t\r\n
\t}\r\n
\t\r\n
</style>\r\n
\r\n
\r\n
{#<div id="page-entiere" data-size="A4" backtop="20px" backleft="10px" backright="10px" backbottom="20px" footer="">#}\r\n
<div id="page-entiere" data-size="A4">\r\n
<div id="impression">\r\n
<div>\r\n
<table class="table-body">\r\n
<tr class="table-body-th-bg">\r\n
{#total en mm est de 210#}\r\n
<td style="width:130px;">\r\n
Bulletin de paie\r\n
</td>\r\n
\t\t\t\t<td style="width:220px;">Période du {{ dateDebut | date('d/m/Y') }} au {{ dateFin | date('d/m/Y') }}</td>\r\n
<td style="width:150px;">Paiement le {{ 'now' | date('d/m/Y') }}</td>\r\n
<td style="width:250px;">Par {{ moyenDePaiement }}</td>\r\n
</tr>\r\n
</table>\r\n
<table>\r\n
<tr>\r\n
<td style="width: 250px;">\r\n
<h5>{{ boutique.nom }}</h5>\r\n
<p>{{boutique.adresse }}</p>\r\n
<p>{{boutique.phone }}</p>\r\n
<p>{{boutique.matricule }}</p>\r\n
<p>{{boutique.cc }}</p>\r\n
<p>N°CNPS: {{ boutique.numeroCNPS }}</p>\r\n
</td>\r\n
<td>\r\n
<table class="table-body">\r\n
<tr class="table-body-th-bg">\r\n
<td style="width: 100px;" class="text-center">\r\n
matricule<br/>\r\n
{{ employe.matricule }}\r\n
</td>\r\n
<td style="width: 40px;" class="text-center">\r\n
Part IGR<br/>\r\n
{{ employe.igr }}\r\n
</td>\r\n
<td style="width: 70px;" class="text-center">\r\n
Embauché<br/>\r\n
{{ employe.dateDePriseDeFonction | date('d/m/Y') }}\r\n
</td>\r\n
<td style="width: 110px;" class="text-center">\r\n
Ancienneté<br/>\r\n
{% set anciennete = date().diff(date(employe.dateDePriseDeFonction)) %}\r\n
{{ anciennete.y }} anneé(s) et {{ anciennete.m }} mois\r\n
</td>\r\n
<td style="width: 120px;" class="text-center">\r\n
Numéro de Sécurité Sociale<br/>\r\n
{{ employe.user.numeroCNPS }}\r\n
\r\n
</td>\r\n
</tr>\r\n
<tr>\r\n
<td colspan="2" class="text-center">\r\n
Catégorie<br/>\r\n
{{ employe.categorieEmploi }}\r\n
</td>\r\n
<td colspan="2" class="text-center">\r\n
Emploi occupé<br/>\r\n
{{ employe.laFonction }}\r\n
</td>\r\n
<td class="text-center">\r\n
Département<br/>\r\n
{{ employe.departementEmploi }}\r\n
</td>\r\n
</tr>\r\n
<tr>\r\n
<td colspan="2" class="text-center">\r\n
Qualification <br/>\r\n
{{ employe.laQualification }}\r\n
\r\n
</td>\r\n
<td colspan="3" class="text-center">\r\n
Horaire <br/>\r\n
{{ paiementSalaire.heuresTravaillees }}\r\n
</td>\r\n
</tr>\r\n
</table>\r\n
</td>\r\n
</tr>\r\n
</table>\r\n
<table class="table-body">\r\n
\t\t<tr>\r\n
\t\t\t<td style="width: 100px;">\r\n
Repos comp.<br/>\r\n
Congé\r\n
</td>\r\n
<td class="text-center" style="width: 120px;">\r\n
0<br/>\r\n
2,5\r\n
</td>\r\n
<td class="text-center" style="width: 100px;">\r\n
Reste à prendre<br/>\r\n
2,5<br/>\r\n
0\r\n
</td>\r\n
<td class="text-center" style="width: 150px;">\r\n
Pris<br/>\r\n
2,5<br/>\r\n
0\r\n
</td>\r\n
<td rowspan="2" style="width: 250px;">\r\n
\r\n
<h4>{{ employe.user.nom }} {{ employe.user.nom }}</h4>\r\n
</td>\r\n
\t\t</tr>\r\n
<tr>\r\n
<td>\r\n
Date de congés\r\n
</td>\r\n
<td>\r\n
Du Du <br/>\r\n
Au Au\r\n
</td>\r\n
<td>\r\n
Du <br/>\r\n
Au \r\n
</td>\r\n
<td>\r\n
Du <br/>\r\n
Au \r\n
</td>\r\n
</tr>\r\n
\t</table>\r\n
<table class="table-body">\r\n
<tr>\r\n
<td colspan="4"></td>\r\n
<td colspan="3" style="width: 195px;" class="text-center">Part salariale</td>\r\n
<td colspan="3" style="width: 195px;" class="text-center">Part patronale</td>\r\n
</tr>\r\n
<tr>\r\n
<td style="width: 50px;">Code</td>\r\n
<td style="width: 170px;">Désignation</td>\r\n
<td style="width: 50px;" class="text-center">Nombre</td>\r\n
<td style="width: 70px;" class="text-center">Base</td>\r\n
\r\n
<td class="text-center">Taux</td>\r\n
<td class="text-center">Gain</td>\r\n
<td class="text-center">Retenu</td>\r\n
\r\n
<td class="text-center">Taux</td>\r\n
<td class="text-center">Retenue(+)</td>\r\n
<td class="text-center">Retenu(-)</td>\r\n
</tr>\r\n
{% for rubrique in rubriques %}\r\n
<tr class="table-body-th-bg">\r\n
<td class="border-none text-left">{{ rubrique.code }}</td>\r\n
<td class="border-none text-left">{{ rubrique.designation }}</td>\r\n
<td class="border-none text-center">{% if rubrique.nombre > 0 %}{{ rubrique.nombre | number_format(0, '', ' ') }}{% endif %}</td>\r\n
<td class="border-none text-center">{% if rubrique.laBase > 0 %}{{ rubrique.laBase | number_format(0, '', ' ') }}{% endif %}</td>\r\n
\r\n
<td class="border-none text-center">{% if rubrique.tauxSalarial > 0 %}{{ rubrique.tauxSalarial }}{% endif %}</td>\r\n
<td class="border-none text-center">{% if rubrique.gainSalarial > 0 %}{{ rubrique.gainSalarial | number_format(0, '', ' ') }}{% endif %}</td>\r\n
<td class="border-none text-center">{% if rubrique.retenueSalarial > 0 %}{{ rubrique.retenueSalarial | number_format(0, '', ' ') }}{% endif %}</td>\r\n
<td class="border-none text-center">{% if rubrique.tauxPatronal > 0 %}{{ rubrique.tauxPatronal }}{% endif %}</td>\r\n
<td class="border-none text-center">{% if rubrique.gainPatronal > 0 %}{{ rubrique.gainPatronal | number_format(0, '', ' ') }}{% endif %}</td>\r\n
<td class="border-none text-center">{% if rubrique.retenuePatronal > 0 %} {{ rubrique.retenuePatronal| number_format(0, '', ' ') }}{% endif %}</td>\r\n
\r\n
</tr>\r\n
{% endfor %}\r\n
\r\n
<tr>\r\n
<td colspan="10"></td>\r\n
</tr>\r\n
</table>\r\n
</div>\r\n
\r\n
\r\n
\t\r\n
\t</div>\r\n
\t\r\n
\t<div id="footer">\r\n
\t\t<table class="table-body">\r\n
<tr class="table-body-th-bg">\r\n
<td><strong>Cumuls</strong></td> <td><strong>Salaire brut</strong></td> <td><strong>Charges salariales</strong></td> <td><strong>Charges patronales</strong></td><td><strong>Heures travaillées</strong></td><td><strong>Heures supplémentaires</strong></td> <td><strong>Avantages en nature</strong></td> <td><strong>NET A PAYER</strong></td>\r\n
</tr>\r\n
<tr>\r\n
<td>\r\n
<strong>Période</strong><br/>\r\n
<strong>Année</strong>\r\n
</td>\r\n
<td class="text-center">\r\n
<strong>{{ paiementSalaire.salaireBrut | number_format(0, '', ' ') }}</strong><br/>\r\n
<strong>{{ paiementSalaire.cumulSalaireBrut | number_format(0, '', ' ') }}</strong>\r\n
</td>\r\n
<td class="text-center">\r\n
{{ paiementSalaire.chargesSalariales | number_format(0, '', ' ') }}<br/>\r\n
{{ paiementSalaire.cumulCHargesSalariales | number_format(0, '', ' ') }}\r\n
</td>\r\n
<td class="text-center">\r\n
{{ paiementSalaire.chargesPatronales | number_format(0, '', ' ') }}<br/>\r\n
{{ paiementSalaire.cumulChargesPatronales | number_format(0, '', ' ') }}\r\n
</td>\r\n
<td class="text-center">\r\n
{{ paiementSalaire.heuresTravaillees | number_format(0, '', ' ') }}<br/>\r\n
{{ paiementSalaire.cumulHeuresTravaillees | number_format(0, '', ' ') }}\r\n
</td>\r\n
<td class="text-center">\r\n
{{ paiementSalaire.heuresSupplementaires | number_format(0, '', ' ') }}<br/>\r\n
{{ paiementSalaire.cumulHeuresSupplementaires | number_format(0, '', ' ') }}\r\n
</td>\r\n
<td class="text-center">\r\n
{{ paiementSalaire.avantageEnNature }}\r\n
\r\n
</td>\r\n
<td class="text-center">\r\n
<strong>{{ paiementSalaire.salaireNetAPayer | number_format(0, '', ' ') }}</strong><br/>\r\n
<strong>{{ paiementSalaire.cumulSalaireNetAPayer | number_format(0, '', ' ') }}</strong>\r\n
</td>\r\n
</tr>\r\n
</table>\r\n
<br/>\r\n
<hr class="hr">\r\n
<strong>\r\n
DANS VOTRE INTERET ET POUR VOUS AIDER A FAIRE VALOIR VOS DROITS, CONSERVEZ CE BULLETIN DE PAIE SANS LIMITATION DE DUREE</strong>\r\n
\t</div>\r\n
</div>\r\n
"""
#message: "Variable "dateDebut" does not exist."
#code: 0
#file: "/home/harmony/public_html/templates/pdf/bulletin_de_salaire.html.twig"
#line: 133
trace: {
/home/harmony/public_html/templates/pdf/bulletin_de_salaire.html.twig:133 {
__TwigTemplate_f73c14740ba920fcfb8f3e15a2ec3705bdf463ea2cac80b8ce1a88f12e3fc037->{closure} …
› </td>\r
› \t\t\t\t<td style="width:220px;">Période du {{ dateDebut | date('d/m/Y') }} au {{ dateFin | date('d/m/Y') }}</td>\r
› <td style="width:150px;">Paiement le {{ 'now' | date('d/m/Y') }}</td>\r
}
/home/harmony/public_html/templates/pdf/bulletin_de_salaire.html.twig:133 {
__TwigTemplate_f73c14740ba920fcfb8f3e15a2ec3705bdf463ea2cac80b8ce1a88f12e3fc037->doDisplay(array $context, array $blocks = []) …
› </td>\r
› \t\t\t\t<td style="width:220px;">Période du {{ dateDebut | date('d/m/Y') }} au {{ dateFin | date('d/m/Y') }}</td>\r
› <td style="width:150px;">Paiement le {{ 'now' | date('d/m/Y') }}</td>\r
}
/home/harmony/public_html/vendor/twig/twig/src/Template.php:394 {
Twig\Template->displayWithErrorHandling(array $context, array $blocks = []) …
› try {
› $this->doDisplay($context, $blocks);
› } catch (Error $e) {
}
/home/harmony/public_html/vendor/twig/twig/src/Template.php:367 {
Twig\Template->display(array $context, array $blocks = []) …
› {
› $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
› }
}
/home/harmony/public_html/vendor/twig/twig/src/Template.php:379 {
Twig\Template->render(array $context) …
› try {
› $this->display($context);
› } catch (\Throwable $e) {
}
/home/harmony/public_html/vendor/twig/twig/src/TemplateWrapper.php:40 {
Twig\TemplateWrapper->render(array $context = []): string …
› // as it should only be used by internal code
› return $this->template->render($context, \func_get_args()[1] ?? []);
› }
}
/home/harmony/public_html/vendor/twig/twig/src/Environment.php:277 {
Twig\Environment->render($name, array $context = []): string …
› {
› return $this->load($name)->render($context);
› }
}
/home/harmony/public_html/vendor/symfony/framework-bundle/Controller/AbstractController.php:258 {
Symfony\Bundle\FrameworkBundle\Controller\AbstractController->renderView(string $view, array $parameters = []): string …
›
› return $this->container->get('twig')->render($view, $parameters);
› }
}
/home/harmony/public_html/vendor/symfony/framework-bundle/Controller/AbstractController.php:266 {
Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render(string $view, array $parameters = [], Response $response = null): Response …
› {
› $content = $this->renderView($view, $parameters);
›
}
/home/harmony/public_html/src/Controller/AdminController.php:2298 {
App\Controller\AdminController->imprimerBulletinSalaireAction(Request $request, Boutique $boutique, $employe = 0, $dateDebut = '', $dateFin = '', $moyenDePaiement = '') …
› \t\t\t'rubriques' => $rubriques,\r
› \t\t 'userBoutique' => $userBoutique\r
› ]);\r
}
/home/harmony/public_html/vendor/symfony/http-kernel/HttpKernel.php:153 {
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
› // call controller
› $response = $controller(...$arguments);
›
}
/home/harmony/public_html/vendor/symfony/http-kernel/HttpKernel.php:75 {
Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
› try {
› return $this->handleRaw($request, $type);
› } catch (\Exception $e) {
}
/home/harmony/public_html/vendor/symfony/http-kernel/Kernel.php:202 {
Symfony\Component\HttpKernel\Kernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
› try {
› return $this->getHttpKernel()->handle($request, $type, $catch);
› } finally {
}
/home/harmony/public_html/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 {
Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run(): int …
› {
› $response = $this->kernel->handle($this->request);
› $response->send();
}
/home/harmony/public_html/vendor/autoload_runtime.php:35 {
require_once …
› ->getRunner($app)
› ->run()
› );
}
/home/harmony/public_html/public/index.php:5 {
›
› require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
›
arguments: {
"/home/harmony/public_html/vendor/autoload_runtime.php"
}
}
}
} |