Puts amount with 2 decimals into snipped PDFs
This commit is contained in:
parent
d199e664c9
commit
24aefba7e3
|
@ -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 =
|
||||
<<<EOD
|
||||
|
||||
<h1>Position $pos</h1>
|
||||
<p>$desc</p><br>
|
||||
<p>$amount EUR</p><br>
|
||||
<p>$am EUR</p><br>
|
||||
EOD;
|
||||
|
||||
// Print text using writeHTMLCell()
|
||||
|
|
Loading…
Reference in New Issue