noalyss
Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
include
class
filter_data_currency_card_category.class.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
/**
23
* \file
24
* \brief filter data in currency from datase , inherit from Data_Currency_Operation, filter on
25
* card category
26
*/
27
28
/**
29
* \class Filter_Data_Currency_Card_Category
30
* \brief filter data in currency from datase , inherit from Data_Currency_Operation, filter on
31
* card category
32
*/
33
class
Filter_Data_Currency_Card_Category
extends
Data_Currency_Operation
34
{
35
36
private
$card_category
;
37
38
function
__construct
(
$cn
,
$from_date
,
$to_date
,
$currency_id
,
$card_category
)
39
{
40
parent::__construct(
$cn
,
$from_date
,
$to_date
,
$currency_id
);
41
$this->card_category=
$card_category
;
42
}
43
44
public
function
getCard_category
()
45
{
46
return
$this->card_category
;
47
}
48
49
public
function
setCard_category
(
$card_category
)
50
{
51
$this->card_category=
$card_category
;
52
}
53
54
/**
55
*
56
* @brief build the SQL condition
57
* @return SQL condition
58
*/
59
public
function
SQL_Condition
()
60
{
61
$sql
=parent::SQL_Condition();
62
$sql
.=
" and jrnx.f_id in ( select f_id from fiche where fd_id=$4)"
;
63
return
$sql
;
64
}
65
66
/**
67
* @brief returns data
68
* @return array
69
*/
70
public
function
get_data
()
71
{
72
$sql
=$this->
build_SQL
();
73
$aArray=$this->
getDbconx
()->get_array(
$sql
,
74
[$this->
getCurrency_id
(),
75
$this->
getFrom_date
(),
76
$this->
getTo_date
(),
77
$this->card_category]);
78
79
return
$aArray;
80
}
81
82
}
83
84
?>
$sql
$sql
Definition
ajax_add_concerned_card.php:100
$cn
$cn
Definition
ajax_anc_accounting.php:30
Data_Currency_Operation
build the SQL and fetch data of data currency operation from database ,
Definition
data_currency_operation.class.php:32
Data_Currency_Operation\$to_date
$to_date
Definition
data_currency_operation.class.php:37
Data_Currency_Operation\build_SQL
build_SQL()
build the SQL to execute
Definition
data_currency_operation.class.php:110
Data_Currency_Operation\getDbconx
getDbconx()
Database connection.
Definition
data_currency_operation.class.php:96
Data_Currency_Operation\$currency_id
$currency_id
Definition
data_currency_operation.class.php:35
Data_Currency_Operation\getTo_date
getTo_date()
Definition
data_currency_operation.class.php:71
Data_Currency_Operation\getFrom_date
getFrom_date()
Definition
data_currency_operation.class.php:66
Data_Currency_Operation\$from_date
$from_date
Definition
data_currency_operation.class.php:36
Data_Currency_Operation\getCurrency_id
getCurrency_id()
retrieve currency.od
Definition
data_currency_operation.class.php:61
Filter_Data_Currency_Card_Category
filter data in currency from datase , inherit from Data_Currency_Operation, filter on card category
Definition
filter_data_currency_card_category.class.php:34
Filter_Data_Currency_Card_Category\SQL_Condition
SQL_Condition()
build the SQL condition
Definition
filter_data_currency_card_category.class.php:59
Filter_Data_Currency_Card_Category\getCard_category
getCard_category()
Definition
filter_data_currency_card_category.class.php:44
Filter_Data_Currency_Card_Category\get_data
get_data()
returns data
Definition
filter_data_currency_card_category.class.php:70
Filter_Data_Currency_Card_Category\setCard_category
setCard_category($card_category)
Definition
filter_data_currency_card_category.class.php:49
Filter_Data_Currency_Card_Category\__construct
__construct($cn, $from_date, $to_date, $currency_id, $card_category)
Definition
filter_data_currency_card_category.class.php:38
Filter_Data_Currency_Card_Category\$card_category
$card_category
Definition
filter_data_currency_card_category.class.php:36
Generated on Wed Jun 25 2025 09:57:48 for noalyss by
1.13.2