altocompta/doc/developper/html/stock__inc_8php.html

310 lines
14 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/stock_inc.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&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>
<div class="nav">
<a class="el" href="dir_000000.html">developpement</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_000001.html">phpcompta-dev</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_000002.html">phpcompta</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_000006.html">include</a></div>
<h1>stock_inc.php File Reference</h1>Function for managing the stock. <a href="#_details">More...</a>
<p>
<p>
<a href="stock__inc_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">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stock__inc_8php.html#a0">ViewStock</a> ($p_cn, $p_year)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">show the listing of all goods <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="stock__inc_8php.html#a1">getFicheNameCode</a> ($p_cn, $p_sg_code)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return an array of f_id and f_name <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="stock__inc_8php.html#a2">ViewDetailStock</a> ($p_cn, $p_sg_code, $p_year)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">View the details of a stock. <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="stock__inc_8php.html#a3">ChangeStock</a> ($p_sg_code, $p_year)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">parm :<ul>
<li>gen :</li><li>return: </li></ul>
<a href="#a3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="stock__inc_8php.html#a4">GetQuantity</a> ($p_cn, $p_sg_code, $p_year, $p_type)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return the quantity of a sg_code for the period <a href="#a4"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Function for managing the stock.
<p>
<p>
Definition in file <a class="el" href="stock__inc_8php-source.html">stock_inc.php</a>.<hr><h2>Function Documentation</h2>
<a class="anchor" name="a3"></a><!-- doxytag: member="stock_inc.php::ChangeStock" ref="a3" args="($p_sg_code, $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">ChangeStock </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>p_sg_code</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_year</em></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>
parm :<ul>
<li>gen :</li><li>return: </li></ul>
<p>
<p>
Definition at line <a class="el" href="stock__inc_8php-source.html#l00259">259</a> of file <a class="el" href="stock__inc_8php-source.html">stock_inc.php</a>.
<p>
References <a class="el" href="user__action__ach_8php-source.html#l00052">$r</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="a1"></a><!-- doxytag: member="stock_inc.php::getFicheNameCode" ref="a1" args="($p_cn, $p_sg_code)" --><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">getFicheNameCode </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_sg_code</em></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>
return an array of f_id and f_name
<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>&nbsp;</td><td>database connection </td></tr>
<tr><td valign="top"></td><td valign="top"><em>_sg_code</em>&nbsp;</td><td>stock_goods.sg_code </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><ul>
<li>array (f_id, f_label) or null if nothing is found</li></ul>
</dd></dl>
<p>
Definition at line <a class="el" href="stock__inc_8php-source.html#l00111">111</a> of file <a class="el" href="stock__inc_8php-source.html">stock_inc.php</a>.
<p>
References <a class="el" href="balance_8php-source.html#l00108">$a</a>, <a class="el" href="balance_8php-source.html#l00113">$i</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="export__ouv_8php-source.html#l00072">$result</a>, <a class="el" href="facture_8inc_8php-source.html#l00082">$sql</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="stock__inc_8php-source.html#l00147">ViewDetailStock()</a>, and <a class="el" href="stock__inc_8php-source.html#l00035">ViewStock()</a>. </td>
</tr>
</table>
<a class="anchor" name="a4"></a><!-- doxytag: member="stock_inc.php::GetQuantity" ref="a4" args="($p_cn, $p_sg_code, $p_year, $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">GetQuantity </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_sg_code</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_year</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_type</em></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>
return the quantity of a sg_code for the period
<p>
<dl compact><dt><b>Returns:</b></dt><dd>number or NULL</dd></dl>
<p>
Definition at line <a class="el" href="stock__inc_8php-source.html#l00276">276</a> of file <a class="el" href="stock__inc_8php-source.html">stock_inc.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>, and <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>.
<p>
Referenced by <a class="el" href="stock__inc_8php-source.html#l00035">ViewStock()</a>. </td>
</tr>
</table>
<a class="anchor" name="a2"></a><!-- doxytag: member="stock_inc.php::ViewDetailStock" ref="a2" args="($p_cn, $p_sg_code, $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">ViewDetailStock </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_sg_code</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_year</em></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>
View the details of a stock.
<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>&nbsp;</td><td>database connection </td></tr>
<tr><td valign="top"></td><td valign="top"><em>p_sg_code</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>$p_year</em>&nbsp;</td><td></td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>HTML code</dd></dl>
<p>
Definition at line <a class="el" href="stock__inc_8php-source.html#l00147">147</a> of file <a class="el" href="stock__inc_8php-source.html">stock_inc.php</a>.
<p>
References <a class="el" href="facture_8inc_8php-source.html#l00138">$l</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>, <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>, and <a class="el" href="stock__inc_8php-source.html#l00111">getFicheNameCode()</a>. </td>
</tr>
</table>
<a class="anchor" name="a0"></a><!-- doxytag: member="stock_inc.php::ViewStock" ref="a0" args="($p_cn, $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">ViewStock </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_year</em></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>
show the listing of all goods
<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>-</em>&nbsp;</td><td>database connection<ul>
<li></li></ul>
</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>string containing the table</dd></dl>
<p>
Definition at line <a class="el" href="stock__inc_8php-source.html#l00035">35</a> of file <a class="el" href="stock__inc_8php-source.html">stock_inc.php</a>.
<p>
References <a class="el" href="poste__csv_8php-source.html#l00066">$diff</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="export__ouv_8php-source.html#l00072">$result</a>, <a class="el" href="facture_8inc_8php-source.html#l00082">$sql</a>, <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>, <a class="el" href="stock__inc_8php-source.html#l00111">getFicheNameCode()</a>, and <a class="el" href="stock__inc_8php-source.html#l00276">GetQuantity()</a>. </td>
</tr>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 23 00:12:47 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>