<commit_before><?php

class VracVolumeEnleveForm extends acCouchdbObjectForm {
     
    public function configure()
    {
        $this->setWidget('volume_enleve', new sfWidgetFormInputFloat());
        
        $this->widgetSchema->setLabels(array(
            'volume_enleve' => 'Saisir le volume enlevé :'));
        
        $this->setValidators(array(
            'volume_enleve' => new sfValidatorNumber(array('required' => true))));   
               
        $this->widgetSchema->setNameFormat('vrac[%s]');
        
    }
    
    public function doUpdateObject($values) 
    {
        parent::doUpdateObject($values);
        
        if($this->getObject()->volume_propose < $this->getObject()->volume_enleve)
        { 
            $this->getObject()->valide->statut == "SOLDE";
        }
    }
  
}

?><commit_msg>bug avec un la mis à jour du statu dans l'update du vrac (volume enleve)<commit_after><?php

class VracVolumeEnleveForm extends acCouchdbObjectForm {
     
    public function configure()
    {
        $this->setWidget('volume_enleve', new sfWidgetFormInputFloat());
        
        $this->widgetSchema->setLabels(array(
            'volume_enleve' => 'Saisir le volume enlevé :'));
        
        $this->setValidators(array(
            'volume_enleve' => new sfValidatorNumber(array('required' => true))));   
               
        $this->widgetSchema->setNameFormat('vrac[%s]');
        
    }
    
    public function doUpdateObject($values) 
    {
        parent::doUpdateObject($values);
        
        if($this->getObject()->volume_propose <= $this->getObject()->volume_enleve)
        { 
            $this->getObject()->valide->statut = "SOLDE";
        }
    }
  
}

?>
{'fraction_non_alphanumeric': 0.1396843950905903, 'fraction_numerical': 0.0, 'mean_word_length': 2.260952380952381, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5549800', 'n_tokens_mistral': 521, 'n_tokens_neox': 513, 'n_words': 76}