Fix: file not found
This commit is contained in:
parent
39b0455db6
commit
6ecd927def
@ -1355,6 +1355,7 @@ if ($_GET['action'] == 'create')
|
|||||||
if ($mesg) print $mesg;
|
if ($mesg) print $mesg;
|
||||||
|
|
||||||
$soc = new Societe($db);
|
$soc = new Societe($db);
|
||||||
|
if ($socid) $res=$soc->fetch($socid);
|
||||||
|
|
||||||
if ($_GET['origin'] && $_GET['originid'])
|
if ($_GET['origin'] && $_GET['originid'])
|
||||||
{
|
{
|
||||||
@ -1366,6 +1367,12 @@ if ($_GET['action'] == 'create')
|
|||||||
$subelement = $regs[2];
|
$subelement = $regs[2];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($element == 'project')
|
||||||
|
{
|
||||||
|
$projectid=$_GET['originid'];
|
||||||
|
}
|
||||||
|
else if (in_array($element,array('order','propal','contract')))
|
||||||
|
{
|
||||||
// For compatibility
|
// For compatibility
|
||||||
if ($element == 'order') { $element = $subelement = 'commande'; }
|
if ($element == 'order') { $element = $subelement = 'commande'; }
|
||||||
if ($element == 'propal') { $element = 'comm/propal'; $subelement = 'propal'; }
|
if ($element == 'propal') { $element = 'comm/propal'; $subelement = 'propal'; }
|
||||||
@ -1387,9 +1394,9 @@ if ($_GET['action'] == 'create')
|
|||||||
$remise_absolue = (!empty($object->remise_absolue)?$object->remise_absolue:(!empty($soc->remise_absolue)?$soc->remise_absolue:0));
|
$remise_absolue = (!empty($object->remise_absolue)?$object->remise_absolue:(!empty($soc->remise_absolue)?$soc->remise_absolue:0));
|
||||||
$dateinvoice = empty($conf->global->MAIN_AUTOFILL_DATE)?-1:0;
|
$dateinvoice = empty($conf->global->MAIN_AUTOFILL_DATE)?-1:0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$res=$soc->fetch($socid);
|
|
||||||
$cond_reglement_id = $soc->cond_reglement_id;
|
$cond_reglement_id = $soc->cond_reglement_id;
|
||||||
$mode_reglement_id = $soc->mode_reglement_id;
|
$mode_reglement_id = $soc->mode_reglement_id;
|
||||||
$remise_percent = $soc->remise_percent;
|
$remise_percent = $soc->remise_percent;
|
||||||
@ -1753,6 +1760,9 @@ if ($_GET['action'] == 'create')
|
|||||||
|
|
||||||
print "</form>\n";
|
print "</form>\n";
|
||||||
|
|
||||||
|
// Try to read line from origin
|
||||||
|
$sql='';
|
||||||
|
|
||||||
// TODO deplacer dans la classe
|
// TODO deplacer dans la classe
|
||||||
if ($_GET['origin'] == 'propal')
|
if ($_GET['origin'] == 'propal')
|
||||||
{
|
{
|
||||||
@ -1795,7 +1805,8 @@ if ($_GET['action'] == 'create')
|
|||||||
$sql.= ' WHERE pt.fk_contrat = '.$object->id;
|
$sql.= ' WHERE pt.fk_contrat = '.$object->id;
|
||||||
$sql.= ' ORDER BY pt.rowid ASC';
|
$sql.= ' ORDER BY pt.rowid ASC';
|
||||||
}
|
}
|
||||||
if ($_GET['origin'] && $_GET['originid'])
|
|
||||||
|
if ($sql)
|
||||||
{
|
{
|
||||||
print '<br>';
|
print '<br>';
|
||||||
print_titre($title);
|
print_titre($title);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user