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?

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

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

i wanted to know where to find this function? get_trans_view_str

trying to make banking and general ledger from budget entry 
gl_budget.php im trying to make amount not editable i already followed the step on wiki but still it won't work and editable, what did i do wrong?. im trying to make gl_budget.php amount cell into hyperlink just like po_search_completed ?

function amount_cells_ex($label, $name, $size, $max=null, $init=null, $params=null, $post_label=null, $dec=null, $readonly=false)
{
    global $Ajax;

    if (!isset($dec))
          $dec = user_price_dec();
    if (!isset($_POST[$name]) || $_POST[$name] == "")
    {
        if ($init !== null)
            $_POST[$name] = $init;
        else
            $_POST[$name] = '';
    }
    if ($label != null)
    {
        if ($params == null)
            $params = "class='label'";
        label_cell($label, $params);
    }
    if (!isset($max))
        $max = $size;

    if ($label != null)
        echo "<td>";
    else
        echo "<td align='right'>";
       

    $readonly = ($readonly) ? 'readonly' : '';
    echo "<input $readonly class='amount' type=\"text\" name=\"$name\" size=\"$size\" maxlength=\"$max\" dec=\"$dec\" value=\"" . $_POST[$name]. "\">";

    if ($post_label) {
        echo "<span id='_{$name}_label'> $post_label</span>";
        $Ajax->addUpdate($name, '_'.$name.'_label', $post_label);
    }
    echo "</td>\n";
    $Ajax->addUpdate($name, $name, $_POST[$name]);
    $Ajax->addAssign($name, $name, 'dec', $dec);
}


function amount_cells($label, $name, $init=null, $params=null, $post_label=null, $dec=null, $readonly=false)
{
    amount_cells_ex($label, $name, 15, 15, $init, $params, $post_label, $dec, $readonly);
}


amount_cells(null, 'amount'.$i, null, 15, null, 0, true); ------> how do i make this cell into hyperlink so when they click redirect or pop up new page?.

i would like to add different item type so it can be use in BOM ? its possible to multiple  item same branch ?

The selected component is already on this bom. You can modify it's quantity but it cannot appear more than once on the same bom. i wanted to disable this because wanted to add same item ?

where can i find this ModifyOrderNumber=61? im trying to find this ui for this ModifyOrder wanted to add another input value ?

what im trying to say is how do i make Supplier editable again since can't click or use drop down menu ?


display_footer_exit();     <------------  where can i find this function? im trying to make new footer_exit by going all the way into the index.php where the user is how do i do that ?.

display_note(get_trans_view_str(          _("&Edit Link"))   ); -------> what params do i need to *** this edit link when user already place and order   

purchasing/po_entry_items.php?AddedID=69

View this order

Print This Order

Edit Link ----------------> wanted to know how to put edit link if the user does not wants to edit it but don't know how

Email This Order

Receive Items on this Purchase Order

Enter Another Purchase Order

Select An Outstanding Purchase Order already got it thanks but my problems is how to make modify order supplier editable again ?

Where do i find the cart class been looking for it everywhere ? already added but still shows blank on the database why ?.

i followed the wiki on how to  How to Add Column why can't i add just one simple input text in this page ?

Undefined property: Cart::$From in file: C:\xampp\htdocs\erp-1\sales\sales_order_entry.php at line 322

Undefined property: Cart::$From in file: C:\xampp\htdocs\erp-1\sales\includes\ui\sales_order_ui.inc at line 585

sales/sales_order_entry.php

