function get_post() { parent::get_post(); $this->operation->od_direct = 'f'; for ($i = 0; $i < $this->operation->nb_item; $i++) { $this->{"e_account" . $i} = $_POST['e_account' . $i]; $this->{"e_account" . $i . "_amount"} = $_POST['e_account' . $i . "_amount"]; $this->{"e_account" . $i . "_type"} = $_POST['e_account' . $i . "_type"]; } }
function get_post() { parent::get_post(); $this->operation->od_direct = 'f'; $this->e_bank_account = $_POST['e_bank_account']; for ($i = 0; $i < $this->operation->nb_item; $i++) { $this->{"e_other" . $i} = $_POST['e_other' . $i]; $this->{"e_other" . $i . "_comment"} = $_POST['e_other' . $i . '_comment']; $this->{"e_other" . $i . "_amount"} = $_POST['e_other' . $i . "_amount"]; } }
function get_post() { parent::get_post(); $this->operation->od_direct = 'f'; $this->e_client = $_POST['e_client']; for ($i = 0; $i < $this->operation->nb_item; $i++) { $march = "e_march" . $i; $this->{$march} = $_POST['e_march' . $i]; $this->{"e_march" . $i . "_price"} = $_POST['e_march' . $i . "_price"]; $this->{"e_march" . $i . "_tva_id"} = isset($_POST['e_march' . $i . "_tva_id"]) ? $_POST['e_march' . $i . "_tva_id"] : 0; $this->{"e_quant" . $i} = $_POST['e_quant' . $i]; } }
function get_post() { parent::get_post(); extract($_POST); for ($i = 0; $i < $this->operation->nb_item; $i++) { $poste = HtmlInput::default_value_post("poste" . $i, null); $qcode = HtmlInput::default_value_post("qc_" . $i, null); if ($poste == null && $qcode == null) { continue; } if ($poste != null && trim($poste) != "") { $this->{'poste' . $i} = $poste; $this->{'isqc' . $i} = 'f'; } if ($qcode != null && trim($qcode) != "") { $this->{'isqc' . $i} = trim($_POST['qc_' . $i]) != "" ? 't' : 'f'; $this->{'poste' . $i} = trim($qcode); } $this->{"amount" . $i} = $_POST['amount' . $i]; $this->{"ck" . $i} = isset($_POST['ck' . $i]) ? 't' : 'f'; } }