noalyss
Version-9
Toggle main menu visibility
Main Page
Related Pages
Packages
Package List
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
$
a
s
u
v
Files
File List
Globals
All
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
p
r
s
t
u
w
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Typedefs
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Pages
include
ajax
ajax_update_visibility_quantity.php
Go to the documentation of this file.
1
<?php
2
/*
3
* This file is part of NOALYSS.
4
*
5
* NOALYSS is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
9
*
10
* NOALYSS is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with NOALYSS; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
*/
19
20
// Copyright Author Dany De Bontridder danydb@aevalys.eu
21
22
/*!\file
23
* \brief respond ajax request, the get contains
24
* the value :
25
* - l for ledger
26
* - gDossier
27
* Must return 1 if quantity is visible or 0 if not
28
*/
29
if
( ! defined (
'ALLOWED'
) ) die(
'Appel direct ne sont pas permis'
);
30
global
$http
;
31
$cn
=
Dossier::connect
();
32
$ledger
=
new
Acc_Ledger
(
$cn
,
$http
->get(
"l"
,
"number"
,0));
33
$ledger
->load();
34
if
(
$ledger
->id==0)
throw
new
Exception(
"UPDVIS34.Invalide ledger"
);
35
echo
$ledger
->has_quantity();
$cn
$cn
Definition:
ajax_update_visibility_quantity.php:31
$ledger
$ledger
Definition:
ajax_update_visibility_quantity.php:32
$http
global $http
Definition:
ajax_update_visibility_quantity.php:30
Acc_Ledger
Definition:
acc_ledger.class.php:35
Dossier\connect
static connect()
Definition:
dossier.class.php:295