webERP Forum

Full Version: Potential Translation Issue - SOLVED
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
SupplierInvoice.php

Is what is shown below correct?
PHP Code:
_('PO'.$identifier
Should we mix values together?

PHP Code:
                        /*now the GRN suspense entry*/
                        
$SQL "INSERT INTO gltrans (type,
                                                    typeno,
                                                    trandate,
                                                    periodno,
                                                    account,
                                                    narrative,
                                                    amount)
                                            VALUES (25,
                                                '" 
$GRN "',
                                                '" 
FormatDateForSQL($DeliveryDate) . "',
                                                '" 
$PeriodNo "',
                                                '" 
$_SESSION['CompanyRecord']['grnact'] . "',
                                                '" 
_('PO'.$identifier) . ': ' $_SESSION['PO'.$identifier]->OrderNo ' ' $_SESSION['PO'.$identifier]->SupplierID ' - ' $OrderLine->StockID ' - ' DB_escape_string($OrderLine->ItemDescription) . ' x ' $OrderLine->ReceiveQty ' @ ' locale_number_format($UnitCost,$_SESSION['CompanyRecord']['decimalplaces']) . "',
                                                '" 
. -$UnitCost $OrderLine->ReceiveQty "'
                                                )"

You are right. That shouldn't be in the gettext _() function.

Tim
Thank you Tim!

I noticed this while looking through GL entries and wondered why some use "PO: " and some did not.
Reference URL's