Correction pour rg=off
This commit is contained in:
parent
a7bf7bc084
commit
a8029ea7d8
@ -196,13 +196,13 @@ if ($_POST["action"] == 'add')
|
|||||||
if ($_POST["action"] == 'confirm_valid' && $_POST["confirm"] == yes && $user->rights->facture->valider)
|
if ($_POST["action"] == 'confirm_valid' && $_POST["confirm"] == yes && $user->rights->facture->valider)
|
||||||
{
|
{
|
||||||
$fac = new Facture($db);
|
$fac = new Facture($db);
|
||||||
$fac->fetch($facid);
|
$fac->fetch($_GET["facid"]);
|
||||||
$soc = new Societe($db);
|
$soc = new Societe($db);
|
||||||
$soc->fetch($fac->socidp);
|
$soc->fetch($fac->socidp);
|
||||||
$result = $fac->set_valid($facid, $user, $soc);
|
$result = $fac->set_valid($fac->id, $user, $soc);
|
||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
facture_pdf_create($db, $facid);
|
facture_pdf_create($db, $fac->id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -746,10 +746,10 @@ else
|
|||||||
* Confirmation de la validation
|
* Confirmation de la validation
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
if ($action == 'valid')
|
if ($_GET["action"] == 'valid')
|
||||||
{
|
{
|
||||||
$numfa = facture_get_num($soc);
|
$numfa = facture_get_num($soc);
|
||||||
$html->form_confirm("$PHP_SELF?facid=$fac->id","Valider la facture","Etes-vous sûr de vouloir valider cette facture avec le numéro $numfa ?","confirm_valid");
|
$html->form_confirm("facture.php?facid=$fac->id","Valider la facture","Etes-vous sûr de vouloir valider cette facture avec le numéro $numfa ?","confirm_valid");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -1038,7 +1038,7 @@ else
|
|||||||
{
|
{
|
||||||
if ($user->rights->facture->valider)
|
if ($user->rights->facture->valider)
|
||||||
{
|
{
|
||||||
print "<a class=\"tabAction\" href=\"$PHP_SELF?facid=$fac->id&action=valid\">Valider</a>";
|
print '<a class="tabAction" href="facture.php?facid='.$fac->id.'&action=valid">Valider</a>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user