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];
|
$amount = $_POST['amount'][$key];
|
||||||
$desc = $_POST['description'][$key];
|
$desc = $_POST['description'][$key];
|
||||||
|
|
||||||
|
$am = floatval(str_replace(",",".",$amount));
|
||||||
|
$am = str_replace(".",",",sprintf("%.2f",$am));
|
||||||
|
|
||||||
|
|
||||||
$html =
|
$html =
|
||||||
<<<EOD
|
<<<EOD
|
||||||
|
|
||||||
<h1>Position $pos</h1>
|
<h1>Position $pos</h1>
|
||||||
<p>$desc</p><br>
|
<p>$desc</p><br>
|
||||||
<p>$amount EUR</p><br>
|
<p>$am EUR</p><br>
|
||||||
EOD;
|
EOD;
|
||||||
|
|
||||||
// Print text using writeHTMLCell()
|
// Print text using writeHTMLCell()
|
||||||
|
|
Loading…
Reference in New Issue