correct stock
This commit is contained in:
parent
02fc202eb7
commit
f88999067e
5 changed files with 6 additions and 6 deletions
|
|
@ -28,7 +28,7 @@
|
|||
*/
|
||||
require_once 'class_stock_goods.php';
|
||||
|
||||
$st=new Stock_Goods();
|
||||
$st=new Stock_Goods($cn);
|
||||
$array=$cn->get_array("select * from stock_goods where c_id=$1",array($_GET['c_id']));
|
||||
echo HtmlInput::title_box("Détail changement",$_GET['ctl']);
|
||||
$p_array=array();
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ class Stock_Goods extends Stock_Goods_Sql
|
|||
require_once 'template/stock_inv.php';
|
||||
}
|
||||
|
||||
function save($p_array)
|
||||
function record_save($p_array)
|
||||
{
|
||||
global $cn;
|
||||
try
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ global $g_user,$cn,$g_parameter;
|
|||
require_once 'class_stock.php';
|
||||
require_once 'class_periode.php';
|
||||
|
||||
$stock=new Stock();
|
||||
$stock=new Stock($cn);
|
||||
$array=$_GET;
|
||||
if ( ! isset ($array['wdate_start']) || ! isset ($array['wdate_end']))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -29,12 +29,12 @@
|
|||
require_once 'class_stock_goods.php';
|
||||
global $cn;
|
||||
|
||||
$inv=new Stock_Goods();
|
||||
$inv=new Stock_Goods($cn);
|
||||
if ( isset ($_POST['save']))
|
||||
{
|
||||
try
|
||||
{
|
||||
$inv->save($_POST);
|
||||
$inv->record_save($_POST);
|
||||
echo h2info("Opération sauvée");
|
||||
$inv->input($_POST,true);
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ $presentation->value=array (
|
|||
$presentation->selected=(isset($_GET['present']))?$_GET['present']:"T";
|
||||
require_once 'template/stock_state_search.php';
|
||||
|
||||
$stock=new Stock();
|
||||
$stock=new Stock($cn);
|
||||
|
||||
|
||||
$stock->summary($_GET);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue