Task #1210 - STOCK_INVHISTO: ne peut pas enregistrer un changement de stock
#1210 : STOCK_INVHISTO : mise à jour stock
This commit is contained in:
parent
8c06ecee6f
commit
6251d5d1ea
3 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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']) )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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")?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue