Skip to content

Commit

Permalink
fix phan
Browse files Browse the repository at this point in the history
  • Loading branch information
fappels committed Jun 19, 2024
1 parent 3ce2133 commit 1b8cdb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/compta/facture/class/facture.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -3561,7 +3561,7 @@ public function validate($user, $force_number = '', $idwarehouse = 0, $notrigger
while (($i < $nboflines) && $final) {
if (getDolGlobalInt('INVOICE_USE_SITUATION') == 2) {
$previousprogress = $this->lines[$i]->get_allprev_progress($this->lines[$i]->fk_facture);
$current_progress = intval($this->lines[$i]->situation_percent);
$current_progress = floatval($this->lines[$i]->situation_percent);
$full_progress = $previousprogress + $current_progress;
$final = ($full_progress == 100);
} else {
Expand Down Expand Up @@ -6809,7 +6809,7 @@ public function get_prev_progress($invoiceid, $include_credit_note = true)
*
* @param int $invoiceid Invoice id
* @param bool $include_credit_note Include credit note or not
* @return int >= 0
* @return float >= 0
* @see get_prev_progress()
*/
public function get_allprev_progress($invoiceid, $include_credit_note = true)
Expand Down

0 comments on commit 1b8cdb7

Please sign in to comment.