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'; } }
die('Appel direct ne sont pas permis'); } require_once NOALYSS_INCLUDE . '/constant.php'; require_once NOALYSS_INCLUDE . '/class_database.php'; require_once NOALYSS_INCLUDE . '/class_dossier.php'; require_once NOALYSS_INCLUDE . '/class_pre_operation.php'; // Check if the needed field does exist extract($_GET); foreach (array('l', 't', 'd', 'gDossier') as $a) { if (!isset(${$a})) { echo "error {$a} is not set "; exit; } } $cn = new Database(dossier::id()); $op = new Pre_operation_detail($cn); $op->set('ledger', $l); $op->set('ledger_type', $t); $op->set('direct', $d); $url = http_build_query(array('action' => 'use_opd', 'p_jrn_predef' => $l, 'ac' => $_GET['ac'], 'gDossier' => dossier::id())); $html = ""; $html .= HtmlInput::title_box(_("Modèle d'opérations"), 'modele_op_div', 'hide'); $html .= $op->show_button('do.php?' . $url); $html = escape_xml($html); header('Content-type: text/xml; charset=UTF-8'); echo <<<EOF <?xml version="1.0" encoding="UTF-8"?> <data> <code></code> <value>{$html}</value> </data>