$check_menu = check_menu($table_id, $menu_id);
     if ($check_menu == 0) {
         $get_discount = get_discount($member_id, $menu_id);
         //echo $get_discount;
         $tnt_discount = $get_discount / 100 * $get_menu_price['menu_price'];
         $tnt_grand_price = $get_menu_price['menu_price'] - $tnt_discount;
         $data = "'',\n\t\t\t\t\t'{$table_id}',\n\t\t\t\t\t'" . $_SESSION['user_id'] . "',\n\t\t\t\t\t'{$member_id}', \n\t\t\t\t\t'{$menu_id}',\n\t\t\t\t\t'" . $get_menu_price['menu_price'] . "',\n\t\t\t\t\t'{$tnt_discount}',\n\t\t\t\t\t'{$tnt_grand_price}',\n\t\t\t\t\t'1',\n\t\t\t\t\t'{$tnt_grand_price}'\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t";
         create_config("transaction_new_tmp", $data);
     }
     header("Location: transaction_new.php?page=list&table_id={$table_id}&member_id={$member_id}");
     break;
 case 'add_menu_edit':
     $member_id = get_isset($_GET['member_id']);
     $menu_id = get_isset($_GET['menu_id']);
     $table_id = get_isset($_GET['table_id']);
     $get_menu_price = get_menu_price($menu_id);
     $check_menu = check_menu($table_id, $menu_id);
     if ($check_menu == 0) {
         $get_discount = get_discount($member_id, $menu_id);
         //echo $get_discount;
         $tnt_discount = $get_discount / 100 * $get_menu_price['menu_price'];
         $tnt_grand_price = $get_menu_price['menu_price'] - $tnt_discount;
         $get_transaction_id = get_transaction_id($table_id);
         $data = "'',\n\t\t\t\t\t'{$get_transaction_id}',\n\t\t\t\t\t'{$menu_id}', \n\t\t\t\t\t'" . $get_menu_price['menu_original_price'] . "',\n\t\t\t\t\t'" . $get_menu_price['menu_margin_price'] . "',\n\t\t\t\t\t'" . $get_menu_price['menu_price'] . "',\n\t\t\t\t\t'" . $tnt_discount . "',\n\t\t\t\t\t'{$tnt_grand_price}',\n\t\t\t\t\t'1',\n\t\t\t\t\t'{$tnt_grand_price}'\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t";
         create_config("transaction_tmp_details", $data);
     }
     header("Location: transaction_new.php?page=list_edit&table_id={$table_id}");
     break;
 case 'save':
     extract($_POST);
     $i_date = get_isset($_GET['date']);
                                            <th width="5%">No</th>
                                                <th>Nama Menu </th>
                                                <th>Kategori </th>
                                                <th>Harga</th>
                                                <th>Config </th>
                                                  
                                            </tr>
                                        </thead>
                                        
                                        <tbody>
                                            <?php 
$no = 1;
$query_menu = mysql_query("select a.*, b.menu_type_name\n                                                from menus a    \n                                                join menu_types b on b.menu_type_id = a.menu_type_id\n                                                order by menu_id");
while ($row_menu = mysql_fetch_array($query_menu)) {
    $check_exist = check_exist($row->branch_id, $row_menu['menu_id']);
    $branch_menu_price = get_menu_price($row->branch_id, $row_menu['menu_id']);
    if ($check_exist > 0) {
        $price = $branch_menu_price;
    } else {
        $price = $row_menu['menu_price'];
    }
    ?>

                                            <tr>
                                            <td><?php 
    echo $branch_menu_price;
    ?>
</td>
                                               <td><?php 
    echo $row_menu['menu_name'];
    ?>