Skip to content

Commit

Permalink
Show numbers in the correct format for the locale
Browse files Browse the repository at this point in the history
  • Loading branch information
timschofield committed Jan 1, 2012
1 parent a802d54 commit 533300e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PDFStockNegatives.php
Expand Up @@ -20,6 +20,7 @@

$sql = "SELECT stockmaster.stockid,
stockmaster.description,
stockmaster.decimalplaces,
stockmaster.categoryid,
locstock.loccode,
locations.locationname,
Expand Down Expand Up @@ -48,7 +49,7 @@

$LeftOvers = $pdf->addTextWrap($Left_Margin,$YPos,130,$FontSize, $NegativesRow['loccode'] . ' - ' . $NegativesRow['locationname'], 'left');
$LeftOvers = $pdf->addTextWrap(170,$YPos,350,$FontSize,$NegativesRow['stockid'] . ' - ' .$NegativesRow['description'], 'left');
$LeftOvers = $pdf->addTextWrap(520,$YPos,30,$FontSize,$NegativesRow['quantity'], 'right');
$LeftOvers = $pdf->addTextWrap(520,$YPos,30,$FontSize,locale_number_format($NegativesRow['quantity'], $NegativesRow['decimalplaces']), 'right');

$pdf->line($Left_Margin, $YPos-2,$Page_Width-$Right_Margin, $YPos-2);

Expand Down

0 comments on commit 533300e

Please sign in to comment.