| exception |
Twig\Error\RuntimeError {#3376
-lineno: 173
-name: "pdf/point_par_client.html.twig"
-rawMessage: "Impossible to access an attribute ("nom") on a null variable."
-sourcePath: "/home/harmony/public_html/templates/pdf/point_par_client.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
\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
{% if boutique.settings.factureContientEntete == false %}\r\n
<div>\r\n
{#<page_header>#}\r\n
<table>\r\n
<tr>\r\n
{#total en mm est de 210#}\r\n
<td align="center" style="width: 25mm;" valign="top">\r\n
<img class="img-responsive" src="{{ boutique.logo.originalUrl }}" width="{{ boutique.settings.tailleLogoSurLesDocuments }}" alt="">\r\n
</td>\r\n
\t\t\t\t<td style="width: 178mm;"><p>{{ boutique.settings.enteDocument|raw }}</p></td>\r\n
</tr>\r\n
</table>\r\n
<hr class="hr">\r\n
\r\n
{#</page_header>#}\r\n
</div>\r\n
{% else %}\r\n
<div id="hauteur-entete-exterieur">\r\n
</div>\r\n
{% endif %}\r\n
{% set vehicules =[ 22, 23, 28] %}\r\n
\r\n
{% set ht = 0 %}\r\n
\t{% set tva = 0 %}\r\n
\t{% set remise = 0 %}\r\n
\t{% set ttc = 0 %}\r\n
\t{% set totalPaye = 0 %}\r\n
\t{% set totalResteAPayer = 0 %}\r\n
\r\n
<table class="table" border="0" style="margin-top: 0px">\r\n
\r\n
<tr>\r\n
<td align="left" style="width: 160px;" valign="top">\r\n
\r\n
</td>\r\n
<td align="left" style="width: 200px;" valign="top">\r\n
<table style="width: 300px;">\r\n
<tr>\r\n
<td><h5 style="position: relative; top: -7px; margin-right: 10px;"></h5></td>\r\n
</tr>\r\n
</table>\r\n
</td>\r\n
</tr>\r\n
</table>\r\n
<table class="table" border="0" style="margin-top: 10px">\r\n
<tr>\r\n
<td><u><h4>Point de {{ client.nom }} de {{ dateDebut | date('d/m/Y') }} à {{ dateFin | date('d/m/Y') }}</h4></u></td>\r\n
</tr>\r\n
</table>\r\n
<table class="table-body" border="0" style="width: 100%">\r\n
<tr>\r\n
<th class="table-head-th-bg" width="60">{{ 'admin.number' | trans }}</th>\r\n
\t\t\t<th class="table-head-th-bg" width="50">{{ 'admin.date' | trans }}</th>\r\n
<th class="table-head-th-bg" width="60">{{ 'admin.totalHT' | trans }}</th>\r\n
<th class="table-head-th-bg" width="60">{{ 'admin.totalTVA' | trans }}</th>\r\n
<th class="table-head-th-bg" width="60">{{ 'admin.totalTTC' | trans }}</th>\r\n
\t\t\t<th class="table-head-th-bg" width="70">{{ 'admin.paye' | trans }}</th>\r\n
\t\t\t<th class="table-head-th-bg" width="70">{{ 'admin.reste_a_payer' | trans }}</th>\r\n
</tr>\r\n
\r\n
<tbody>\r\n
\r\n
{% for proposal in invoices %}\r\n
\t\t\t\t{% set totalPaye = proposal.montantPaye + totalPaye %}\r\n
\t\t\t\t{% set totalResteAPayer = proposal.resteAPayer + totalResteAPayer %}\r\n
\r\n
\t\t\t\t{% set ht = ht + proposal.totalHTApresRemise %}\r\n
{% set tva = tva + proposal.totalTVA %}\r\n
\t\t\t\t{% set remise = remise + proposal.remise %}\r\n
\t\t\t\t{% set ttc = ttc + proposal.totalTTC %}\r\n
\t\t\t <tr class="table-body-th-bg">\r\n
\t\t\t\t<td class="border-none text-left">{{ proposal.numero }}</td>\r\n
\t\t\t\t<td class="border-none text-left">{{ proposal.laDate | date('d/m/Y') }}</td>\r\n
\t\t\t\t\r\n
\t\t\t\t<td class="border-none text-left">{{ proposal.totalHTApresRemise | number_format(0, '', ' ') }}</td>\r\n
\t\t\t\t<td class="border-none text-left">{% if proposal.totalTVA > 0 %}{{ proposal.totalTVA | number_format(0, '', ' ') }}{% endif %}</td>\r\n
\t\t\t\t<td class="border-none text-left">{{ proposal.totalTTC | number_format(0, '', ' ') }}</td>\r\n
\t\t\t\t<td class="border-none text-left">{% if proposal.montantPaye > 0 %}{{ proposal.montantPaye | number_format(0, '', ' ') }}{% endif %}</td>\r\n
\t\t\t\t<td class="border-none text-left">{% if proposal.resteAPayer > 0 %} {{ proposal.resteAPayer | number_format(0, '', ' ') }}{% endif %}</td>\r\n
\t\t\t\t\r\n
\t\t\t </tr>\r\n
\t\t\t {% endfor %}\t\t\r\n
<tr>\r\n
<td colspan="7"></td>\r\n
</tr>\r\n
<tr>\r\n
<td colspan="2"></td>\r\n
<td class="border-none text-left">{{ ht | number_format(0, '', ' ') }}</td>\r\n
<td class="border-none text-left">{{ tva | number_format(0, '', ' ') }}</td>\r\n
<td class="border-none text-left">{{ ttc | number_format(0, '', ' ') }}</td>\r\n
<td class="border-none text-left">{{ totalPaye | number_format(0, '', ' ') }}</td>\r\n
<td class="border-none text-left">{{ totalResteAPayer | number_format(0, '', ' ') }}</td>\r\n
</tr>\r\n
<tr>\r\n
<td colspan="7"></td>\r\n
</tr>\r\n
\r\n
</tbody>\r\n
</table>\r\n
\r\n
\t{#<page_footer>\r\n
<p class="mentionvalide">{{ facture.mentionvalidite }}</p>\r\n
<hr class="hr">\r\n
<p class="facture-footer">{{ boutique.facturefooter|raw }}</p>\r\n
</page_footer>#}\r\n
\t</div>\r\n
\t\r\n
\t<div id="footer">\r\n
\r\n
\t\t\r\n
{% if boutique.settings.factureContientEntete == false %}\r\n
<hr class="hr">\r\n
<p class="facture-footer">{{ boutique.settings.piedDocument|raw }}</p>\r\n
{% else %}\r\n
<div id="hauteur-pied-exterieur">\r\n
</div>\r\n
{% endif %}\r\n
\t</div>\r\n
</div>\r\n
"""
#message: "Impossible to access an attribute ("nom") on a null variable."
#code: 0
#file: "/home/harmony/public_html/templates/pdf/point_par_client.html.twig"
#line: 173
trace: {
/home/harmony/public_html/templates/pdf/point_par_client.html.twig:173 {
twig_get_attribute(Environment $env, Source $source, $object, $item, array $arguments = [], $type = 'any', $isDefinedTest = false, $ignoreStrictCheck = false, $sandboxed = false, int $lineno = -1) …
› <tr>\r
› <td><u><h4>Point de {{ client.nom }} de {{ dateDebut | date('d/m/Y') }} à {{ dateFin | date('d/m/Y') }}</h4></u></td>\r
› </tr>\r
}
/home/harmony/public_html/templates/pdf/point_par_client.html.twig:173 {
__TwigTemplate_017c58eabc1fe602cbe3f9a67e5e5fd933252c89b5222af2759cbe0745026eb0->doDisplay(array $context, array $blocks = []) …
› <tr>\r
› <td><u><h4>Point de {{ client.nom }} de {{ dateDebut | date('d/m/Y') }} à {{ dateFin | date('d/m/Y') }}</h4></u></td>\r
› </tr>\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:1206 {
App\Controller\AdminController->imprimerPointParClientAction(Request $request, $slug, $id = 0, $type = 'invoice', $dateDebut = '', $dateFin = '') …
› \t\t 'dateFin' => $dateFin,\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"
}
}
}
} |