Skip to content

Commit

Permalink
Qual: Add abstract write_file to ModelePDFStock & ModelePDFStockTransfer
Browse files Browse the repository at this point in the history
And update phpdoc for derived classes
  • Loading branch information
mdeweerd committed Oct 14, 2024
1 parent 26aa2ed commit 9de0f76
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions htdocs/core/modules/stocktransfer/doc/pdf_eagle.modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,17 +164,18 @@ public function __construct(DoliDB $db)
}*/
}


// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/**
* Function to build pdf onto disk
*
* @param StockTransfer $object Object StockTransfer to generate (or id if old method)
* @param Translate $outputlangs Lang output object
* @param Translate $outputlangs Lang output object
* @param string $srctemplatepath Full path of source filename for generator using a template file
* @param int<0,1> $hidedetails Do not show line details
* @param int<0,1> $hidedesc Do not show desc
* @param int<0,1> $hideref Do not show ref
* @return int<-1,1> 1=OK, 0=KO
* @return int<-1,1> 1 if OK, <=0 if KO
*/
public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
{
Expand Down

0 comments on commit 9de0f76

Please sign in to comment.