Skip to content

Commit

Permalink
FIX 17.0: $num doesn't take trigger-modified newref into account, lea…
Browse files Browse the repository at this point in the history
…ding to inconsistencies if BILL_SUPPLIER_VALIDATE changes the invoice's ref (#28684)

this is a follow-up of PR #27008
  • Loading branch information
atm-florianm authored Mar 7, 2024
1 parent 75f1de8 commit 7f10566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/fourn/class/fournisseur.facture.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1895,7 +1895,7 @@ public function validate($user, $force_number = '', $idwarehouse = 0, $notrigger

// Set new ref and define current statut
if (!$error) {
$this->ref = $num;
$this->ref = $this->newref;
$this->statut = self::STATUS_VALIDATED;
//$this->date_validation=$now; this is stored into log table
}
Expand Down

0 comments on commit 7f10566

Please sign in to comment.