Skip to content

Commit

Permalink
Fix signature
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Dec 30, 2024
1 parent 7968fc7 commit 2b41140
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion htdocs/compta/facture/class/facture-rec.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1604,9 +1604,10 @@ public function getLibStatut($mode = 0, $alreadypaid = -1)
* @param int $mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=short label + picto, 6=long label + picto
* @param integer $alreadypaid Not used for recurring invoices
* @param int $type Type invoice
* @param int $nbofopendirectdebitorcredittransfer Nb of open direct debit or credit transfer
* @return string Label of status
*/
public function LibStatut($recur, $status, $mode = 0, $alreadypaid = -1, $type = 0)
public function LibStatut($recur, $status, $mode = 0, $alreadypaid = -1, $type = 0, $nbofopendirectdebitorcredittransfer = 0)
{
// phpcs:enable
global $langs;
Expand Down
2 changes: 0 additions & 2 deletions htdocs/core/class/commoninvoice.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -984,8 +984,6 @@ public function LibStatut($paye, $status, $mode = 0, $alreadypaid = -1, $type =
return $hookmanager->resPrint;
}



return dolGetStatus($labelStatus, $labelStatusShort, '', $statusType, $mode);
}

Expand Down
3 changes: 2 additions & 1 deletion htdocs/fourn/class/fournisseur.facture-rec.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1600,9 +1600,10 @@ public function getLibStatut($mode = 0, $alreadypaid = -1)
* @param int $mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=short label + picto, 6=long label + picto
* @param integer $alreadypaid Not used for recurring invoices
* @param int $type Type invoice
* @param int $nbofopendirectdebitorcredittransfer Nb of open direct debit or credit transfer
* @return string Label of status
*/
public function LibStatut($recur, $status, $mode = 0, $alreadypaid = -1, $type = 0)
public function LibStatut($recur, $status, $mode = 0, $alreadypaid = -1, $type = 0, $nbofopendirectdebitorcredittransfer = 0)
{
// phpcs:enable
global $langs;
Expand Down

0 comments on commit 2b41140

Please sign in to comment.