Main Page | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

Customer Class Reference

class Customer are a specific kind of card More...

Inheritance diagram for Customer:

fiche

Public Member Functions

 Customer ($p_cn, $p_id=0)
 Constructor /* only a db connection is needed.
 GetFromPoste ($p_poste=0)
 Get all info contains in the view thanks to the poste elt (account).
 VatListing ($p_year)
 Get all the info for making a vat listing for the vat administration.
 Summary ($p_search)

Data Fields

 $poste
 $name
 $street
 $country
 $cp
 $vat_number

Detailed Description

class Customer are a specific kind of card

Definition at line 38 of file class_customer.php.


Constructor & Destructor Documentation

Customer::Customer p_cn,
p_id = 0
 

Constructor /* only a db connection is needed.

Definition at line 49 of file class_customer.php.

References fiche::fiche().


Member Function Documentation

Customer::GetFromPoste p_poste = 0  ) 
 

Get all info contains in the view thanks to the poste elt (account).

Definition at line 57 of file class_customer.php.

References $Res, $row, $sql, ExecSql(), f_id, and name.

Referenced by VatListing().

Customer::Summary p_search  ) 
 

Summary

show the default screen

parm :

  • p_search (filter) gen :
  • return: string to display

Definition at line 195 of file class_customer.php.

References $a, $bar, $e, $offset, $page, $r, $search, $url, fiche::CountByDef(), FormatString(), fiche::GetAll(), jrn_navigation_bar(), poste, and table.

Customer::VatListing p_year  ) 
 

Get all the info for making a vat listing for the vat administration.

Todo:
optimize SQL
Parameters:
periode 
Returns:
double array structure is ( j_poste,name,vat_number,amount,tva,customer(object)

Definition at line 84 of file class_customer.php.

References $a_Res, $c, $customer, $e, $Res, $Res2, $sql, $t, ExecSql(), GetFromPoste(), and name.


Field Documentation

Customer::$country
 

Country

Definition at line 43 of file class_customer.php.

Customer::$cp
 

Zip code

Definition at line 44 of file class_customer.php.

Customer::$name
 

name of the company

Definition at line 41 of file class_customer.php.

Customer::$poste
 

poste comptable

Definition at line 40 of file class_customer.php.

Customer::$street
 

Street

Definition at line 42 of file class_customer.php.

Customer::$vat_number
 

vat number

Definition at line 45 of file class_customer.php.


The documentation for this class was generated from the following file:
Generated on Sat Jun 24 20:41:35 2006 for phpcompta by  doxygen 1.4.4