Mass_update improvements

This commit is contained in:
“VeLiTi”
2024-03-29 08:12:05 +01:00
parent 490788edaa
commit 8b21015e70
3 changed files with 16 additions and 4 deletions

View File

@@ -106,13 +106,17 @@ if ($update_allowed === 1){
//Totals
$total_input = $total_rowID + $total_not_found;
$total_summary = '('.$total_rowID.$general_page_of.$total_input.')';
//CHECK if shipto exists if not empty. Use shipto when soldto not available
$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>Order_ref</th>
<th>Order total</th>
<th>'.$general_soldto.'</th>
<th>'.$mass_update_order_ref.'</th>
<th>'.$mass_update_order_total.'</th>
<th>'.$mass_update_customer.'</th>
</tr>
</thead>
@@ -120,7 +124,7 @@ if ($update_allowed === 1){
<tr>
<td>'.($_POST['order_ref'] ?? '').'</td>
<td>'.$total_rowID.'</td>
<td>'.($_POST['soldto'] ?? '').'</td>
<td>'.$customer.'</td>
</tr>
</tbody>