diff --git a/htdocs/product/inventory/inventory.php b/htdocs/product/inventory/inventory.php index b924b9c442c92..e9ddf7ad87747 100644 --- a/htdocs/product/inventory/inventory.php +++ b/htdocs/product/inventory/inventory.php @@ -1089,10 +1089,11 @@ function barcodeserialforproduct(tabproduct,index,element,barcodeproductqty,sele //PMP Real print ''; - - - if (!empty($obj->pmp_real)) $pmp_real = $obj->pmp_real; - else $pmp_real = $product_static->pmp; + if (!empty($obj->pmp_real) || (string) $obj->pmp_real === '0') { + $pmp_real = $obj->pmp_real; + } else { + $pmp_real = $product_static->pmp; + } $pmp_valuation_real = $pmp_real * $qty_view; print ''; print ''; @@ -1307,6 +1308,7 @@ function updateTotalValuation() { })); } +