phpcompta-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-dev] r5354 - phpcompta/trunk/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r5354 - phpcompta/trunk/include
Date: Mon, 26 Aug 2013 22:31:02 +0200 (CEST)

Author: danydb
Date: 2013-08-26 22:31:02 +0200 (Mon, 26 Aug 2013)
New Revision: 5354

Modified:
   phpcompta/trunk/include/ajax_view_mod_stock.php
   phpcompta/trunk/include/class_stock_goods.php
   phpcompta/trunk/include/stock_histo.inc.php
   phpcompta/trunk/include/stock_inv.inc.php
   phpcompta/trunk/include/stock_state.inc.php
Log:
correct stock

Modified: phpcompta/trunk/include/ajax_view_mod_stock.php
===================================================================
--- phpcompta/trunk/include/ajax_view_mod_stock.php     2013-08-26 20:30:14 UTC 
(rev 5353)
+++ phpcompta/trunk/include/ajax_view_mod_stock.php     2013-08-26 20:31:02 UTC 
(rev 5354)
@@ -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();

Modified: phpcompta/trunk/include/class_stock_goods.php
===================================================================
--- phpcompta/trunk/include/class_stock_goods.php       2013-08-26 20:30:14 UTC 
(rev 5353)
+++ phpcompta/trunk/include/class_stock_goods.php       2013-08-26 20:31:02 UTC 
(rev 5354)
@@ -101,7 +101,7 @@
                require_once 'template/stock_inv.php';
        }
 
-       function save($p_array)
+       function record_save($p_array)
        {
                global $cn;
                try

Modified: phpcompta/trunk/include/stock_histo.inc.php
===================================================================
--- phpcompta/trunk/include/stock_histo.inc.php 2013-08-26 20:30:14 UTC (rev 
5353)
+++ phpcompta/trunk/include/stock_histo.inc.php 2013-08-26 20:31:02 UTC (rev 
5354)
@@ -30,7 +30,7 @@
 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']))
 {

Modified: phpcompta/trunk/include/stock_inv.inc.php
===================================================================
--- phpcompta/trunk/include/stock_inv.inc.php   2013-08-26 20:30:14 UTC (rev 
5353)
+++ phpcompta/trunk/include/stock_inv.inc.php   2013-08-26 20:31:02 UTC (rev 
5354)
@@ -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);
 

Modified: phpcompta/trunk/include/stock_state.inc.php
===================================================================
--- phpcompta/trunk/include/stock_state.inc.php 2013-08-26 20:30:14 UTC (rev 
5353)
+++ phpcompta/trunk/include/stock_state.inc.php 2013-08-26 20:31:02 UTC (rev 
5354)
@@ -44,7 +44,7 @@
 $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);



---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]