Topic: where can i find this get_trans_view_str function?

i wanted to know where to find this function? get_trans_view_str

Re: where can i find this get_trans_view_str function?

includes/ui/ui_view.inc

Re: where can i find this get_trans_view_str function?

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);

Re: where can i find this get_trans_view_str function?

There is no Array to String conversion here. The heading elements are in the array and are iterated through for display.

5 (edited by kalmav1 03/17/2019 07:28:43 am)

Re: where can i find this get_trans_view_str function?

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";
}

Re: where can i find this get_trans_view_str function?

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.

7 (edited by kalmav1 03/18/2019 02:54:37 am)

Re: where can i find this get_trans_view_str function?

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?