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