noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 03/03: Task #1210 - STOCK_INVHISTO: ne peut


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 03/03: Task #1210 - STOCK_INVHISTO: ne peut pas enregistrer un changement de stock #1210 : STOCK_INVHISTO : mise à jour stock
Date: Thu, 05 Nov 2015 17:28:18 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 6251d5d1ea48f4ff90fcd40f8dba80399c296afb
Author: Dany De Bontridder <address@hidden>
Date:   Thu Nov 5 18:18:55 2015 +0100

    Task #1210 - STOCK_INVHISTO: ne peut pas enregistrer un changement de stock
    #1210 : STOCK_INVHISTO : mise à jour stock
---
 include/class/class_stock_goods.php |    2 +-
 include/stock_inv.inc.php           |    2 +-
 include/template/stock_inv.php      |    1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/class/class_stock_goods.php 
b/include/class/class_stock_goods.php
index 5283d30..6378e09 100644
--- a/include/class/class_stock_goods.php
+++ b/include/class/class_stock_goods.php
@@ -146,7 +146,7 @@ class Stock_Goods extends Stock_Goods_Sql
                                         $count=$cn->get_value('select count(*) 
from fiche_detail where ad_id=$1 and ad_value=$2',
                                                 array(ATTR_DEF_STOCK,$stock));
                                         if ( $count==0) {
-                                            throw new Exception("Code stock 
inexistant");
+                                            throw new Exception(_("Code stock 
inutilisé").h($stock));
                                         }
                                        $a->f_id=$fiche->id;
                                        $a->sg_code = $stock;
diff --git a/include/stock_inv.inc.php b/include/stock_inv.inc.php
index 5f2a4a8..a20e326 100644
--- a/include/stock_inv.inc.php
+++ b/include/stock_inv.inc.php
@@ -43,7 +43,7 @@ if ( isset ($_POST['save']))
        }catch(Exception $e)
        {
                 alert($e->getMessage());
-               $array=input($_POST);
+               $array=$_POST;
        }
 } else if ( isset ($_GET['reprise_frm']) )
 {
diff --git a/include/template/stock_inv.php b/include/template/stock_inv.php
index 649382c..2c1bdea 100644
--- a/include/template/stock_inv.php
+++ b/include/template/stock_inv.php
@@ -29,6 +29,7 @@
 ?>
 <div style="<?php if ( ! $p_readonly) echo "position:absolute";?>" 
class="content">
        <form method="POST" id="stock_reprise" class="print" onsubmit="return 
confirm_box(this,'<?php echo _("Vous confirmez ?")?>')">
+            <input type="hidden" name="save" value="1">
 <table>
        <tr><td>
                        <?php echo _("Date")?>



reply via email to

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