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

@@ -107,12 +107,16 @@ if ($update_allowed === 1){
$total_input = $total_rowID + $total_not_found; $total_input = $total_rowID + $total_not_found;
$total_summary = '('.$total_rowID.$general_page_of.$total_input.')'; $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;"> $order_header = '<table style="margin-bottom: 15px;">
<thead style="text-align: left;"> <thead style="text-align: left;">
<tr> <tr>
<th>Order_ref</th> <th>'.$mass_update_order_ref.'</th>
<th>Order total</th> <th>'.$mass_update_order_total.'</th>
<th>'.$general_soldto.'</th> <th>'.$mass_update_customer.'</th>
</tr> </tr>
</thead> </thead>
@@ -120,7 +124,7 @@ if ($update_allowed === 1){
<tr> <tr>
<td>'.($_POST['order_ref'] ?? '').'</td> <td>'.($_POST['order_ref'] ?? '').'</td>
<td>'.$total_rowID.'</td> <td>'.$total_rowID.'</td>
<td>'.($_POST['soldto'] ?? '').'</td> <td>'.$customer.'</td>
</tr> </tr>
</tbody> </tbody>

View File

@@ -209,6 +209,10 @@ $mass_update_confirm_message = 'Update uitvoeren?';
$mass_update_correct = 'Update doorgevoerd'; $mass_update_correct = 'Update doorgevoerd';
$mass_update_not_found = 'niet gevonden'; $mass_update_not_found = 'niet gevonden';
$mass_update_order_ref = 'Order referentie';
$mass_update_order_total = 'Order totaal';
$mass_update_customer = 'Klant';
$paste_excel_h3 = 'Serienummers toevoegen'; $paste_excel_h3 = 'Serienummers toevoegen';
$paste_excel_1 = 'Serienummers toevoegen of plakken vanuit excel'; $paste_excel_1 = 'Serienummers toevoegen of plakken vanuit excel';
$paste_excel_2 = '1 nummer per regel'; $paste_excel_2 = '1 nummer per regel';

View File

@@ -209,6 +209,10 @@ $mass_update_confirm_message = 'Process update?';
$mass_update_correct = 'Update done'; $mass_update_correct = 'Update done';
$mass_update_not_found = 'not found'; $mass_update_not_found = 'not found';
$mass_update_order_ref = 'Order reference';
$mass_update_order_total = 'Order total';
$mass_update_customer = 'Customer';
$paste_excel_h3 = 'Insert serialnumbers'; $paste_excel_h3 = 'Insert serialnumbers';
$paste_excel_1 = 'Add serialnumber or paste from excel'; $paste_excel_1 = 'Add serialnumber or paste from excel';
$paste_excel_2 = '1 number per line'; $paste_excel_2 = '1 number per line';