Skip to content

Commit

Permalink
Merge pull request #32249 from FHenry/20_fix_warn8_invoice_situation
Browse files Browse the repository at this point in the history
fix:  FATAL ERROR (php 8, invoice situation=2) Invoice line Save after edit (even if invoice is STANDARD)
  • Loading branch information
eldy authored Dec 9, 2024
2 parents aa5fd66 + c7329a7 commit aee2510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/compta/facture/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -2742,7 +2742,7 @@
// Invoice situation
if (getDolGlobalInt('INVOICE_USE_SITUATION') == 2) {
$previousprogress = $line->get_allprev_progress($line->fk_facture);
$fullprogress = price2num(GETPOST('progress', 'alpha'));
$fullprogress = price2num(GETPOST('progress', 'alpha'), 2);

if ($fullprogress < $previousprogress) {
$error++;
Expand Down

0 comments on commit aee2510

Please sign in to comment.