1183 lines
54 KiB
HTML
1183 lines
54 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_common.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_common.php File Reference</h1>Common functions. <a href="#_details">More...</a>
|
|
<p>
|
|
|
|
<p>
|
|
<a href="user__common_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__common_8php.html#a0">GetTvaRate</a> ($p_cn, $p_tva_id)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the rate of the p_tva_id. <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__common_8php.html#a1">ComputeTotalVat</a> ($p_cn, $a_fiche, $a_quant, $a_price, $ap_vat, $all=false)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Compute the vat, the <a class="el" href="facture_8inc_8php.html#a18">fiche.f_id</a> are in a_fiche the quantity in a_quant. <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__common_8php.html#a2">ComputeVat</a> ($p_cn, $p_fiche, $p_quant, $p_price, $p_vat)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Compute the vat for only one elt, the <a class="el" href="facture_8inc_8php.html#a18">fiche.f_id</a> are in p_fiche the quantity in p_quant. <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__common_8php.html#a3">GetTvaPoste</a> ($p_cn, $p_tva_id, $p_cred)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the account of tva_rate.tva_poste return the credit or the debit account. <a href="#a3"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="user__common_8php.html#a4">InsertJrnx</a> ($p_cn, $p_type, $p_user, $p_jrn, $p_poste, $p_date, $p_amount, $p_grpt, $p_periode, $p_qcode="")</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Insert into the table Jrn. <a href="#a4"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="user__common_8php.html#a5">InsertJrn</a> ($p_cn, $p_date, $p_echeance, $p_jrn, $<a class="el" href="poste_8inc_8php.html#a1">p_comment</a>, $p_amount, $p_grpt, $p_periode)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Insert into the table Jrnx. <a href="#a5"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="user__common_8php.html#a6">ListJrn</a> ($p_cn, $p_jrn, $p_where="", $p_array=null, $<a class="el" href="poste_8inc_8php.html#a2">p_value</a>=0, $p_paid=0)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">show all the lines of the asked jrn <a href="#a6"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="user__common_8php.html#a7">InsertStockGoods</a> ($p_cn, $p_j_id, $p_good, $p_quant, $p_type)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Insert data into stock_goods,. <a href="#a7"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="user__common_8php.html#a8">withStock</a> ($p_cn, $p_f_id)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">return true if we manage stock for it value is stored in attr_value <a href="#a8"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="user__common_8php.html#a9">VerifyOperationDate</a> ($p_cn, $p_periode, $p_date)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Verify if the date is a valid date the date is in the default period the period is not closed. <a href="#a9"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="user__common_8php.html#a10">InsertRapt</a> ($p_cn, $jr_id, $jr_id2)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Insert into jrn_rapt the concerned operations. <a href="#a10"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="user__common_8php.html#a11">DeleteRapt</a> ($p_cn, $jr_id, $jr_id2)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Insert into jrn_rapt the concerned operations. <a href="#a11"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="user__common_8php.html#a12">GetConcerned</a> ($p_cn, $jr_id)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return an array of the concerned operation. <a href="#a12"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="user__common_8php.html#a13">GetGrpt</a> ($p_cn, $p_jr_id)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the jr_grpt_id from jrn where jr_id = $p_jr_id. <a href="#a13"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="user__common_8php.html#a14">UpdateComment</a> ($p_cn, $p_jr_id, $<a class="el" href="poste_8inc_8php.html#a1">p_comment</a>)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Update comment in jrn. <a href="#a14"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="user__common_8php.html#a15">isValid</a> ($p_cn, $p_grpt_id)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">test if a jrn op is valid <a href="#a15"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="user__common_8php.html#a16">jrn_navigation_bar</a> ($p_offset, $p_line, $p_size=0, $p_page=1)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a navigation_bar (pagesize). <a href="#a16"></a><br></td></tr>
|
|
</table>
|
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
Common functions.
|
|
<p>
|
|
|
|
<p>
|
|
Definition in file <a class="el" href="user__common_8php-source.html">user_common.php</a>.<hr><h2>Function Documentation</h2>
|
|
<a class="anchor" name="a1"></a><!-- doxytag: member="user_common.php::ComputeTotalVat" ref="a1" args="($p_cn, $a_fiche, $a_quant, $a_price, $ap_vat, $all=false)" --><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">ComputeTotalVat </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>a_fiche</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>a_quant</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>a_price</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>ap_vat</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>all</em> = <code>false</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>
|
|
Compute the vat, the <a class="el" href="facture_8inc_8php.html#a18">fiche.f_id</a> are in a_fiche the quantity in a_quant.
|
|
<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>$a_fiche</em> </td><td>fiche id array </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>$a_quantity</em> </td><td>array </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>$a_price</em> </td><td>array </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>$ap_vat</em> </td><td>Array of tva id </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>$all</em> </td><td>= false if we reduce VAT </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>: array a[tva_id] = amount vat</dd></dl>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="user__common_8php-source.html#l00068">68</a> of file <a class="el" href="user__common_8php-source.html">user_common.php</a>.
|
|
<p>
|
|
References <a class="el" href="balance_8php-source.html#l00108">$a</a>, <a class="el" href="print__invoice_8php-source.html#l00078">$a_vat</a>, <a class="el" href="setup_8php-source.html#l00255">$flag</a>, <a class="el" href="fiche__def_8inc_8php-source.html#l00062">$idx</a>, <a class="el" href="user__action__ach_8php-source.html#l00052">$r</a>, <a class="el" href="tva_8inc_8php-source.html#l00036">$tva_id</a>, <a class="el" href="debug_8php-source.html#l00034">echo_debug()</a>, <a class="el" href="user__common_8php-source.html#l00039">GetTvaRate()</a>, and <a class="el" href="ac__common_8php-source.html#l00076">isNumber()</a>.
|
|
<p>
|
|
Referenced by <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="a2"></a><!-- doxytag: member="user_common.php::ComputeVat" ref="a2" args="($p_cn, $p_fiche, $p_quant, $p_price, $p_vat)" --><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">ComputeVat </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_fiche</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_quant</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_price</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_vat</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>
|
|
Compute the vat for only one elt, the <a class="el" href="facture_8inc_8php.html#a18">fiche.f_id</a> are in p_fiche the quantity in p_quant.
|
|
<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_fiche</em> </td><td>fiche id int </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>$p_quantity</em> </td><td>int </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>$p_price</em> </td><td>float </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>$p_tva_id</em> </td><td><ul>
|
|
<li></li></ul>
|
|
</td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>the amount of vat</dd></dl>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="user__common_8php-source.html#l00171">171</a> of file <a class="el" href="user__common_8php-source.html">user_common.php</a>.
|
|
<p>
|
|
References <a class="el" href="balance_8php-source.html#l00108">$a</a>, <a class="el" href="print__invoice_8php-source.html#l00078">$a_vat</a>, <a class="el" href="tva_8inc_8php-source.html#l00036">$tva_id</a>, <a class="el" href="debug_8php-source.html#l00034">echo_debug()</a>, <a class="el" href="user__common_8php-source.html#l00039">GetTvaRate()</a>, and <a class="el" href="ac__common_8php-source.html#l00076">isNumber()</a>.
|
|
<p>
|
|
Referenced by <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="a11"></a><!-- doxytag: member="user_common.php::DeleteRapt" ref="a11" args="($p_cn, $jr_id, $jr_id2)" --><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">DeleteRapt </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>jr_id</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>jr_id2</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>
|
|
Insert into jrn_rapt the concerned operations.
|
|
<p>
|
|
DeleteRapt($p_cn,$jr_id,$jr_id2)<p>
|
|
parm :<ul>
|
|
<li>p_cn database connection</li></ul>
|
|
<p>
|
|
jr_id (jrn.jr_id) => jrn_rapt.jr_id<ul>
|
|
<li>jr_id2 (jrn.jr_id) => jrn_rapt.jra_concerned gen :<ul>
|
|
<li>none return:</li></ul>
|
|
</li><li>none</li></ul>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="user__common_8php-source.html#l00730">730</a> of file <a class="el" href="user__common_8php-source.html">user_common.php</a>.
|
|
<p>
|
|
References <a class="el" href="eub__be_8inc_8php-source.html#l00074">$Res</a>, <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="postgres_8php-source.html#l00099">ExecSql()</a>, and <a class="el" href="ac__common_8php-source.html#l00076">isNumber()</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a12"></a><!-- doxytag: member="user_common.php::GetConcerned" ref="a12" args="($p_cn, $jr_id)" --><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">GetConcerned </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>jr_id</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>
|
|
Return an array of the concerned operation.
|
|
<p>
|
|
GetConcerned (p_cn ,jr_id)<p>
|
|
parm :<ul>
|
|
<li>database connection</li></ul>
|
|
<p>
|
|
jrn.jr_id gen :<ul>
|
|
<li>none return:</li></ul>
|
|
<p>
|
|
array if something is found
|
|
<p>
|
|
Definition at line <a class="el" href="user__common_8php-source.html#l00761">761</a> of file <a class="el" href="user__common_8php-source.html">user_common.php</a>.
|
|
<p>
|
|
References <a class="el" href="balance_8php-source.html#l00113">$i</a>, <a class="el" href="facture_8inc_8php-source.html#l00138">$l</a>, <a class="el" href="fiche__new_8php-source.html#l00131">$n</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="facture_8inc_8php-source.html#l00082">$sql</a>, and <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>.
|
|
<p>
|
|
Referenced by <a class="el" href="user__common_8php-source.html#l00321">ListJrn()</a>, and <a class="el" href="jrn_8php-source.html#l00282">UpdateJrn()</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a13"></a><!-- doxytag: member="user_common.php::GetGrpt" ref="a13" args="($p_cn, $p_jr_id)" --><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">GetGrpt </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_jr_id</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>
|
|
Return the jr_grpt_id from jrn where jr_id = $p_jr_id.
|
|
<p>
|
|
GetGrpt($p_cn,$p_jr_id)<p>
|
|
parm :<ul>
|
|
<li>$p_jr_id jrn.jr_id</li></ul>
|
|
<p>
|
|
$p_cn database connection gen :<ul>
|
|
<li>none return:</li></ul>
|
|
<p>
|
|
return the jrn.jr_grpt_id or null
|
|
<p>
|
|
Definition at line <a class="el" href="user__common_8php-source.html#l00792">792</a> of file <a class="el" href="user__common_8php-source.html">user_common.php</a>.
|
|
<p>
|
|
References <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>, and <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>.
|
|
<p>
|
|
Referenced by <a class="el" href="jrn_8php-source.html#l00282">UpdateJrn()</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a3"></a><!-- doxytag: member="user_common.php::GetTvaPoste" ref="a3" args="($p_cn, $p_tva_id, $p_cred)" --><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">GetTvaPoste </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_tva_id</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_cred</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>
|
|
Get the account of tva_rate.tva_poste return the credit or the debit account.
|
|
<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>connection </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>$p_tva_id</em> </td><td>tva_rate.tva_id </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>$p_cred</em> </td><td>type ( d or credit)</td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>return the credit or the debit account null if error</dd></dl>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="user__common_8php-source.html#l00210">210</a> of file <a class="el" href="user__common_8php-source.html">user_common.php</a>.
|
|
<p>
|
|
References <a class="el" href="balance_8php-source.html#l00108">$a</a>, <a class="el" href="eub__be_8inc_8php-source.html#l00074">$Res</a>, <a class="el" href="ac__common_8php-source.html#l00036">echo_error()</a>, and <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>.
|
|
<p>
|
|
Referenced by <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="a0"></a><!-- doxytag: member="user_common.php::GetTvaRate" ref="a0" args="($p_cn, $p_tva_id)" --><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">GetTvaRate </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_tva_id</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>
|
|
Return the rate of the p_tva_id.
|
|
<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_tva_id</em> </td><td>tva.tva_id</td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>an array containing the rate and the label the tva rate or null if a problem occured</dd></dl>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="user__common_8php-source.html#l00039">39</a> of file <a class="el" href="user__common_8php-source.html">user_common.php</a>.
|
|
<p>
|
|
References <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>, and <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</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>, and <a class="el" href="class__document_8php-source.html#l00363">Document::Replace()</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a5"></a><!-- doxytag: member="user_common.php::InsertJrn" ref="a5" args="($p_cn, $p_date, $p_echeance, $p_jrn, $p_comment, $p_amount, $p_grpt, $p_periode)" --><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">InsertJrn </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_date</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_echeance</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_comment</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_amount</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_grpt</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"></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>
|
|
Insert into the table Jrnx.
|
|
<p>
|
|
InsertJrn($p_cn,$p_date,$p_jrn,$p_comment,$p_amount,$p_grpt,$p_periode<p>
|
|
parm :<ul>
|
|
<li>$p_cn database connection</li></ul>
|
|
<p>
|
|
$p_date date<ul>
|
|
<li>$p_jrn the current 'journal' (folder)</li><li>$p_poste the account</li><li>$p_amount amount to insert</li><li>$p_periode the concerned periode</li><li>$p_comment comment gen :<ul>
|
|
<li>none return:</li></ul>
|
|
</li></ul>
|
|
<p>
|
|
nothing
|
|
<p>
|
|
Definition at line <a class="el" href="user__common_8php-source.html#l00287">287</a> of file <a class="el" href="user__common_8php-source.html">user_common.php</a>.
|
|
<p>
|
|
References <a class="el" href="eub__be_8inc_8php-source.html#l00074">$Res</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="postgres_8php-source.html#l00099">ExecSql()</a>, <a class="el" href="ac__common_8php-source.html#l00207">FormatString()</a>, <a class="el" href="postgres_8php-source.html#l00242">GetSequence()</a>, and <a class="el" href="poste_8inc_8php-source.html#l00033">p_comment</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__ach_8php-source.html#l00627">RecordSell()</a>, and <a class="el" href="import__inc_8php-source.html#l00090">TransferCSV()</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a4"></a><!-- doxytag: member="user_common.php::InsertJrnx" ref="a4" args="($p_cn, $p_type, $p_user, $p_jrn, $p_poste, $p_date, $p_amount, $p_grpt, $p_periode, $p_qcode="")" --><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">InsertJrnx </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_type</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" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>$ </td>
|
|
<td class="mdname" nowrap> <em>p_poste</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_date</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_amount</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_grpt</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_qcode</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>
|
|
Insert into the table Jrn.
|
|
<p>
|
|
InsertJrnx($p_cn,$p_type,$p_user,$p_jrn,$p_poste,$p_date,$p_amount,$p_grpt,$p_periode<p>
|
|
parm :<ul>
|
|
<li>$p_cn database connection</li></ul>
|
|
<p>
|
|
$p_type debit or credit<ul>
|
|
<li>$p_user the current user</li><li>$p_jrn the current 'journal' (folder)</li><li>$p_poste the account</li><li>$p_date</li><li>$p_amount amount to insert</li><li>$p_periode the concerned periode gen :<ul>
|
|
<li>none return:</li></ul>
|
|
</li></ul>
|
|
<p>
|
|
nothing
|
|
<p>
|
|
Definition at line <a class="el" href="user__common_8php-source.html#l00243">243</a> of file <a class="el" href="user__common_8php-source.html">user_common.php</a>.
|
|
<p>
|
|
References <a class="el" href="eub__be_8inc_8php-source.html#l00074">$Res</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="postgres_8php-source.html#l00099">ExecSql()</a>, and <a class="el" href="postgres_8php-source.html#l00242">GetSequence()</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="import__inc_8php-source.html#l00090">TransferCSV()</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a10"></a><!-- doxytag: member="user_common.php::InsertRapt" ref="a10" args="($p_cn, $jr_id, $jr_id2)" --><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">InsertRapt </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>jr_id</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>jr_id2</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>
|
|
Insert into jrn_rapt the concerned operations.
|
|
<p>
|
|
InsertRapt($p_cn,$jr_id,$jr_id2)<p>
|
|
parm :<ul>
|
|
<li>p_cn database connection</li></ul>
|
|
<p>
|
|
jr_id (jrn.jr_id) => jrn_rapt.jr_id<ul>
|
|
<li>jr_id2 (jrn.jr_id) => jrn_rapt.jra_concerned gen :<ul>
|
|
<li>none return:</li></ul>
|
|
</li><li>none</li></ul>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="user__common_8php-source.html#l00699">699</a> of file <a class="el" href="user__common_8php-source.html">user_common.php</a>.
|
|
<p>
|
|
References <a class="el" href="eub__be_8inc_8php-source.html#l00074">$Res</a>, <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="postgres_8php-source.html#l00099">ExecSql()</a>, and <a class="el" href="ac__common_8php-source.html#l00076">isNumber()</a>.
|
|
<p>
|
|
Referenced by <a class="el" href="user__form__fin_8php-source.html#l00349">RecordFin()</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a7"></a><!-- doxytag: member="user_common.php::InsertStockGoods" ref="a7" args="($p_cn, $p_j_id, $p_good, $p_quant, $p_type)" --><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">InsertStockGoods </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_j_id</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_good</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_quant</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_type</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>
|
|
Insert data into stock_goods,.
|
|
<p>
|
|
InsertStockGoods($p_cn,$j_id,$a_good[$i],$a_quant[$i],'c');<p>
|
|
parm :<ul>
|
|
<li>$p_cn database connection</li></ul>
|
|
<p>
|
|
$p_j_id the j_id<ul>
|
|
<li>$p_goods the goods</li><li>$p_quant quantity</li><li>$p_type c for credit or d for debit gen :<ul>
|
|
<li>none return: none TODO ADD A DATE !!!</li></ul>
|
|
</li></ul>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="user__common_8php-source.html#l00595">595</a> of file <a class="el" href="user__common_8php-source.html">user_common.php</a>.
|
|
<p>
|
|
References <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="facture_8inc_8php-source.html#l00082">$sql</a>, <a class="el" href="debug_8php-source.html#l00034">echo_debug()</a>, <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>, and <a class="el" href="facture_8inc_8php-source.html#l00196">f_id</a>.
|
|
<p>
|
|
Referenced by <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="a15"></a><!-- doxytag: member="user_common.php::isValid" ref="a15" args="($p_cn, $p_grpt_id)" --><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">isValid </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_grpt_id</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>
|
|
test if a jrn op is valid
|
|
<p>
|
|
isValid ($p_cn, $p_grpt_id<p>
|
|
parm :<ul>
|
|
<li>db connection</li></ul>
|
|
<p>
|
|
p_grpt_id gen :<ul>
|
|
<li>none return: 1 is valid 0 is not valid</li></ul>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="user__common_8php-source.html#l00834">834</a> of file <a class="el" href="user__common_8php-source.html">user_common.php</a>.
|
|
<p>
|
|
References <a class="el" href="balance_8php-source.html#l00108">$a</a>, <a class="el" href="eub__be_8inc_8php-source.html#l00074">$Res</a>, <a class="el" href="ac__common_8php-source.html#l00036">echo_error()</a>, and <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>.
|
|
<p>
|
|
Referenced by <a class="el" href="class__user_8php-source.html#l00040">cl_user::cl_user()</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a16"></a><!-- doxytag: member="user_common.php::jrn_navigation_bar" ref="a16" args="($p_offset, $p_line, $p_size=0, $p_page=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">jrn_navigation_bar </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">$ </td>
|
|
<td class="mdname" nowrap> <em>p_offset</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_line</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_size</em> = <code>0</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_page</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>
|
|
Create a navigation_bar (pagesize).
|
|
<p>
|
|
jrn_navigation_bar<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_offset</em> </td><td>first record number<ul>
|
|
<li>p_line total of returned row</li><li>p_size current g_pagesize</li><li>p_page number of the page </li></ul>
|
|
</td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>string</dd></dl>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="user__common_8php-source.html#l00861">861</a> of file <a class="el" href="user__common_8php-source.html">user_common.php</a>.
|
|
<p>
|
|
References <a class="el" href="commercial_8php-source.html#l00035">$_SESSION</a>, <a class="el" href="impress__fiche_8php-source.html#l00079">$e</a>, <a class="el" href="facture_8inc_8php-source.html#l00136">$offset</a>, <a class="el" href="user__action__ach_8php-source.html#l00052">$r</a>, <a class="el" href="facture_8inc_8php-source.html#l00134">$step</a>, <a class="el" href="client_8inc_8php-source.html#l00111">$url</a>, <a class="el" href="client_8inc_8php-source.html#l00116">name</a>, <a class="el" href="tva_8inc_8php-source.html#l00212">size</a>, and <a class="el" href="client_8inc_8php-source.html#l00117">value</a>.
|
|
<p>
|
|
Referenced by <a class="el" href="class__action_8php-source.html#l00329">action::myList()</a>, <a class="el" href="class__customer_8php-source.html#l00195">Customer::Summary()</a>, <a class="el" href="class__contact_8php-source.html#l00050">contact::Summary()</a>, and <a class="el" href="fiche__inc_8php-source.html#l00394">ViewFiche()</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a6"></a><!-- doxytag: member="user_common.php::ListJrn" ref="a6" args="($p_cn, $p_jrn, $p_where="", $p_array=null, $p_value=0, $p_paid=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">ListJrn </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_where</em> = <code>""</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_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>p_value</em> = <code>0</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_paid</em> = <code>0</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 all the lines of the asked jrn
|
|
<p>
|
|
ListJrn($p_cn,$p_jrn,$p_wherel)<p>
|
|
parm :<ul>
|
|
<li>$p_cn database connection</li></ul>
|
|
<p>
|
|
$p_jrn jrn_id jrn.jrn_def_id<ul>
|
|
<li>$p_where the sql query where clause</li><li>$p_array param. for a search</li><li>$p_value offset</li><li>$p_paid value : 0 nothing is shown, 1 check box; 2 check_box disable return: array (entryCount,generatedHTML);</li></ul>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="user__common_8php-source.html#l00321">321</a> of file <a class="el" href="user__common_8php-source.html">user_common.php</a>.
|
|
<p>
|
|
References <a class="el" href="commercial_8php-source.html#l00035">$_SESSION</a>, <a class="el" href="balance_8php-source.html#l00108">$a</a>, <a class="el" href="admin__repo_8php-source.html#l00163">$count</a>, <a class="el" href="poste_8inc_8php-source.html#l00069">$h</a>, <a class="el" href="jrn__pdf_8php-source.html#l00071">$limit</a>, <a class="el" href="setup_8php-source.html#l00374">$Max</a>, <a class="el" href="facture_8inc_8php-source.html#l00136">$offset</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="eub__be_8inc_8php-source.html#l00074">$Res</a>, <a class="el" href="cbc__be_8inc_8php-source.html#l00028">$row</a>, <a class="el" href="facture_8inc_8php-source.html#l00082">$sql</a>, <a class="el" href="balance_8php-source.html#l00119">$tr</a>, <a class="el" href="user__action__ach_8php-source.html#l00164">$User</a>, <a class="el" href="balance_8php-source.html#l00067">$w</a>, <a class="el" href="postgres_8php-source.html#l00222">CountSql()</a>, <a class="el" href="postgres_8php-source.html#l00072">DbConnect()</a>, <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>, <a class="el" href="ac__common_8php-source.html#l00207">FormatString()</a>, <a class="el" href="user__common_8php-source.html#l00761">GetConcerned()</a>, <a class="el" href="jrn_8php-source.html#l00793">GetInternal()</a>, <a class="el" href="jrn_8php-source.html#l00549">GetJrnProp()</a>, <a class="el" href="ac__common_8php-source.html#l00097">isDate()</a>, and <a class="el" href="balance_8php-source.html#l00068">table</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a14"></a><!-- doxytag: member="user_common.php::UpdateComment" ref="a14" args="($p_cn, $p_jr_id, $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">UpdateComment </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_jr_id</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_comment</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>
|
|
Update comment in jrn.
|
|
<p>
|
|
UpdateComment ($p_cn,$p_jr_id,$p_comment)<p>
|
|
parm :<ul>
|
|
<li>database conn.<ul>
|
|
<li>jrn.jr_id</li><li>comment gen :</li></ul>
|
|
</li><li>none return:<ul>
|
|
<li>none</li></ul>
|
|
</li></ul>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="user__common_8php-source.html#l00814">814</a> of file <a class="el" href="user__common_8php-source.html">user_common.php</a>.
|
|
<p>
|
|
References <a class="el" href="eub__be_8inc_8php-source.html#l00074">$Res</a>, <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>, <a class="el" href="ac__common_8php-source.html#l00207">FormatString()</a>, and <a class="el" href="poste_8inc_8php-source.html#l00033">p_comment</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a9"></a><!-- doxytag: member="user_common.php::VerifyOperationDate" ref="a9" args="($p_cn, $p_periode, $p_date)" --><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">VerifyOperationDate </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_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_date</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 date is a valid date the date is in the default period the period is not closed.
|
|
<p>
|
|
VerifyOperationDate ($p_cn,$p_user,$p_date)<p>
|
|
parm :<ul>
|
|
<li>db connection</li></ul>
|
|
<p>
|
|
user<ul>
|
|
<li>date gen :<ul>
|
|
<li>none return:</li></ul>
|
|
</li></ul>
|
|
<p>
|
|
null if error or date if ok
|
|
<p>
|
|
Definition at line <a class="el" href="user__common_8php-source.html#l00653">653</a> of file <a class="el" href="user__common_8php-source.html">user_common.php</a>.
|
|
<p>
|
|
References <a class="el" href="ac__common_8php-source.html#l00053">cmpDate()</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="preference_8php-source.html#l00122">GetPeriode()</a>, <a class="el" href="ac__common_8php-source.html#l00097">isDate()</a>, and <a class="el" href="preference_8php-source.html#l00143">PeriodeClosed()</a>.
|
|
<p>
|
|
Referenced by <a class="el" href="user__form__fin_8php-source.html#l00147">FormFin()</a>, and <a class="el" href="user__form__ods_8php-source.html#l00045">FormODS()</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a8"></a><!-- doxytag: member="user_common.php::withStock" ref="a8" args="($p_cn, $p_f_id)" --><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">withStock </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_f_id</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>
|
|
return true if we manage stock for it value is stored in attr_value
|
|
<p>
|
|
withStock($p_cn,$p_f_id)<p>
|
|
parm :<ul>
|
|
<li>$p_cn database connection</li></ul>
|
|
<p>
|
|
$p_f_id <a class="el" href="facture_8inc_8php.html#a18">fiche.f_id</a> gen :<ul>
|
|
<li>none return: none</li></ul>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="user__common_8php-source.html#l00630">630</a> of file <a class="el" href="user__common_8php-source.html">user_common.php</a>.
|
|
<p>
|
|
References <a class="el" href="balance_8php-source.html#l00108">$a</a>, and <a class="el" href="fiche__inc_8php-source.html#l01471">getFicheAttribut()</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>
|