Topic: Changing one of the columns in "Invoice Against Sales Delivery"
Need some help getting pointed in the direction for where the code is that determines what data is pulled from the database.
What I am trying to do is change the "Branch" column to show my new "Ship From" data. Now I can change the column heading all day long, what I can't figure out is where to change the data that's being called up. I was able to make it change in the "Sales Order Inquiry" to where it shows the "Ship From" data from my database. After I made that change this afternoon, I forgot how I did it have been trying to figure that out as well so I could do the same thing for the "Invoice Against Sales Delivery".
I see in sales/inquiry/sales_deliveries_view.php where it calls the sql and the sets up the columns, but I can't find where it calls the data from the database.
$sql = get_sql_for_sales_deliveries_view($selected_customer, $selected_stock_item, $_POST['customer_id']);
$cols = array(
_("Delivery #") => array('fun'=>'trans_view'),
_("Customer"),
'branch_code' => 'skip',
_("Branch") => array('ord'=>''),
//_("Ship From") => array('type' => 'ship_from' , 'ord' => '') , This is a line I added, but is commented out right now. I know if I comment out the line above and uncomment this one I can change the column title.
_("Deliver To"),
_("Reference"),
_("Cust Ref"),
_("Delivery Date") => array('type'=>'date', 'ord'=>''),
_("Due By") => 'date',
_("Delivery Total") => array('type'=>'amount', 'ord'=>''),
_("Currency") => array('align'=>'center'),
submit('BatchInvoice',_("Batch"), false, _("Batch Invoicing"))
=> array('insert'=>true, 'fun'=>'batch_checkbox', 'align'=>'center'),
array('insert'=>true, 'fun'=>'edit_link'),
array('insert'=>true, 'fun'=>'invoice_link'),
array('insert'=>true, 'fun'=>'prt_link')
);
Thank you for the help in this!