function copy_from_cart()
{
    $cart = &$_SESSION['Items'];
    $_POST['ref'] = $cart->reference;
    $_POST['Comments'] = $cart->Comments;

    $_POST['OrderDate'] = $cart->document_date;
    $_POST['delivery_date'] = $cart->due_date;
    $_POST['cust_ref'] = $cart->cust_ref;
    $_POST['freight_cost'] = price_format($cart->freight_cost);

    $_POST['From'] = $cart->From;
   

    $_POST['deliver_to'] = $cart->deliver_to;
    $_POST['delivery_address'] = $cart->delivery_address;
    $_POST['phone'] = $cart->phone;
    $_POST['Location'] = $cart->Location;
    $_POST['ship_via'] = $cart->ship_via;

    $_POST['customer_id'] = $cart->customer_id;

    $_POST['branch_id'] = $cart->Branch;
    $_POST['sales_type'] = $cart->sales_type;
    // POS
    $_POST['payment'] = $cart->payment;
    if ($cart->trans_type!=ST_SALESORDER && $cart->trans_type!=ST_SALESQUOTE) { // 2008-11-12 Joe Hunt
        $_POST['dimension_id'] = $cart->dimension_id;
        $_POST['dimension2_id'] = $cart->dimension2_id;
    }
    $_POST['cart_id'] = $cart->cart_id;
    $_POST['_ex_rate'] = $cart->ex_rate;
}

sales_order_db.inc

function add_sales_order(&$order)
{
    global $SysPrefs, $path_to_root, $Refs;

    begin_transaction();
    hook_db_prewrite($order, $order->trans_type);
    $order_no = get_next_trans_no($order->trans_type);
    $del_date = date2sql($order->due_date);
    $order_type = 0; // this is default on new order
    $total = $order->get_trans_total();
    $sql = "INSERT INTO ".TB_PREF."sales_orders (order_no, type, debtor_no, trans_type, branch_code, customer_ref, reference, comments, ord_date,
        order_type, ship_via, deliver_to, delivery_address, From, contact_phone,
        freight_cost, from_stk_loc, delivery_date, payment_terms, total, prep_amount)
        VALUES (" .db_escape($order_no) . "," .db_escape($order_type) . "," . db_escape($order->customer_id) .
         ", " .db_escape($order->trans_type) . "," .db_escape($order->Branch) . ", ".
            db_escape($order->cust_ref) .",".
            db_escape($order->reference) .",".
            db_escape($order->Comments) .",'" .
            date2sql($order->document_date) . "', " .
            db_escape($order->sales_type) . ", " .
            db_escape($order->ship_via)."," .
            db_escape($order->deliver_to) . "," .
            db_escape($order->From) . "," .
            db_escape($order->delivery_address) . ", " .
            db_escape($order->phone) . ", " .
            db_escape($order->freight_cost) .", " .
            db_escape($order->Location) .", " .
            db_escape($del_date) . "," .
            db_escape($order->payment) . "," .
            db_escape($total) . "," .
            db_escape($order->prep_amount).")";
                        db_query($sql, "order Cannot be Added");

    $order->trans_no = array($order_no=>0);

    if ($loc_notification == 1)
    {
        include_once($path_to_root . "/inventory/includes/inventory_db.inc");
        $st_ids = array();
        $st_names = array();
        $st_num = array();
        $st_reorder = array();
    }
    foreach ($order->line_items as $line)
    {
        if ($loc_notification == 1 && is_inventory_item($line->stock_id))
            $loc = calculate_reorder_level($order->Location, $line, $st_ids, $st_names, $st_num, $st_reorder);

        $sql = "INSERT INTO ".TB_PREF."sales_order_details (order_no, trans_type, stk_code, description, unit_price, quantity, discount_percent) VALUES (";
        $sql .= $order_no . ",".$order->trans_type .
                ",".db_escape($line->stock_id).", "
                .db_escape($line->item_description).", $line->price,
                $line->quantity,
                $line->discount_percent)";
        db_query($sql, "order Details Cannot be Added");

    // Now mark quotation line as processed
        if ($order->trans_type == ST_SALESORDER && $line->src_id)
            update_parent_line(ST_SALESORDER, $line->src_id, $line->qty_dispatched); // clear all the quote despite all or the part was ordered
    } /* inserted line items into sales order details */
    add_audit_trail($order->trans_type, $order_no, $order->document_date);
    $Refs->save($order->trans_type, $order_no, $order->reference);

    hook_db_postwrite($order, $order->trans_type);
    commit_transaction();

    if ($loc_notification == 1 && count($st_ids) > 0)
        send_reorder_email($loc, $st_ids, $st_names, $st_num, $st_reorder);
    return $order_no;
}

