mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix phan
This commit is contained in:
parent
28724db69e
commit
d01274ef4c
|
|
@ -426,6 +426,7 @@ class doc_generic_order_odt extends ModelePDFCommandes
|
|||
if ($foundtagforlines) {
|
||||
$linenumber = 0;
|
||||
foreach ($object->lines as $line) {
|
||||
/** @var OrderLine $line */
|
||||
$linenumber++;
|
||||
$tmparray = $this->get_substitutionarray_lines($line, $outputlangs, $linenumber);
|
||||
complete_substitutions_array($tmparray, $outputlangs, $object, $line, "completesubstitutionarray_lines");
|
||||
|
|
|
|||
|
|
@ -420,6 +420,7 @@ class doc_generic_contract_odt extends ModelePDFContract
|
|||
if ($foundtagforlines) {
|
||||
$linenumber = 0;
|
||||
foreach ($object->lines as $line) {
|
||||
/** @var ContratLigne $line */
|
||||
$linenumber++;
|
||||
$tmparray = $this->get_substitutionarray_lines($line, $outputlangs, $linenumber);
|
||||
complete_substitutions_array($tmparray, $outputlangs, $object, $line, "completesubstitutionarray_lines");
|
||||
|
|
|
|||
|
|
@ -482,6 +482,7 @@ class doc_generic_invoice_odt extends ModelePDFFactures
|
|||
if ($foundtagforlines) {
|
||||
$linenumber = 0;
|
||||
foreach ($object->lines as $line) {
|
||||
/** @var FactureLigne $line */
|
||||
$linenumber++;
|
||||
$tmparray = $this->get_substitutionarray_lines($line, $outputlangs, $linenumber);
|
||||
complete_substitutions_array($tmparray, $outputlangs, $object, $line, "completesubstitutionarray_lines");
|
||||
|
|
|
|||
|
|
@ -408,6 +408,7 @@ class doc_generic_mo_odt extends ModelePDFMo
|
|||
if ($foundtagforlines) {
|
||||
$linenumber = 0;
|
||||
foreach ($object->lines as $line) {
|
||||
/** @var MoLine $line */
|
||||
$linenumber++;
|
||||
$tmparray = $this->get_substitutionarray_lines($line, $outputlangs, $linenumber);
|
||||
complete_substitutions_array($tmparray, $outputlangs, $object, $line, "completesubstitutionarray_lines");
|
||||
|
|
|
|||
|
|
@ -458,7 +458,7 @@ class doc_generic_task_odt extends ModelePDFTask
|
|||
/**
|
||||
* Function to build a document on disk using the generic odt module.
|
||||
*
|
||||
* @param Project $object Object source to build document
|
||||
* @param Task $object Object source to build document
|
||||
* @param Translate $outputlangs Lang output object
|
||||
* @param string $srctemplatepath Full path of source filename for generator using a template file
|
||||
* @return int<-1,1> 1 if OK, <=0 if KO
|
||||
|
|
|
|||
|
|
@ -463,6 +463,7 @@ class doc_generic_proposal_odt extends ModelePDFPropales
|
|||
if ($foundtagforlines) {
|
||||
$linenumber = 0;
|
||||
foreach ($object->lines as $line) {
|
||||
/** @var PropaleLigne $line */
|
||||
$linenumber++;
|
||||
$tmparray = $this->get_substitutionarray_lines($line, $outputlangs, $linenumber);
|
||||
complete_substitutions_array($tmparray, $outputlangs, $object, $line, "completesubstitutionarray_lines");
|
||||
|
|
|
|||
|
|
@ -412,6 +412,7 @@ class doc_generic_reception_odt extends ModelePdfReception
|
|||
if ($foundtagforlines) {
|
||||
$linenumber = 0;
|
||||
foreach ($object->lines as $line) {
|
||||
/** @var ReceptionLineBatch $line */
|
||||
$linenumber++;
|
||||
$tmparray = $this->get_substitutionarray_lines($line, $outputlangs);
|
||||
complete_substitutions_array($tmparray, $outputlangs, $object, $line, "completesubstitutionarray_lines");
|
||||
|
|
|
|||
|
|
@ -417,6 +417,7 @@ class doc_generic_supplier_invoice_odt extends ModelePDFSuppliersInvoices
|
|||
if ($foundtagforlines) {
|
||||
$linenumber = 0;
|
||||
foreach ($object->lines as $line) {
|
||||
/** @var CommonInvoiceLine $line */
|
||||
$linenumber++;
|
||||
$tmparray = $this->get_substitutionarray_lines($line, $outputlangs, $linenumber);
|
||||
complete_substitutions_array($tmparray, $outputlangs, $object, $line, "completesubstitutionarray_lines");
|
||||
|
|
|
|||
|
|
@ -412,6 +412,7 @@ class doc_generic_supplier_order_odt extends ModelePDFSuppliersOrders
|
|||
if ($foundtagforlines) {
|
||||
$linenumber = 0;
|
||||
foreach ($object->lines as $line) {
|
||||
/** @var CommonOrderLine $line */
|
||||
$linenumber++;
|
||||
$tmparray = $this->get_substitutionarray_lines($line, $outputlangs, $linenumber);
|
||||
complete_substitutions_array($tmparray, $outputlangs, $object, $line, "completesubstitutionarray_lines");
|
||||
|
|
|
|||
|
|
@ -441,6 +441,7 @@ class doc_generic_supplier_proposal_odt extends ModelePDFSupplierProposal
|
|||
if ($foundtagforlines) {
|
||||
$linenumber = 0;
|
||||
foreach ($object->lines as $line) {
|
||||
/** @var SupplierProposalLine $line */
|
||||
$linenumber++;
|
||||
$tmparray = $this->get_substitutionarray_lines($line, $outputlangs, $linenumber);
|
||||
complete_substitutions_array($tmparray, $outputlangs, $object, $line, "completesubstitutionarray_lines");
|
||||
|
|
|
|||
|
|
@ -192,7 +192,12 @@ class SupplierProposal extends CommonObject
|
|||
* @var array<string,string> (Encoded as JSON in database)
|
||||
*/
|
||||
public $extraparams = array();
|
||||
|
||||
/**
|
||||
* @var SupplierProposalLine[]
|
||||
*/
|
||||
public $lines = array();
|
||||
|
||||
/**
|
||||
* @var SupplierProposalLine
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user