diff --git a/submit.php b/submit.php index e3207a0..1b01d0f 100644 --- a/submit.php +++ b/submit.php @@ -236,12 +236,16 @@ function mkSnippedPdf($key){ $amount = $_POST['amount'][$key]; $desc = $_POST['description'][$key]; + $am = floatval(str_replace(",",".",$amount)); + $am = str_replace(".",",",sprintf("%.2f",$am)); + + $html = <<Position $pos

$desc


-

$amount EUR


+

$am EUR


EOD; // Print text using writeHTMLCell()