foreach ($getProduct as $value) { $val_name_product = $value['name_product']; echo $val_name_product; } ?> </td> <td><?php $getFactory = getFactory2($idFactoryS); foreach ($getFactory as $value) { $val_name_factory = $value['name_factory']; echo $val_name_factory; } ?> </td> <td><?php $getUnit = getUnit2($idUnitS); //print_r($getUnit);; foreach ($getUnit as $value) { $val_name_unit = $value['name_unit']; echo $val_name_unit; } ?> </td> <td><?php echo $_SESSION["editproduct"][$i]["AmountProduct"]; ?> </td> <td class ="text-right"><?php echo number_format($_SESSION["editproduct"][$i]["total_price"], 2); ?> </td>
} ?> </td> <td> <?php $getFactory = getFactory2($_SESSION['shipment_edit_idfactory']); foreach ($getFactory as $value) { $val_name_factory = $value['name_factory']; echo $val_name_factory; } ?> </td> <td> <?php echo $_SESSION['shipment_edit_amount'] . " "; $getUnit = getUnit2($_SESSION['shipment_edit_idunit']); //print_r($getUnit);; foreach ($getUnit as $value) { $val_name_unit = $value['name_unit']; echo $val_name_unit; } ?> </td> <td> <?php echo number_format($_SESSION['shipment_edit_price'], 2); ?> </td> <?php if ($_SESSION['shipment_edit_type'] === 'PERCENT') { ?>