Fix: Invoice creation broken
This commit is contained in:
parent
3cc24419a2
commit
f9d92bf42a
@ -51,11 +51,10 @@ $langs->load('main');
|
|||||||
|
|
||||||
$sall=isset($_GET['sall'])?trim($_GET['sall']):trim($_POST['sall']);
|
$sall=isset($_GET['sall'])?trim($_GET['sall']):trim($_POST['sall']);
|
||||||
$mesg=isset($_GET['mesg'])?urldecode($_GET['mesg']):'';
|
$mesg=isset($_GET['mesg'])?urldecode($_GET['mesg']):'';
|
||||||
$socid=isset($_GET['socid'])?$_GET['socid']:$_POST['socid'];
|
|
||||||
$projetid=isset($_GET['projetid'])?$_GET['projetid']:0;
|
$projetid=isset($_GET['projetid'])?$_GET['projetid']:0;
|
||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
$socid=0;
|
$socid=isset($_GET['socid'])?$_GET['socid']:$_POST['socid'];
|
||||||
$facid = isset($_GET["id"])?$_GET["id"]:'';
|
$facid = isset($_GET["id"])?$_GET["id"]:'';
|
||||||
if ($user->societe_id) $socid=$user->societe_id;
|
if ($user->societe_id) $socid=$user->societe_id;
|
||||||
$result = restrictedArea($user, 'facture', $facid,'');
|
$result = restrictedArea($user, 'facture', $facid,'');
|
||||||
@ -1331,7 +1330,7 @@ if ($_GET['action'] == 'create')
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$soc->fetch($socid);
|
$res=$soc->fetch($socid);
|
||||||
$cond_reglement_id = $soc->cond_reglement;
|
$cond_reglement_id = $soc->cond_reglement;
|
||||||
$mode_reglement_id = $soc->mode_reglement;
|
$mode_reglement_id = $soc->mode_reglement;
|
||||||
$remise_percent = $soc->remise_client;
|
$remise_percent = $soc->remise_client;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user