Fix: Une facture valide ne doit pas etre modifiable.
This commit is contained in:
parent
85da803077
commit
cb4017dcc9
@ -685,9 +685,8 @@ else
|
||||
for ($i = 0 ; $i < sizeof($fac->lignes) ; $i++)
|
||||
{
|
||||
$var=!$var;
|
||||
|
||||
// Ligne en modification
|
||||
if ($_GET['action'] == 'mod_ligne' && $_GET['etat'] == '0' && $_GET['ligne_id'] == $fac->lignes[$i]->rowid)
|
||||
if ($fac->statut == 0 && $_GET['action'] == 'mod_ligne' && $_GET['etat'] == '0' && $_GET['ligne_id'] == $fac->lignes[$i]->rowid)
|
||||
{
|
||||
print '<form action="fiche.php?facid='.$fac->id.'&action=mod_ligne&etat=1&ligne_id='.$fac->lignes[$i]->rowid.'" method="post">';
|
||||
print '<input type="hidden" name="tauxtva" value="'.$fac->lignes[$i]->tva_taux.'">';
|
||||
@ -737,7 +736,7 @@ else
|
||||
|
||||
}
|
||||
|
||||
if ($_GET['action'] != 'mod_ligne')
|
||||
if ($fac->statut == 0 && $_GET['action'] != 'mod_ligne')
|
||||
{
|
||||
/* Nouvelle ligne */
|
||||
$var=!$var;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user