This commit is contained in:
paoloar77
2024-06-17 16:00:43 +02:00
parent 97ebf5331e
commit 097715de71

View File

@@ -317,6 +317,10 @@ function showDettOrdini()
return $str;
}
function showprice($prezzo) {
return ' € ' . number_format($prezzo, 2)
}
function libriInPrevendita()
{
try {
@@ -377,7 +381,7 @@ function libriInPrevendita()
' Data Pubblicazione:' . date('d-m-Y', strtotime($article->DataPubblicazione)) . $sep .
$article->DescrizioneStatoProdotto . ' (' . $article->DescrizioneFormato . ')' . $sep .
'[Qta = <span style="">' . $article->QtaDisponibile . '</span>]' . $sep .
' [' .$prezzo . $sep . ' ]' .
' [' . showprice($prezzo) . ' ]' . $sep .
'[In Stock = <span style="color:' . $colore . '; font-weight: bold;">' . $qtyinstock . '</span>]' . $sep;
if ($qtyinstock < 0) {