CIM57 - Updates to printout
This commit is contained in:
@@ -1119,7 +1119,7 @@ function sortTextVal(a, b) {
|
||||
//------------------------------------------
|
||||
function printDiv(div) {
|
||||
var divContents = document.getElementById(div).innerHTML;
|
||||
var a = window.open('', '', 'height=500, width=500');
|
||||
var a = window.open('', '', '');
|
||||
a.document.write('<html>');
|
||||
a.document.write('<body > ');
|
||||
a.document.write(divContents);
|
||||
|
||||
@@ -111,25 +111,17 @@ if ($update_allowed === 1){
|
||||
$shipto = (isset($_POST['shipto']) ? $_POST['shipto'] : '');
|
||||
$customer = (isset($_POST['soldto']) ? $_POST['soldto'] : $shipto);
|
||||
|
||||
$order_header = '<table style="margin-bottom: 15px;">
|
||||
<thead style="text-align: left;">
|
||||
<tr>
|
||||
<th>'.$mass_update_order_ref.'</th>
|
||||
<th>'.$mass_update_order_total.'</th>
|
||||
<th>'.$mass_update_customer.'</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>'.($_POST['order_ref'] ?? '').'</td>
|
||||
<td>'.$total_rowID.'</td>
|
||||
<td>'.$customer.'</td>
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
$order_header = '<table style="margin-bottom: 15px;width:50%;">
|
||||
<thead>
|
||||
<tr><th style="text-align: left;">'.$tab1.'</th></td>
|
||||
<tr><th></th></td>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td>'.$mass_update_order_ref.'</td><td>'.($_POST['order_ref'] ?? '').'</td></tr>
|
||||
<tr><td>'.$mass_update_order_total.'</td><td>'.$total_rowID.'</td></tr>
|
||||
<tr><td>'.$mass_update_customer.'</td><td>'.$customer.'</td></tr>
|
||||
</tbody>
|
||||
</table>';
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user