412 lines
18 KiB
HTML
412 lines
18 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: /home/dany/developpement/phpcompta-dev/phpcompta/html/print_invoice.php File 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 Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a></div>
|
|
<div class="nav">
|
|
<a class="el" href="dir_000000.html">developpement</a> » <a class="el" href="dir_000001.html">phpcompta-dev</a> » <a class="el" href="dir_000002.html">phpcompta</a> » <a class="el" href="dir_000003.html">html</a></div>
|
|
<h1>print_invoice.php File Reference</h1>Print invoice. <a href="#_details">More...</a>
|
|
<p>
|
|
|
|
<p>
|
|
<a href="print__invoice_8php-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><td></td></tr>
|
|
<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="print__invoice_8php.html#a0">$cn</a> = DbConnect($g_dossier)</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="print__invoice_8php.html#a1">$amount</a> = 0.0</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="print__invoice_8php.html#a2">$tva</a> = GetTvaRate($cn,GetFicheAttribut($cn,$a_good[$i],<a class="el" href="constant_8php.html#a52">ATTR_DEF_TVA</a>))</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="print__invoice_8php.html#a3">$a_good_detail</a> []</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="print__invoice_8php.html#a4">$a_vat</a> = ComputeVat($cn, $a_good,$a_quant,$a_price,$a_vat)</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="print__invoice_8php.html#a5">$sum_vat</a> = 0.0</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="print__invoice_8php.html#a6">$ret</a> = ""</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="print__invoice_8php.html#a7">$pdf</a> = & new <a class="el" href="classCezpdf.html">Cezpdf</a>('a4')</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="print__invoice_8php.html#a8">$info</a> [0] = array('info'=>GetFicheAttribut($cn,$e_client,<a class="el" href="constant_8php.html#a49">ATTR_DEF_NAME</a>))</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="print__invoice_8php.html#a9">$sum_detail</a> [0] = array ('<a class="el" href="ecrit__ouv_8php.html#a5">label</a>'=>'Total HTVA ','amount'=>$amount)</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="print__invoice_8php.html#a10">$index</a> = 1</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="print__invoice_8php.html#a11">$a_tva_sum</a> = GetTvaRate($cn,$element)</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="print__invoice_8php.html#a12">$total</a> = $amount+$sum_vat</td></tr>
|
|
|
|
</table>
|
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
Print invoice.
|
|
<p>
|
|
<dl compact><dt><b><a class="el" href="todo.html#_todo000021">Todo:</a></b></dt><dd>Obsolete ?</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>received</em> </td><td>parameters </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>e_date</em> </td><td>element 01.01.2003 </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>e_client</em> </td><td>element 3 </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>nb_item</em> </td><td>element 2 </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>e_march0</em> </td><td>element 11 </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>e_quant0</em> </td><td>element 1 </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>e_march1</em> </td><td>element 6 </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>e_quant1</em> </td><td>element 2 </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>e_comment</em> </td><td>invoice number</td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
<p>
|
|
Definition in file <a class="el" href="print__invoice_8php-source.html">print_invoice.php</a>.<hr><h2>Variable Documentation</h2>
|
|
<a class="anchor" name="a3"></a><!-- doxytag: member="print_invoice.php::$a_good_detail" ref="a3" 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">$a_good_detail[] </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
<b>Initial value:</b><div class="fragment"><pre class="fragment">array('<span class="keywordtype">id</span>'=>$i+1,
|
|
'<a class="code" href="client_8inc_8php.html#a5">name</a>'=>GetFicheAttribut($cn,$a_good[$i],<a class="code" href="constant_8php.html#a49">ATTR_DEF_NAME</a>),
|
|
'quantity'=>$a_quant[$i],
|
|
'Unit' =>$a_price[$i],
|
|
'Total HTVA' => $a_amount[$i],
|
|
'tva'=>$tva['tva_label'],
|
|
'Total' => $a_amount[$i]+$a_amount[$i]*$a_quant[$i]*$tva['tva_rate'])
|
|
</pre></div>
|
|
<p>
|
|
Definition at line <a class="el" href="print__invoice_8php-source.html#l00069">69</a> of file <a class="el" href="print__invoice_8php-source.html">print_invoice.php</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a11"></a><!-- doxytag: member="print_invoice.php::$a_tva_sum" ref="a11" 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">$a_tva_sum = GetTvaRate($cn,$element) </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="print__invoice_8php-source.html#l00123">123</a> of file <a class="el" href="print__invoice_8php-source.html">print_invoice.php</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a4"></a><!-- doxytag: member="print_invoice.php::$a_vat" ref="a4" 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">$a_vat = ComputeVat($cn, $a_good,$a_quant,$a_price,$a_vat) </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="print__invoice_8php-source.html#l00078">78</a> of file <a class="el" href="print__invoice_8php-source.html">print_invoice.php</a>.
|
|
<p>
|
|
Referenced by <a class="el" href="user__common_8php-source.html#l00068">ComputeTotalVat()</a>, <a class="el" href="user__common_8php-source.html#l00171">ComputeVat()</a>, <a class="el" href="user__form__ach_8php-source.html#l00453">FormAchView()</a>, <a class="el" href="user__form__ven_8php-source.html#l00425">FormVenteView()</a>, <a class="el" href="user__form__ven_8php-source.html#l00630">RecordInvoice()</a>, and <a class="el" href="user__form__ach_8php-source.html#l00627">RecordSell()</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a1"></a><!-- doxytag: member="print_invoice.php::$amount" ref="a1" 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">$amount = 0.0 </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="print__invoice_8php-source.html#l00051">51</a> of file <a class="el" href="print__invoice_8php-source.html">print_invoice.php</a>.
|
|
<p>
|
|
Referenced by <a class="el" href="user__form__fin_8php-source.html#l00349">RecordFin()</a>, <a class="el" href="user__form__ven_8php-source.html#l00630">RecordInvoice()</a>, <a class="el" href="user__form__ods_8php-source.html#l00247">RecordODS()</a>, <a class="el" href="user__form__ach_8php-source.html#l00627">RecordSell()</a>, and <a class="el" href="class__customer_8php-source.html#l00084">Customer::VatListing()</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a0"></a><!-- doxytag: member="print_invoice.php::$cn" ref="a0" 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">$cn = DbConnect($g_dossier) </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="print__invoice_8php-source.html#l00045">45</a> of file <a class="el" href="print__invoice_8php-source.html">print_invoice.php</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a10"></a><!-- doxytag: member="print_invoice.php::$index" ref="a10" 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">$index = 1 </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="print__invoice_8php-source.html#l00120">120</a> of file <a class="el" href="print__invoice_8php-source.html">print_invoice.php</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a8"></a><!-- doxytag: member="print_invoice.php::$info" ref="a8" args="[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">$info[3] = array('info'=>GetFicheAttribut($cn,$e_client,<a class="el" href="constant_8php.html#a49">ATTR_DEF_NAME</a>)) </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="print__invoice_8php-source.html#l00094">94</a> of file <a class="el" href="print__invoice_8php-source.html">print_invoice.php</a>.
|
|
<p>
|
|
Referenced by <a class="el" href="class_8pdf_8php-source.html#l01173">Cpdf::addInternalLink()</a>, <a class="el" href="class_8pdf_8php-source.html#l01164">Cpdf::addLink()</a>, <a class="el" href="class_8ezpdf_8php-source.html#l01473">Cezpdf::alink()</a>, <a class="el" href="readme_8php-source.html#l00043">Creport::dots()</a>, <a class="el" href="class_8ezpdf_8php-source.html#l00377">Cezpdf::ezPRVTaddPageNumbers()</a>, <a class="el" href="readme_8php-source.html#l00032">Creport::rf()</a>, and <a class="el" href="class_8ezpdf_8php-source.html#l01518">Cezpdf::uline()</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a7"></a><!-- doxytag: member="print_invoice.php::$pdf" ref="a7" 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">$pdf = & new <a class="el" href="classCezpdf.html">Cezpdf</a>('a4') </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="print__invoice_8php-source.html#l00087">87</a> of file <a class="el" href="print__invoice_8php-source.html">print_invoice.php</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a6"></a><!-- doxytag: member="print_invoice.php::$ret" ref="a6" 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">$ret = "" </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="print__invoice_8php-source.html#l00086">86</a> of file <a class="el" href="print__invoice_8php-source.html">print_invoice.php</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a9"></a><!-- doxytag: member="print_invoice.php::$sum_detail" ref="a9" args="[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">$sum_detail[++$index] = array ('<a class="el" href="ecrit__ouv_8php.html#a5">label</a>'=>'Total HTVA ','amount'=>$amount) </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="print__invoice_8php-source.html#l00119">119</a> of file <a class="el" href="print__invoice_8php-source.html">print_invoice.php</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a5"></a><!-- doxytag: member="print_invoice.php::$sum_vat" ref="a5" 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">$sum_vat = 0.0 </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="print__invoice_8php-source.html#l00079">79</a> of file <a class="el" href="print__invoice_8php-source.html">print_invoice.php</a>.
|
|
<p>
|
|
Referenced by <a class="el" href="user__form__ven_8php-source.html#l00630">RecordInvoice()</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a12"></a><!-- doxytag: member="print_invoice.php::$total" ref="a12" 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">$total = $amount+$sum_vat </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="print__invoice_8php-source.html#l00126">126</a> of file <a class="el" href="print__invoice_8php-source.html">print_invoice.php</a>.
|
|
<p>
|
|
Referenced by <a class="el" href="class_8ezpdf_8php-source.html#l00377">Cezpdf::ezPRVTaddPageNumbers()</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a2"></a><!-- doxytag: member="print_invoice.php::$tva" ref="a2" 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">$tva = GetTvaRate($cn,GetFicheAttribut($cn,$a_good[$i],<a class="el" href="constant_8php.html#a52">ATTR_DEF_TVA</a>)) </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="print__invoice_8php-source.html#l00067">67</a> of file <a class="el" href="print__invoice_8php-source.html">print_invoice.php</a>.
|
|
<p>
|
|
Referenced by <a class="el" href="class__document_8php-source.html#l00363">Document::Replace()</a>, and <a class="el" href="class__customer_8php-source.html#l00084">Customer::VatListing()</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 23 00:12:46 2006 for phpcompta by
|
|
<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>
|