Topic: where can i find this get_trans_view_str function?
i wanted to know where to find this function? get_trans_view_str
It's much more fun, when you can discuss your problems with others...
You are not logged in. Please login or register.
FrontAccounting forum → FA Modifications → where can i find this get_trans_view_str function?
i wanted to know where to find this function? get_trans_view_str
includes/ui/ui_view.inc
What does Array to string conversion ?
Just follow code from purchasing/inquiry/po_search_completed.php.
Made new search po_items_completed.php here is the code
This is where the error displaying.
$showdims = (($dim == 1 && $_POST['dim1'] == 0) ||
($dim == 2 && $_POST['dim1'] == 0 && $_POST['dim2'] == 0));
if ($showdims)
$th = array(_("#"), _("Reference"), _("Supplier"), _("Currency"));
else
$th =array(
_("#") => array('fun'=>'trans_view', 'ord'=>'', 'align'=>'right'),
_("Reference"),
_("Supplier") => array('ord'=>''),
_("Location"),
_("Supplier's Reference"),
_("Order Date") => array('name'=>'ord_date', 'type'=>'date', 'ord'=>'desc'),
_("Currency") => array('align'=>'center'),
_("Order Total") => 'amount',
array('insert'=>true, 'fun'=>'edit_link'),
array('insert'=>true, 'fun'=>'prt_link'),
);
table_header($th);
There is no Array to String conversion here. The heading elements are in the array and are iterated through for display.
does that mean this function code here which handles all array inside an array then ? how would i do it show it won't show the error? which file do i need to look for find to edit or find this display error and fix it ?
function alt_table_row_color(&$k, $extra_class=null)
{
$classes = $extra_class ? array($extra_class) : array();
if ($k == 1)
{
array_push($classes, 'oddrow');
$k = 0;
}
else
{
array_push($classes, 'evenrow');
$k++;
}
echo "<tr class='".implode(' ', $classes)."'>\n";
}
These are for CSS Styling classes. If the function argument is a scalar, then it goes into an array and if an array it is passed on as is.
where can i find this function argument scalar im trying looking for include folder ? and which file do i need to fix this issues so it would display link like po_search_completed.php?
FrontAccounting forum → FA Modifications → where can i find this get_trans_view_str function?
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 4 official extensions. Copyright © 2003–2009 PunBB.