Jump to content

Edit History

Allyta

Allyta

C'est rien 😃 
J'ai tenté ça mais j'ai une erreur de syntaxe pourtant mes INNER JOIN fonctionnent bien individuellement. 

(J'ai mis l'espace aussi ;) )
 

    $this->_join .= ' INNER JOIN '._DB_PREFIX_. 'GP_' . 'ingredient i ON (a.id_ingredient = i.id_ingredient)';
    $this->_select .= 'i.nom_ingredient AS `ingredient_reception`';
    
    $this->_join .= ' INNER JOIN '._DB_PREFIX_. 'GP_' . 'fournisseur f ON (a.id_fournisseur = f.id_fournisseur)';
    $this->_select .= 'f.nom_fournisseur AS `fournisseur_reception`';

    //Liste des champs de l'objet à afficher dans la liste
    $this->fields_list = array(
      'date_reception' => array('title' => 'Date', 'width' => 'auto'),
      'ingredient_reception' => array('title' => 'Ingrédient', 'width' => 'auto'), 
      'fournisseur_reception' => array('title' => 'Fournisseur', 'width' => 'auto'),
      'ingredient_quantite_reception' => array('title' => 'Quantité', 'width' => 'auto'),
      'num_lot_fournisseur_reception' => array('title' => 'Num lot fournisseur', 'width' => 'auto'),
      'num_lot_reception' => array('title' => 'Num lot', 'width' => 'auto'),
      'quantite_conforme_reception' => array('title' => 'Conformité', 'width' => 'auto'),
      'integrite_reception' => array('title' => 'Intégrité', 'width' => 'auto'),
    );

Il faut adapter le fields_list pour qu'il arrive à sortir les valeurs de la concaténation ?
 

1.JPG

Allyta

Allyta

C'est rien 😃 
J'ai tenté ça mais j'ai une erreur de syntaxe pourtant mes INNER JOIN fonctionnement bien individuellement. 

(J'ai mis l'espace aussi ;) )
 

    $this->_join .= ' INNER JOIN '._DB_PREFIX_. 'GP_' . 'ingredient i ON (a.id_ingredient = i.id_ingredient)';
    $this->_select .= 'i.nom_ingredient AS `ingredient_reception`';
    
    $this->_join .= ' INNER JOIN '._DB_PREFIX_. 'GP_' . 'fournisseur f ON (a.id_fournisseur = f.id_fournisseur)';
    $this->_select .= 'f.nom_fournisseur AS `fournisseur_reception`';

    //Liste des champs de l'objet à afficher dans la liste
    $this->fields_list = array(
      'date_reception' => array('title' => 'Date', 'width' => 'auto'),
      'ingredient_reception' => array('title' => 'Ingrédient', 'width' => 'auto'), 
      'fournisseur_reception' => array('title' => 'Fournisseur', 'width' => 'auto'),
      'ingredient_quantite_reception' => array('title' => 'Quantité', 'width' => 'auto'),
      'num_lot_fournisseur_reception' => array('title' => 'Num lot fournisseur', 'width' => 'auto'),
      'num_lot_reception' => array('title' => 'Num lot', 'width' => 'auto'),
      'quantite_conforme_reception' => array('title' => 'Conformité', 'width' => 'auto'),
      'integrite_reception' => array('title' => 'Intégrité', 'width' => 'auto'),
    );

Il faut adapter le fields_list pour qu'il arrive à sortir les valeurs de la concaténation ?
 

1.JPG

×
×
  • Create New...