Skip to content

Commit

Permalink
Merge branch '18.0' of https://github.com/Dolibarr/dolibarr into 18_f…
Browse files Browse the repository at this point in the history
…ix_missing_hook
  • Loading branch information
FHenry committed Aug 6, 2024
2 parents ba093b7 + 2743550 commit 3592ff6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions htdocs/product/inventory/inventory.php
Original file line number Diff line number Diff line change
Expand Up @@ -1089,10 +1089,11 @@ function barcodeserialforproduct(tabproduct,index,element,barcodeproductqty,sele

//PMP Real
print '<td class="right">';


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 '<input type="text" class="maxwidth75 right realpmp'.$obj->fk_product.'" name="realpmp_'.$obj->rowid.'" id="id_'.$obj->rowid.'_input_pmp" value="'.price2num($pmp_real).'">';
print '</td>';
Expand Down Expand Up @@ -1307,6 +1308,7 @@ function updateTotalValuation() {
}));
}


</script>
<?php
}
Expand Down

0 comments on commit 3592ff6

Please sign in to comment.