Fix: remove watermark after validation

This commit is contained in:
Regis Houssin 2011-05-11 15:01:09 +00:00
parent 66acd4ea8a
commit f63850c5e9
2 changed files with 4 additions and 2 deletions

View File

@ -278,10 +278,11 @@ class Commande extends CommonObject
} }
} }
// Set new ref // Set new ref and current status
if (! $error) if (! $error)
{ {
$this->ref = $num; $this->ref = $num;
$this->statut = 1;
} }
if (! $error) if (! $error)

View File

@ -1576,11 +1576,12 @@ class Facture extends CommonObject
} }
} }
// Set new ref // Set new ref and define current statut
if (! $error) if (! $error)
{ {
$this->ref = $num; $this->ref = $num;
$this->facnumber=$num; $this->facnumber=$num;
$this->statut=1;
} }
$this->use_webcal=($conf->global->PHPWEBCALENDAR_BILLSTATUS=='always'?1:0); $this->use_webcal=($conf->global->PHPWEBCALENDAR_BILLSTATUS=='always'?1:0);