noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 01/11: Task #1059 - Stock : reprise inventair


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 01/11: Task #1059 - Stock : reprise inventaire Cosmetic : center the box + size
Date: Wed, 03 Dec 2014 22:39:28 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 7196eda00947f22916182c56de92c3dbc80cb1fe
Author: Dany De Bontridder <address@hidden>
Date:   Tue Dec 2 18:28:18 2014 +0100

    Task #1059 - Stock : reprise inventaire
    Cosmetic : center the box + size
---
 include/stock_inv.inc.php |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/include/stock_inv.inc.php b/include/stock_inv.inc.php
index c75d2a9..37ed78a 100644
--- a/include/stock_inv.inc.php
+++ b/include/stock_inv.inc.php
@@ -27,9 +27,11 @@
  */
 if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
 require_once 'class_stock_goods.php';
+require_once 'class_stock.php';
 global $cn;
 
 $inv=new Stock_Goods($cn);
+$array=array();
 if ( isset ($_POST['save']))
 {
        try
@@ -41,9 +43,13 @@ if ( isset ($_POST['save']))
        }catch(Exception $e)
        {
                 alert($e->getMessage());
-                $inv->input($_POST);
+               $array=input($_POST);
        }
+} else if ( isset ($_GET['reprise_frm']) )
+{
+    
+    $array=$inv->take_last_inventory($_GET);
 }
-echo $inv->input();
+echo $inv->input($array);
 
 ?>



reply via email to

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