Update stockatdate.php

This commit is contained in:
Laurent Destailleur 2022-10-06 12:10:50 +02:00 committed by GitHub
parent bab387a82f
commit c2a98f9957
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -565,8 +565,8 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
// PMP value
print '<td class="right">';
if ($stock * price2num($objp->pmp, 'MT')) {
print '<span class="amount">'.price($stock * price2num($objp->pmp, 'MT'), 1).'</span>';
if (price2num($stock * $objp->pmp, 'MT')) {
print '<span class="amount">'.price(price2num($stock * $objp->pmp, 'MT'), 1).'</span>';
} else {
print '';
}