FIX Relative discount decimals are not saved

This commit is contained in:
Laurent Destailleur 2016-02-08 02:49:19 +01:00
parent 96bf59f065
commit c4c7ea2f22

View File

@ -30,6 +30,8 @@ $langs->load("companies");
$langs->load("orders");
$langs->load("bills");
$id=GETPOST("id",'int');
$socid = GETPOST('id','int');
// Security check
if ($user->societe_id > 0)
@ -52,9 +54,9 @@ if (GETPOST('cancel') && ! empty($backtopage))
if (GETPOST("action") == 'setremise')
{
$soc = New Societe($db);
$soc->fetch($_GET["id"]);
$result=$soc->set_remise_client($_POST["remise"],$_POST["note"],$user);
$soc = new Societe($db);
$soc->fetch($id);
$result=$soc->set_remise_client(price2num(GETPOST("remise")),GETPOST("note"),$user);
if ($result > 0)
{