Update card.php

This commit is contained in:
Laurent Destailleur 2021-06-29 19:14:03 +02:00 committed by GitHub
parent 1b7b45d72a
commit 56787bc292
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2367,7 +2367,7 @@ if (empty($reshook)) {
$line = new FactureLigne($db);
$line->fetch(GETPOST('lineid', 'int'));
$percent = $line->get_prev_progress($object->id);
$progress = floatval(GETPOST('progress', 'int'));
$progress = price2num(GETPOST('progress', 'alpha'));
if ($object->type == Facture::TYPE_CREDIT_NOTE && $object->situation_cycle_ref > 0) {
// in case of situation credit note