|
|
@ -757,7 +757,7 @@ $option_str .= "</tbody></table>"; |
|
|
|
// console.log(pobj.find('input[name=optionID]').val()); |
|
|
|
// console.log(jobj.html(pobj.find('td').eq(0).html() + ' ' + pobj.find('td').eq(1).html())); |
|
|
|
console.log(pobj.find('td').eq(0).html()); |
|
|
|
jobj.html(pobj.find('td').eq(1).html() + " " +pobj.find('td').eq(2).html() + '<br />(' + pobj.find('td').eq(3).html() + ')'); |
|
|
|
jobj.html(pobj.find('td').eq(1).html() + " " + pobj.find('td').eq(2).html() + '<br />(' + pobj.find('td').eq(3).html() + ')'); |
|
|
|
jobj.closest('td').parent().find('input[name=option_unit_price]').val(pobj.find('td').eq(6).html()); |
|
|
|
jobj.closest('td').parent().find('input[name=option_price_bp]').val(commafy(pobj.find('td').eq(6).html().replace(/[,]+/g, "") * jobj.closest('td').parent().find('input[name=option_qty]').val().replace(/[,]+/g, ""))); |
|
|
|
jobj.closest('td').parent().find('input[name=op_id]').val(pobj.find('td').eq(0).html()); |
|
|
@ -1937,7 +1937,11 @@ if($_SERVER["REQUEST_METHOD"] == "POST"){ |
|
|
|
?> |
|
|
|
<tr name="option_templ"> |
|
|
|
<td name="option_seat"> |
|
|
|
<a href="" name="option_href" data-toggle="modal"><?php echo $v["item_spec"] . '-(' . $v['item_memo'] . ')'; ?></a> |
|
|
|
<?php if (!empty($v['item_memo'])) { ?> |
|
|
|
<a href="" name="option_href" data-toggle="modal"><?php echo $v["item_spec"] . '-(' . $v['item_memo'] . ')'; ?></a> |
|
|
|
<?php } else { ?> |
|
|
|
<a href="" name="option_href" data-toggle="modal"><?php echo $v["item_spec"]; ?></a> |
|
|
|
<?php } ?> |
|
|
|
</td> |
|
|
|
<td><input type="text" name="option_unit_price" class="form-control dollar-right" size="8" value="<?php echo number_format($v["item_unit_price"]); ?>" readonly></td> |
|
|
|
<td><input type="text" name="option_qty" class="form-control" size="2" maxlength="2" value="<?php echo $v["item_qty"]; ?>"></td> |
|
|
@ -1974,9 +1978,9 @@ if($_SERVER["REQUEST_METHOD"] == "POST"){ |
|
|
|
<?php |
|
|
|
} |
|
|
|
} else { |
|
|
|
echo '<pre>'; |
|
|
|
print_r($v["option_price"]); |
|
|
|
echo '</pre>'; |
|
|
|
// echo '<pre>'; |
|
|
|
// print_r($v["option_price"]); |
|
|
|
// echo '</pre>'; |
|
|
|
?> |
|
|
|
<tr name="option_templ"> |
|
|
|
<td name="option_seat"> |
|
|
|