altocompta/doc/developper/html/classCustomer.html

364 lines
16 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>phpcompta: Customer Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.4 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
<h1>Customer Class Reference</h1><!-- doxytag: class="Customer" --><!-- doxytag: inherits="fiche" -->class Customer are a specific kind of card
<a href="#_details">More...</a>
<p>
<p>Inheritance diagram for Customer:
<p><center><img src="classCustomer.png" usemap="#Customer_map" border="0" alt=""></center>
<map name="Customer_map">
<area href="classfiche.html" alt="fiche" shape="rect" coords="0,0,65,24">
</map>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCustomer.html#a0">Customer</a> ($p_cn, $p_id=0)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor /* only a db connection is needed. <a href="#a0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCustomer.html#a1">GetFromPoste</a> ($p_poste=0)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get all info contains in the view thanks to the poste elt (account). <a href="#a1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCustomer.html#a2">VatListing</a> ($p_year)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get all the info for making a vat listing for the vat administration. <a href="#a2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCustomer.html#a3">Summary</a> ($p_search)</td></tr>
<tr><td colspan="2"><br><h2>Data Fields</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCustomer.html#o0">$poste</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCustomer.html#o1">$name</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCustomer.html#o2">$street</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCustomer.html#o3">$country</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCustomer.html#o4">$cp</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCustomer.html#o5">$vat_number</a></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
class Customer are a specific kind of card
<p>
<p>
Definition at line <a class="el" href="class__customer_8php-source.html#l00038">38</a> of file <a class="el" href="class__customer_8php-source.html">class_customer.php</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="a0"></a><!-- doxytag: member="Customer::Customer" ref="a0" args="($p_cn, $p_id=0)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">Customer::Customer </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>p_cn</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_id</em> = <code>0</code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Constructor /* only a db connection is needed.
<p>
<p>
Definition at line <a class="el" href="class__customer_8php-source.html#l00049">49</a> of file <a class="el" href="class__customer_8php-source.html">class_customer.php</a>.
<p>
References <a class="el" href="class__fiche_8php-source.html#l00155">fiche::fiche()</a>. </td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a1"></a><!-- doxytag: member="Customer::GetFromPoste" ref="a1" args="($p_poste=0)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">Customer::GetFromPoste </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>p_poste</em> = <code>0</code> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get all info contains in the view thanks to the poste elt (account).
<p>
<p>
Definition at line <a class="el" href="class__customer_8php-source.html#l00057">57</a> of file <a class="el" href="class__customer_8php-source.html">class_customer.php</a>.
<p>
References <a class="el" href="depense_8inc_8php-source.html#l00073">$Res</a>, <a class="el" href="cbc__be_8inc_8php-source.html#l00028">$row</a>, <a class="el" href="bank_8inc_8php-source.html#l00095">$sql</a>, <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>, <a class="el" href="facture_8inc_8php-source.html#l00194">f_id</a>, and <a class="el" href="action_8inc_8php-source.html#l00137">name</a>.
<p>
Referenced by <a class="el" href="class__customer_8php-source.html#l00084">VatListing()</a>. </td>
</tr>
</table>
<a class="anchor" name="a3"></a><!-- doxytag: member="Customer::Summary" ref="a3" args="($p_search)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">Customer::Summary </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>p_search</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Summary<p>
show the default screen<p>
parm :<ul>
<li>p_search (filter) gen :</li><li>return: string to display</li></ul>
<p>
Definition at line <a class="el" href="class__customer_8php-source.html#l00195">195</a> of file <a class="el" href="class__customer_8php-source.html">class_customer.php</a>.
<p>
References <a class="el" href="action_8inc_8php-source.html#l00213">$a</a>, <a class="el" href="bank_8inc_8php-source.html#l00110">$bar</a>, <a class="el" href="impress__fiche_8php-source.html#l00079">$e</a>, <a class="el" href="bank_8inc_8php-source.html#l00098">$offset</a>, <a class="el" href="bank_8inc_8php-source.html#l00097">$page</a>, <a class="el" href="user__action__ach_8php-source.html#l00052">$r</a>, <a class="el" href="admin_8inc_8php-source.html#l00128">$search</a>, <a class="el" href="admin_8inc_8php-source.html#l00111">$url</a>, <a class="el" href="class__fiche_8php-source.html#l00289">fiche::CountByDef()</a>, <a class="el" href="ac__common_8php-source.html#l00207">FormatString()</a>, <a class="el" href="class__fiche_8php-source.html#l00771">fiche::GetAll()</a>, <a class="el" href="user__common_8php-source.html#l00862">jrn_navigation_bar()</a>, <a class="el" href="user__impress_8php-source.html#l00082">poste</a>, and <a class="el" href="balance_8php-source.html#l00068">table</a>. </td>
</tr>
</table>
<a class="anchor" name="a2"></a><!-- doxytag: member="Customer::VatListing" ref="a2" args="($p_year)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">Customer::VatListing </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>p_year</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get all the info for making a vat listing for the vat administration.
<p>
<dl compact><dt><b><a class="el" href="todo.html#_todo000002">Todo:</a></b></dt><dd>optimize SQL</dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>periode</em>&nbsp;</td><td></td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>double array structure is ( j_poste,name,vat_number,amount,tva,customer(object)</dd></dl>
<p>
Definition at line <a class="el" href="class__customer_8php-source.html#l00084">84</a> of file <a class="el" href="class__customer_8php-source.html">class_customer.php</a>.
<p>
References <a class="el" href="impress__listing__client_8php-source.html#l00035">$a_Res</a>, <a class="el" href="admin_8inc_8php-source.html#l00080">$c</a>, <a class="el" href="client_8inc_8php-source.html#l00049">$customer</a>, <a class="el" href="impress__fiche_8php-source.html#l00079">$e</a>, <a class="el" href="depense_8inc_8php-source.html#l00073">$Res</a>, <a class="el" href="setup_8php-source.html#l00403">$Res2</a>, <a class="el" href="bank_8inc_8php-source.html#l00095">$sql</a>, <a class="el" href="impress__rapport_8php-source.html#l00058">$t</a>, <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>, <a class="el" href="class__customer_8php-source.html#l00057">GetFromPoste()</a>, and <a class="el" href="action_8inc_8php-source.html#l00137">name</a>. </td>
</tr>
</table>
<hr><h2>Field Documentation</h2>
<a class="anchor" name="o3"></a><!-- doxytag: member="Customer::$country" ref="o3" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">Customer::$country </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Country
<p>
Definition at line <a class="el" href="class__customer_8php-source.html#l00043">43</a> of file <a class="el" href="class__customer_8php-source.html">class_customer.php</a>. </td>
</tr>
</table>
<a class="anchor" name="o4"></a><!-- doxytag: member="Customer::$cp" ref="o4" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">Customer::$cp </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Zip code
<p>
Definition at line <a class="el" href="class__customer_8php-source.html#l00044">44</a> of file <a class="el" href="class__customer_8php-source.html">class_customer.php</a>. </td>
</tr>
</table>
<a class="anchor" name="o1"></a><!-- doxytag: member="Customer::$name" ref="o1" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">Customer::$<a class="el" href="ecrit__ouv_8php.html#a8">name</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
name of the company
<p>
Definition at line <a class="el" href="class__customer_8php-source.html#l00041">41</a> of file <a class="el" href="class__customer_8php-source.html">class_customer.php</a>. </td>
</tr>
</table>
<a class="anchor" name="o0"></a><!-- doxytag: member="Customer::$poste" ref="o0" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">Customer::$<a class="el" href="classposte.html">poste</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
poste comptable
<p>
Definition at line <a class="el" href="class__customer_8php-source.html#l00040">40</a> of file <a class="el" href="class__customer_8php-source.html">class_customer.php</a>. </td>
</tr>
</table>
<a class="anchor" name="o2"></a><!-- doxytag: member="Customer::$street" ref="o2" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">Customer::$street </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Street
<p>
Definition at line <a class="el" href="class__customer_8php-source.html#l00042">42</a> of file <a class="el" href="class__customer_8php-source.html">class_customer.php</a>. </td>
</tr>
</table>
<a class="anchor" name="o5"></a><!-- doxytag: member="Customer::$vat_number" ref="o5" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">Customer::$vat_number </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
vat number
<p>
Definition at line <a class="el" href="class__customer_8php-source.html#l00045">45</a> of file <a class="el" href="class__customer_8php-source.html">class_customer.php</a>. </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li>/home/dany/developpement/phpcompta-dev/phpcompta/include/<a class="el" href="class__customer_8php-source.html">class_customer.php</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Sat Jun 24 20:41:35 2006 for phpcompta by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4 </small></address>
</body>
</html>