337 lines
19 KiB
HTML
337 lines
19 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/include/user_form_ven.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_000006.html">include</a></div>
|
|
<h1>user_form_ven.php File Reference</h1>Functions for the ledger of sold. <a href="#_details">More...</a>
|
|
<p>
|
|
|
|
<p>
|
|
<a href="user__form__ven_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>Functions</h2></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="user__form__ven_8php.html#a0">FormVenInput</a> ($p_cn, $p_jrn, $p_periode, $p_array=null, $pview_only=true, $p_article=1)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Display the form for a sell Used to show detail, encode a new invoice or update one. <a href="#a0"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="user__form__ven_8php.html#a1">form_verify_input</a> ($p_cn, $p_jrn, $p_periode, $p_array, $p_number)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">verify if the data to insert are valid <a href="#a1"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="user__form__ven_8php.html#a2">FormVenteView</a> ($p_cn, $p_jrn, $p_periode, $p_array, $p_number, $p_doc='form', $<a class="el" href="poste_8inc_8php.html#a1">p_comment</a>='')</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Show the invoice before inserting it the database. <a href="#a2"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="user__form__ven_8php.html#a3">RecordInvoice</a> ($p_cn, $p_array, $p_user, $p_jrn)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Record an invoice in the table jrn & jrnx. <a href="#a3"></a><br></td></tr>
|
|
</table>
|
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
Functions for the ledger of sold.
|
|
<p>
|
|
|
|
<p>
|
|
Definition in file <a class="el" href="user__form__ven_8php-source.html">user_form_ven.php</a>.<hr><h2>Function Documentation</h2>
|
|
<a class="anchor" name="a1"></a><!-- doxytag: member="user_form_ven.php::form_verify_input" ref="a1" args="($p_cn, $p_jrn, $p_periode, $p_array, $p_number)" --><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">form_verify_input </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">$ </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>$ </td>
|
|
<td class="mdname" nowrap> <em>p_jrn</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>$ </td>
|
|
<td class="mdname" nowrap> <em>p_periode</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>$ </td>
|
|
<td class="mdname" nowrap> <em>p_array</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>$ </td>
|
|
<td class="mdname" nowrap> <em>p_number</em></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md"></td>
|
|
<td class="md">) </td>
|
|
<td class="md" colspan="2"></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
verify if the data to insert are valid
|
|
<p>
|
|
form_verify_input<p>
|
|
parm :<ul>
|
|
<li>p_cn database connection</li></ul>
|
|
<p>
|
|
p_jrn concerned ledger<ul>
|
|
<li>User periode</li><li>array with the post data</li><li>p_number number of items gen :<ul>
|
|
<li>return:</li></ul>
|
|
</li></ul>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="user__form__ven_8php-source.html#l00284">284</a> of file <a class="el" href="user__form__ven_8php-source.html">user_form_ven.php</a>.
|
|
<p>
|
|
References <a class="el" href="postgres_8php-source.html#l00222">CountSql()</a>, <a class="el" href="debug_8php-source.html#l00034">echo_debug()</a>, <a class="el" href="ac__common_8php-source.html#l00036">echo_error()</a>, <a class="el" href="ac__common_8php-source.html#l00097">isDate()</a>, <a class="el" href="ac__common_8php-source.html#l00076">isNumber()</a>, and <a class="el" href="client_8inc_8php-source.html#l00116">name</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a0"></a><!-- doxytag: member="user_form_ven.php::FormVenInput" ref="a0" args="($p_cn, $p_jrn, $p_periode, $p_array=null, $pview_only=true, $p_article=1)" --><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">FormVenInput </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">$ </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>$ </td>
|
|
<td class="mdname" nowrap> <em>p_jrn</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>$ </td>
|
|
<td class="mdname" nowrap> <em>p_periode</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>$ </td>
|
|
<td class="mdname" nowrap> <em>p_array</em> = <code>null</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>$ </td>
|
|
<td class="mdname" nowrap> <em>pview_only</em> = <code>true</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>$ </td>
|
|
<td class="mdname" nowrap> <em>p_article</em> = <code>1</code></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md"></td>
|
|
<td class="md">) </td>
|
|
<td class="md" colspan="2"></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Display the form for a sell Used to show detail, encode a new invoice or update one.
|
|
<p>
|
|
FormVenInput<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>p_array</em> </td><td>which can be empty<ul>
|
|
<li>the "journal"</li><li>$p_periode = periode</li><li>view_only if we cannot change it (no right or centralized op)</li><li>$p_article number of article </li></ul>
|
|
</td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>string with the form TODO Add in parameters the infos about the company for making the invoice</dd></dl>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="user__form__ven_8php-source.html#l00043">43</a> of file <a class="el" href="user__form__ven_8php-source.html">user_form_ven.php</a>.
|
|
<p>
|
|
References <a class="el" href="impress__fiche_8php-source.html#l00078">$fiche</a>, <a class="el" href="fiche__new_8php-source.html#l00136">$list</a>, <a class="el" href="modify__op_8php-source.html#l00054">$p_jrn</a>, <a class="el" href="user__action__ach_8php-source.html#l00052">$r</a>, <a class="el" href="facture_8inc_8php-source.html#l00082">$sql</a>, <a class="el" href="debug_8php-source.html#l00034">echo_debug()</a>, <a class="el" href="ac__common_8php-source.html#l00036">echo_error()</a>, <a class="el" href="balance_8php-source.html#l00033">exit</a>, <a class="el" href="postgres_8php-source.html#l00353">GetArray()</a>, <a class="el" href="preference_8php-source.html#l00122">GetPeriode()</a>, <a class="el" href="ac__common_8php-source.html#l00076">isNumber()</a>, and <a class="el" href="ac__common_8php-source.html#l00281">make_array()</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a2"></a><!-- doxytag: member="user_form_ven.php::FormVenteView" ref="a2" args="($p_cn, $p_jrn, $p_periode, $p_array, $p_number, $p_doc='form', $p_comment='')" --><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">FormVenteView </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">$ </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>$ </td>
|
|
<td class="mdname" nowrap> <em>p_jrn</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>$ </td>
|
|
<td class="mdname" nowrap> <em>p_periode</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>$ </td>
|
|
<td class="mdname" nowrap> <em>p_array</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>$ </td>
|
|
<td class="mdname" nowrap> <em>p_number</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>$ </td>
|
|
<td class="mdname" nowrap> <em>p_doc</em> = <code>'form'</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>$ </td>
|
|
<td class="mdname" nowrap> <em>p_comment</em> = <code>''</code></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md"></td>
|
|
<td class="md">) </td>
|
|
<td class="md" colspan="2"></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Show the invoice before inserting it the database.
|
|
<p>
|
|
FormVenteView ($p_cn,$p_jrn,$p_periode,$p_array,$p_number,$p_doc='html',$p_comment='')<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>p_cn</em> </td><td>database connection </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>p_jrn</em> </td><td>journal </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>p_periode</em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>array</em> </td><td>of value </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>nb</em> </td><td>of item </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>p_doc</em> </td><td>type pdf or html </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>string</dd></dl>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="user__form__ven_8php-source.html#l00425">425</a> of file <a class="el" href="user__form__ven_8php-source.html">user_form_ven.php</a>.
|
|
<p>
|
|
References <a class="el" href="print__invoice_8php-source.html#l00078">$a_vat</a>, <a class="el" href="readme_8php-source.html#l00150">$data</a>, <a class="el" href="show__document__modele_8php-source.html#l00060">$file</a>, <a class="el" href="user__action__ach_8php-source.html#l00052">$r</a>, <a class="el" href="postgres_8php-source.html#l00222">CountSql()</a>, <a class="el" href="ac__common_8php-source.html#l00036">echo_error()</a>, <a class="el" href="balance_8php-source.html#l00033">exit</a>, <a class="el" href="fiche__inc_8php-source.html#l01471">getFicheAttribut()</a>, <a class="el" href="fiche__inc_8php-source.html#l00985">getFicheName()</a>, <a class="el" href="user__common_8php-source.html#l00039">GetTvaRate()</a>, <a class="el" href="ac__common_8php-source.html#l00076">isNumber()</a>, <a class="el" href="ac__common_8php-source.html#l00281">make_array()</a>, <a class="el" href="pref_8inc_8php-source.html#l00045">METHOD</a>, <a class="el" href="client_8inc_8php-source.html#l00116">name</a>, and <a class="el" href="client_8inc_8php-source.html#l00117">value</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a3"></a><!-- doxytag: member="user_form_ven.php::RecordInvoice" ref="a3" args="($p_cn, $p_array, $p_user, $p_jrn)" --><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">RecordInvoice </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">$ </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>$ </td>
|
|
<td class="mdname" nowrap> <em>p_array</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>$ </td>
|
|
<td class="mdname" nowrap> <em>p_user</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>$ </td>
|
|
<td class="mdname" nowrap> <em>p_jrn</em></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md"></td>
|
|
<td class="md">) </td>
|
|
<td class="md" colspan="2"></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Record an invoice in the table jrn & jrnx.
|
|
<p>
|
|
RecordInvoice($p_cn,$p_array,$p_user,$p_jrn)<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>$p_cn</em> </td><td>Database connection </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>$p_array</em> </td><td>array contains all the invoice data<ul>
|
|
<li>e_date => e : 01.01.2003</li><li>e_client => e : 3</li><li>nb_item => e : 3</li><li>e_march0 => e : 6</li><li>e_quant0 => e : 0</li><li>e_march0_sell=>e:1</li><li>e_march1 => e : 6</li><li>e_quant1 => e : 2</li><li>e_march1_sell=>e:1</li><li>e_march2 => e : 7</li><li>e_quant2 => e : 3</li><li>e_march2_sell=>e:1 * V : view_invoice => e : Voir cette facture * V : record_invoice => e : Sauver </li></ul>
|
|
</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>$p_periode</em> </td><td>periode </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>$p_jrn</em> </td><td>current folder (journal)</td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>true on success</dd></dl>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="user__form__ven_8php-source.html#l00630">630</a> of file <a class="el" href="user__form__ven_8php-source.html">user_form_ven.php</a>.
|
|
<p>
|
|
References <a class="el" href="print__invoice_8php-source.html#l00078">$a_vat</a>, <a class="el" href="print__invoice_8php-source.html#l00051">$amount</a>, <a class="el" href="user__action__ven_8php-source.html#l00118">$comment</a>, <a class="el" href="impress__fiche_8php-source.html#l00079">$e</a>, <a class="el" href="balance_8php-source.html#l00113">$i</a>, <a class="el" href="send__poste__pdf_8php-source.html#l00044">$poste</a>, <a class="el" href="user__action__ach_8php-source.html#l00052">$r</a>, <a class="el" href="eub__be_8inc_8php-source.html#l00074">$Res</a>, <a class="el" href="annulation_8php-source.html#l00136">$seq</a>, <a class="el" href="print__invoice_8php-source.html#l00079">$sum_vat</a>, <a class="el" href="impress__rapport_8php-source.html#l00058">$t</a>, <a class="el" href="postgres_8php-source.html#l00263">Commit()</a>, <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="debug_8php-source.html#l00034">echo_debug()</a>, <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>, <a class="el" href="balance_8php-source.html#l00033">exit</a>, <a class="el" href="ac__common_8php-source.html#l00207">FormatString()</a>, <a class="el" href="user__common_8php-source.html#l00210">GetTvaPoste()</a>, <a class="el" href="user__common_8php-source.html#l00287">InsertJrn()</a>, <a class="el" href="user__common_8php-source.html#l00243">InsertJrnx()</a>, <a class="el" href="user__common_8php-source.html#l00595">InsertStockGoods()</a>, <a class="el" href="ac__common_8php-source.html#l00076">isNumber()</a>, <a class="el" href="postgres_8php-source.html#l00251">NextSequence()</a>, <a class="el" href="postgres_8php-source.html#l00266">Rollback()</a>, <a class="el" href="postgres_8php-source.html#l00368">save_upload_document()</a>, <a class="el" href="jrn_8php-source.html#l00949">SetInternalCode()</a>, and <a class="el" href="postgres_8php-source.html#l00257">StartSql()</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 23 00:12:47 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>
|