function display_delivery_details(&$order)
{
    global $Ajax;

    div_start('delivery');   


    if ($order->payment_terms['cash_sale']) {    // Direct payment sale
        $Ajax->activate('items_table');
        display_heading(_('Cash payment'));
        start_table(TABLESTYLE2, "width='60%'");

        locations_list_row(_("Deliver from Location:"), 'Location', null, false, true);
        if (list_updated('Location'))
            $Ajax->activate('items_table');
        label_row(_("Cash account:"), $order->pos['bank_account_name']);
        textarea_row(_("Comments:"), "Comments", $order->Comments, 31, 5);

       
        end_table();
        hidden('delivery_date', $order->due_date);
    } else {
        if ($order->trans_type==ST_SALESINVOICE)
        {
            $title = _("Delivery Details");
            $delname = _("Due Date").':';
        }
        elseif ($order->trans_type==ST_CUSTDELIVERY)
        {
            $title = _("Invoice Delivery Details");
            $delname = _("Invoice before").':';
        }
        elseif ($order->trans_type==ST_SALESQUOTE)
        {
            $title = _("Quotation Delivery Details");
            $delname = _("Valid until").':';
        }
        else
        {
            $title = _("Order Delivery Details");
            $delname = _("Required Delivery Date").':';
        }
        display_heading($title);
        start_outer_table(TABLESTYLE2, "width='90%'");
        table_section(1);

        locations_list_row(_("Deliver from Location:"), 'Location', null, false, true, $order->fixed_asset);
        if ($order->payment_terms['days_before_due'] == -1)
        {
            $Ajax->addUpdate('items_table', 'prep_amount', price_format($order->get_trans_total())); // bind to items_table update
            if (!$order->is_started())
                amount_row(_("Pre-Payment Required:"), 'prep_amount');
            else
                label_row(_("Pre-Payment Required:"), price_format($order->prep_amount), "class='label'");
        }
        if (list_updated('Location'))
            $Ajax->activate('items_table');


        date_row($delname, 'delivery_date',
            $order->trans_type==ST_SALESORDER ?  _('Enter requested day of delivery')
                : $order->trans_type==ST_SALESQUOTE ? _('Enter Valid until Date') : '');
        text_row(_("Deliver To:"), 'deliver_to', $order->deliver_to, 50, 60,
            _('Additional identifier for delivery e.g. name of receiving person'));

        textarea_row(_("Address:"), 'delivery_address', $order->delivery_address, 35, 5,
            _('Delivery address. Default is address of customer branch'));

        text_row(_("From:"), 'From', $order->From, 40, 40);
   
        table_section(2);

        text_row(_("Contact Phone Number:"), 'phone', $order->phone, 25, 25,
            _('Phone number of ordering person. Defaults to branch phone number'));
        text_row(_("Customer Reference:"), 'cust_ref', $order->cust_ref, 25, 25,
          _('Customer reference number for this order (if any)'));
        textarea_row(_("Comments:"), "Comments", $order->Comments, 31, 5);

       

        shippers_list_row(_("Shipping Company:"), 'ship_via', $order->ship_via);

        end_outer_table(1);
    }
    div_end();
}

https://imgur.com/a/IsXd1iL

tried adding custom input field request by but keep getting errors what did i do wrong ?

hello im trying to hide some input value for purchasing item how do i do that ?

got a problem when i got like 20 or more items on my purchase order but it would only print one page what did i do wrong? wanted it to print on different sheet when item alot more in one sheet? how to i add another company order to only see IT sales as one of my company but one only has like N/A <-----what is this wanted to change this to another company

hello seems I getting error when I'm trying to execute this sql statement but why?

 Unhandled exception [0]: Call to undefined function get_sql_for_pending_item_inquiry()

$sql = get_sql_for_pending_item_inquiry, I have php file for item still gives me error

Hello i would like to ask how do i point the ajax code table into a new table i created $Ajax->activate('orders_tbl'); = i want this into this $Ajax->activate('orders_received_tbl'); <--this my new table but i cant find i wanted to know where is this ajax pointing its table?.