dolibarr/htdocs/cashdesk/validation_ticket.php

43 lines
1.4 KiB
PHP
Raw Normal View History

2008-09-30 01:18:52 +02:00
<?php
2010-09-28 19:35:49 +02:00
/* Copyright (C) 2007-2008 Jeremie Ollivier <jeremie.o@laposte.net>
2008-09-30 01:18:52 +02:00
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
2008-09-30 01:18:52 +02:00
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
2019-09-23 21:55:30 +02:00
* along with this program. If not, see <https://www.gnu.org/licenses/>.
2008-09-30 01:18:52 +02:00
*/
2013-12-14 01:28:59 +01:00
/**
* \file htdocs/cashdesk/validation_ticket.php
* \ingroup cashdesk
* \brief validation_ticket.php
*/
require '../main.inc.php';
require_once DOL_DOCUMENT_ROOT.'/cashdesk/include/environnement.php';
require_once DOL_DOCUMENT_ROOT.'/cashdesk/class/Facturation.class.php';
2018-07-26 11:57:25 +02:00
require_once DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php';
2008-09-30 01:18:52 +02:00
2011-10-13 20:32:03 +02:00
$obj_facturation = unserialize($_SESSION['serObjFacturation']);
unset($_SESSION['serObjFacturation']);
2008-09-30 01:18:52 +02:00
$hookmanager->initHooks(array('cashdeskTplTicket'));
2008-09-30 01:18:52 +02:00
$parameters = array();
$reshook = $hookmanager->executeHooks('doActions', $parameters, $obj_facturation);
if (empty($reshook))
{
2018-07-26 11:57:25 +02:00
require 'tpl/ticket.tpl.php';
}
2008-09-30 01:18:52 +02:00
2010-04-10 17:02:18 +02:00
2011-10-13 20:32:03 +02:00
$_SESSION['serObjFacturation'] = serialize($obj_facturation);