Skip to content

Commit

Permalink
Merge pull request #16 from frederic34/dev
Browse files Browse the repository at this point in the history
add sample for invoice
  • Loading branch information
frederic34 authored Jan 30, 2024
2 parents c396146 + 829006f commit 2bdf6a4
Show file tree
Hide file tree
Showing 9 changed files with 911 additions and 27 deletions.
40 changes: 20 additions & 20 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion core/modules/commande/doc/doc_easydoc_order_html.modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function __construct($db)
$this->update_main_doc_field = 1;

// Page size for A4 format
$this->type = 'easydoc';
$this->type = 'pdf';
$this->page_largeur = 0;
$this->page_hauteur = 0;
$this->format = [$this->page_largeur, $this->page_hauteur];
Expand Down Expand Up @@ -474,6 +474,7 @@ public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails
]);
$mpdf->SetProtection(['print']);
$mpdf->SetTitle($outputlangs->convToOutputCharset($object->ref));
$mpdf->SetCreator('Dolibarr ' . DOL_VERSION);
$mpdf->SetAuthor($outputlangs->convToOutputCharset($user->getFullName($outputlangs)));
$mpdf->SetWatermarkText(getDolGlobalString('COMMANDE_DRAFT_WATERMARK'));

Expand Down
Loading

0 comments on commit 2bdf6a4

Please sign in to comment.