transmission du projetid pendant la creation d'un brouillon de facture.
This commit is contained in:
parent
821bd0d28e
commit
4f25ab308a
@ -595,6 +595,7 @@ if ($_GET["action"] == 'create')
|
|||||||
$propal = New Propal($db);
|
$propal = New Propal($db);
|
||||||
$propal->fetch($_GET["propalid"]);
|
$propal->fetch($_GET["propalid"]);
|
||||||
$societe_id = $propal->soc_id;
|
$societe_id = $propal->soc_id;
|
||||||
|
$projet=$propal->projetidp;
|
||||||
$soc->fetch($societe_id);
|
$soc->fetch($societe_id);
|
||||||
}
|
}
|
||||||
elseif ($_GET["commandeid"])
|
elseif ($_GET["commandeid"])
|
||||||
@ -602,6 +603,7 @@ if ($_GET["action"] == 'create')
|
|||||||
$commande = New Commande($db);
|
$commande = New Commande($db);
|
||||||
$commande->fetch($_GET["commandeid"]);
|
$commande->fetch($_GET["commandeid"]);
|
||||||
$societe_id = $commande->soc_id;
|
$societe_id = $commande->soc_id;
|
||||||
|
$projet=$commande-> projet_id;
|
||||||
$soc->fetch($societe_id);
|
$soc->fetch($societe_id);
|
||||||
}
|
}
|
||||||
elseif ($_GET["contratid"])
|
elseif ($_GET["contratid"])
|
||||||
@ -609,6 +611,7 @@ if ($_GET["action"] == 'create')
|
|||||||
$contrat = New Contrat($db);
|
$contrat = New Contrat($db);
|
||||||
$contrat->fetch($_GET["contratid"]);
|
$contrat->fetch($_GET["contratid"]);
|
||||||
$societe_id = $contrat->societe->id;
|
$societe_id = $contrat->societe->id;
|
||||||
|
$projet=$contrat->fk_projet;
|
||||||
$soc=$contrat->societe;
|
$soc=$contrat->societe;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -671,7 +674,7 @@ if ($_GET["action"] == 'create')
|
|||||||
{
|
{
|
||||||
$langs->load("projects");
|
$langs->load("projects");
|
||||||
print '<tr><td>'.$langs->trans("Project").'</td><td>';
|
print '<tr><td>'.$langs->trans("Project").'</td><td>';
|
||||||
$html->select_projects($societe_id);
|
$html->select_projects($societe_id, $projet, "projetid");
|
||||||
print "</td></tr>";
|
print "</td></tr>";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user