Skip to content

Commit

Permalink
Clear cache on PDF render, show dates as french/european format
Browse files Browse the repository at this point in the history
  • Loading branch information
CySSoO committed May 28, 2024
1 parent fe0069b commit 2d1e5fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion models/HTMLTemplateEverQuotationPdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function getContent()
Context::getContext()->shop->id,
Context::getContext()->language->id
);
$customizations = array();
$customizations = [];
foreach ($details as $detail) {
if ((int) $detail['id_customization']) {
$custs = EverpsquotationDetail::getCustomizationValue(
Expand All @@ -74,6 +74,7 @@ public function getContent()
}
}
$total_taxes = $everpsquotation->total_paid_tax_incl - $everpsquotation->total_paid_tax_excl;
Tools::clearCache();

$this->smarty->assign([
'_PS_VERSION_' => _PS_VERSION_,
Expand Down
4 changes: 2 additions & 2 deletions views/templates/front/pdf/everquotation_header.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
$prefix}{$prefix|escape:'htmlall':'UTF-8'}{/if}{$id_everpsquotation_quotes|escape:'htmlall':'UTF-8'}
</h3>
{* <h4>{$shop_name|escape:'htmlall':'UTF-8'}</h4> *}
<h4>{l s='Date :' mod='everpsquotation'} {$date_add|date_format:"%D"|escape:'htmlall':'UTF-8'}</h4>
<h4>{l s='Date :' mod='everpsquotation'} {$date_add|date_format:"%d/%m/%Y"|escape:'htmlall':'UTF-8'}</h4>
{if isset($deadline) && $deadline}
<h4>{l s='Valid until' mod='everpsquotation'} {$deadline|date_format:"%D"|escape:'htmlall':'UTF-8'}</h4>
<h4>{l s='Valid until' mod='everpsquotation'} {$deadline|date_format:"%d/%m/%Y"|escape:'htmlall':'UTF-8'}</h4>
{/if}
</td>
</tr>
Expand Down

0 comments on commit 2d1e5fc

Please sign in to comment.