GWM : the product dropdown additional name key changes to product name , live issue reported by client

This commit is contained in:
Gowtham M 2026-04-01 15:04:35 +05:30
parent 3a2456b629
commit 40baec2219

View File

@ -1807,7 +1807,7 @@ $(document).ready(function() {
var product = productarray[i];
if(!selected_pr.includes(product.product_id))
{
newRow += '<option value="' + product.product_id + '">' + product.additional_product_name + '-' + product.manufacturer_name + '</option>';
newRow += '<option value="' + product.product_id + '">' + product.product_name + '-' + product.manufacturer_name + '</option>';
}
}
@ -1820,7 +1820,7 @@ $(document).ready(function() {
'<td><input type="text" class="form-control item-amount" name="amount[]" onblur="floatInput(event)" /></td>' +
'<td><center><i class="fa fa-trash remove-item"></i></center><input value="product" name="item_type" hidden></td>' +
'<td hidden><input type="hidden" name="id"></td>' +
'<td hidden><input value="'+product.additional_product_name+'" name="name"></td>' +
'<td hidden><input value="'+product.product_name+'" name="name"></td>' +
'</tr>';
// $('#productItemTable tbody').append(newRow);