noalyss
Version-9
include
export
export_operation_pdf.php
Go to the documentation of this file.
1
<?php
2
3
/*
4
* This file is part of NOALYSS.
5
*
6
* PhpCompta is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
10
*
11
* PhpCompta is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with PhpCompta; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
*/
20
// Copyright (2002-2020) Author Dany De Bontridder <danydb@noalyss.eu>
21
22
if
(!defined(
'ALLOWED'
)) die(
'Appel direct ne sont pas permis'
);
23
24
$http
=
new
HttpInput
();
25
/**
26
* @file
27
* @brief export an operation in PDF
28
*/
29
$operation
=
$http
->get(
"operation_id"
,
"number"
);
30
31
$op
=
new
PDF_Operation
(
$cn
,
$operation
);
32
33
$op
->export_pdf([
"acc"
,
"anc"
]);
34
$op
->download_pdf();
$cn
$cn
Definition:
ajax_anc_accounting.php:30
HttpInput
manage the http input (get , post, request) and extract from an array
Definition:
http_input.class.php:38
PDF_Operation
Detail Operation ACC + ANC , it will use Acc_Operation and Anc_Operation.
Definition:
pdf_operation.class.php:33
$http
$http
Definition:
export_operation_pdf.php:24
$operation
$operation
Definition:
export_operation_pdf.php:29
$op
$op
Definition:
export_operation_pdf.php:31