noalyss
Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
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();
$http
$http
Definition
action.common.inc.php:33
$cn
$cn
Definition
ajax_anc_accounting.php:30
$ledger
$ledger
Definition
ajax_anc_key_choice.php:36
Acc_Ledger
Class for jrn, class acc_ledger for manipulating the ledger AND some acc.
Definition
acc_ledger.class.php:36
Generated on Wed Jun 25 2025 09:57:47 for noalyss by
1.13.2