noalyss Version-9
Public Member Functions
Anc_Acc_Link Class Reference

link between accountancy and analytic, like table but as a listing More...

+ Inheritance diagram for Anc_Acc_Link:
+ Collaboration diagram for Anc_Acc_Link:

Public Member Functions

 __contruct ($p_cn)
 
 get_request ()
 get the parameters More...
 
 set_sql_filter ()
 Set the filter (account_date) More...
 
- Public Member Functions inherited from Anc_Print
 __construct ($p_cn)
 
 check ()
 
 display_form ($p_hidden="")
 Compute the form to display. More...
 
 get_request ()
 complete the object with the data in $_REQUEST More...
 
 set_sql_filter ()
 Set the filter (account_date) More...
 

Additional Inherited Members

- Data Fields inherited from Anc_Print
 $db
 
 $from
 
 $from_poste
 
 $to
 
 $to_poste
 

Detailed Description

link between accountancy and analytic, like table but as a listing

Definition at line 30 of file anc_acc_link.class.php.

Member Function Documentation

◆ __contruct()

Anc_Acc_Link::__contruct (   $p_cn)

Definition at line 32 of file anc_acc_link.class.php.

33 {
34 parent::__construct($p_cn);
35 //@todo to remove = useless since the parent has a database object $db
36 $this->cn=$p_cn;
37 }
$input_from cn
Definition: balance.inc.php:66

References cn.

◆ get_request()

Anc_Acc_Link::get_request ( )

get the parameters

Reimplemented from Anc_Print.

Definition at line 42 of file anc_acc_link.class.php.

43 {
44 parent::get_request();
45 $http=new HttpInput();
46 $this->card_poste=$http->get('card_poste',"string",1);
47 }
manage the http input (get , post, request) and extract from an array

References $http.

◆ set_sql_filter()

Anc_Acc_Link::set_sql_filter ( )

Set the filter (account_date)

Returns
return the string to add to load

Reimplemented from Anc_Print.

Definition at line 48 of file anc_acc_link.class.php.

49 {
50 $sql="";
51 $and=" and ";
52 if ( $this->from != "" && $this->from=isDate($this->from) )
53 {
54 $sql.="$and oa_date >= to_date('".$this->from."','DD.MM.YYYY')";
55 }
56 if ( $this->to != "" && $this->to=isDate($this->to))
57 {
58 $sql.=" $and oa_date <= to_date('".$this->to."','DD.MM.YYYY')";
59 }
60
61 return $sql;
62
63 }
isDate($p_date)
Definition: ac_common.php:236
$anc_grandlivre to
$anc_grandlivre from

References $sql, from, isDate(), and to.

Referenced by Anc_Acc_List\load_anc_account(), Anc_Acc_List\load_anc_card(), Anc_Acc_List\load_card(), and Anc_Acc_List\load_poste().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: