Task #1210 - STOCK_INVHISTO: ne peut pas enregistrer un changement de stock

#1210 : STOCK_INVHISTO : mise à jour stock
This commit is contained in:
Dany De Bontridder 2015-11-05 18:18:55 +01:00
parent 8c06ecee6f
commit 6251d5d1ea
3 changed files with 3 additions and 2 deletions

View file

@ -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;

View file

@ -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']) )
{

View file

@ -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")?>