30require_once DOL_DOCUMENT_ROOT.
"/reception/class/receptionlinebatch.class.php";
42 public $element =
'commandefournisseurdispatch';
50 public $fk_commandefourndet;
60 public function create($user, $notrigger = 0)
62 if (empty($this->fk_element) && !empty($this->fk_commande)) {
63 $this->fk_element = $this->fk_commande;
65 if (empty($this->fk_elementdet) && !empty($this->fk_commandefourndet)) {
66 $this->fk_elementdet = $this->fk_commandefourndet;
69 return parent::create($user, $notrigger);
79 public function fetch($id, $ref =
'')
81 $ret = parent::fetch($id, $ref);
83 $this->fk_commande = $this->fk_element;
84 $this->fk_commandefourndet = $this->fk_elementdet;
96 public function update($user, $notrigger = 0)
98 $this->fk_element = $this->fk_commande;
99 $this->fk_elementdet = $this->fk_commandefourndet;
101 return parent::update($user, $notrigger);
Class to manage table ReceptionLineBatch.
update($user, $notrigger=0)
Update object into database.
fetch($id, $ref='')
Load object in memory from the database.
create($user, $notrigger=0)
Create object into database.
Class to manage table commandefournisseurdispatch.