Beispiel #1
0
     break;
 case 'bill_reset':
     if (isset($_REQUEST['reset'])) {
         $err = bill_reset($_SESSION['sourceid']);
         status_report('BILL_RESET', $err);
         if ($err) {
             printing_choose();
         } else {
             orders_list();
         }
     } else {
         bill_reset_confirm();
     }
     break;
 case 'print_orders':
     $err = print_orders($_SESSION['sourceid']);
     status_report('ORDERS_PRINT', $err);
     if (!$err) {
         orders_list();
     } else {
         printing_choose();
     }
     break;
 case 'print_category':
     $category = (int) $start_data['category'];
     $err = print_category($category);
     status_report('CATEGORY_PRINT', $err);
     if (!$err) {
         orders_list();
     } else {
         printing_choose();
width: 275px;
display: block;
}
.header_image{
text-align: center;
}
.signature{
font-size: 9pt;
}
</style>
<style type="text/css" media="all">
td{
width: 50%;
}
.alert{
color:#DA0E11;
font-size:20px;
font-family: "ROKKITT", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif, sans-serif; font-size: 12pt; line-height: 1.0;
}
.fontstyle {font-family: "ROKKITT", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif, sans-serif; font-size: 11pt; line-height: 1.0;
}
</style> 

  </head>
    <body>
        <?php 
print_orders(Order_List::get_processing_orders('0', $date, false)->orders, $date_delivery);
print_orders(Order_List::get_processing_orders('1', $date, false)->orders, $date_delivery);
?>
    </body>
</html>
/**
* Closes a table
*
* @param integer $sourceid
* @return integer error code
*/
function table_close($sourceid)
{
    global $tpl;
    $query = "SELECT * FROM `sources` WHERE `id` = '{$sourceid}'";
    $res = common_query($query, __FILE__, __LINE__);
    if (!$res) {
        return ERR_MYSQL;
    }
    if (!mysql_num_rows($res)) {
        return ERR_TABLE_NOT_FOUND;
    }
    $query = "UPDATE `sources` SET `toclose`='1' WHERE `id` = '{$sourceid}'";
    $res = common_query($query, __FILE__, __LINE__);
    if (!$res) {
        return ERR_MYSQL;
    }
    $print = false;
    if (get_conf(__FILE__, __LINE__, "print_remaining_tickets_anyway")) {
        $print = true;
    } elseif (table_is_takeaway($sourceid) && get_conf(__FILE__, __LINE__, "print_remaining_tickets_if_takeaway")) {
        $print = true;
    }
    if ($print && printing_orders_to_print($sourceid)) {
        $err = print_orders($sourceid);
        status_report('ORDERS_PRINT', $err);
    }
    return 0;
}