示例#1
0
            $myOrderType = "update";
            $myData->saveOrder($myJSON, $rabatt, $order_type, $clientID, $datum, $zahlungsfrist, $myOrderType, $leistungszeitraum_id, $o_id, $order_id);
            break;
        case 'order_read_data':
            echo $myData->order_read_data($order_id, $o_id);
            break;
        case 'order_delete':
            $myData->delete_order($order_id, $order_type, $o_id);
            break;
        case 'position_delete':
            $myData->position_delete($position_id);
            break;
        case 'order_position_save_new':
            $myData->order_position_save_new($myJSON, $o_id);
            break;
        case 'order_change_payment_status':
            $myData->order_change_payment_status($order_id, $payment_status);
            break;
        case 'order_duplicate_to_invoice':
            $myData->order_duplicate_to_invoice($o_id);
            break;
        case 'settings_get':
            $settings_arr = $myData->read_settings("json");
            echo $settings_arr;
            break;
        case 'backupData':
            $myBackup = new Backup();
            $myBackup->init("backup_" . date("d_m_Y_H_i_s", time()) . ".zip");
            break;
    }
}