From: <rc...@us...> - 2013-07-22 14:17:00
|
Revision: 6136 http://sourceforge.net/p/web-erp/reponame/6136 Author: rchacon Date: 2013-07-22 14:16:56 +0000 (Mon, 22 Jul 2013) Log Message: ----------- Adds currency name. Modified Paths: -------------- trunk/includes/PDFTransPageHeader.inc trunk/includes/PDFTransPageHeaderPortrait.inc Modified: trunk/includes/PDFTransPageHeader.inc =================================================================== --- trunk/includes/PDFTransPageHeader.inc 2013-07-22 14:03:03 UTC (rev 6135) +++ trunk/includes/PDFTransPageHeader.inc 2013-07-22 14:16:56 UTC (rev 6136) @@ -155,7 +155,8 @@ $XPos = $Left_Margin; $YPos -= ($line_height*2); -$pdf->addText($Left_Margin, $YPos-8, $FontSize, _('All amounts stated in') . ' - ' . $myrow['currcode']); +include($PathPrefix . 'includes/CurrenciesArray.php'); // To get the currency name +$pdf->addText($Left_Margin, $YPos-8, $FontSize, _('All amounts stated in') . ': ' . $myrow['currcode'] . ' ' . $CurrenciesArray[$myrow['currcode']]['Currency']); /*draw a box with nice round corner for entering line items */ /*90 degree arc at top right of box 0 degrees starts a bottom */ Modified: trunk/includes/PDFTransPageHeaderPortrait.inc =================================================================== --- trunk/includes/PDFTransPageHeaderPortrait.inc 2013-07-22 14:03:03 UTC (rev 6135) +++ trunk/includes/PDFTransPageHeaderPortrait.inc 2013-07-22 14:16:56 UTC (rev 6136) @@ -207,7 +207,7 @@ $FontSize = 8; include($PathPrefix . 'includes/CurrenciesArray.php'); // To get the currency name -$pdf->addText($XPos, $YPos-8, $FontSize, _('All amounts stated in') . ': ' . $myrow['currcode'] . ' ' . $CurrenciesArray[$myrow['currcode']]['Currency']); +$pdf->addText($Left_Margin, $YPos-8, $FontSize, _('All amounts stated in') . ': ' . $myrow['currcode'] . ' ' . $CurrenciesArray[$myrow['currcode']]['Currency']); $BoxHeight = $Page_Height-282; |