diff --git a/src/QUI/ERP/Accounting/ArticleListUnique.php b/src/QUI/ERP/Accounting/ArticleListUnique.php index 66acc16bcda2e04b7f5c46b35ec83138e49c1b23..8ba1be8f090121dd425a63e72ef3ed6ff162e34a 100644 --- a/src/QUI/ERP/Accounting/ArticleListUnique.php +++ b/src/QUI/ERP/Accounting/ArticleListUnique.php @@ -10,6 +10,7 @@ use IteratorAggregate; use QUI; use QUI\ERP\Accounting\PriceFactors\FactorList as ErpFactorList; +use QUI\Exception; use Traversable; use function array_map; @@ -540,29 +541,31 @@ public function toMailHTML(): string /** * Return the Article List as HTML, with CSS * + * @param bool $template * @return string * - * @throws QUI\Exception + * @throws Exception */ - public function toHTMLWithCSS(): string + public function toHTMLWithCSS($template = false): string { $style = '<style>'; $style .= file_get_contents(dirname(__FILE__) . '/ArticleList.css'); $style .= '</style>'; - return $style . $this->toHTML(); + return $style . $this->toHTML($template); } /** * Alias for toHTMLWithCSS * + * @param bool $template * @return string * - * @throws QUI\Exception + * @throws Exception */ - public function render(): string + public function render($template = false): string { - return $this->toHTMLWithCSS(); + return $this->toHTMLWithCSS($template); } /**