} } } if (isset($_POST['ipaid'])) { $cn->exec_sql("update jrn set jr_rapt='paid' where jr_id=\$1", array($jr_id)); } else { $cn->exec_sql("update jrn set jr_rapt=null where jr_id=\$1", array($jr_id)); } //////////////////////////////////////////////////// // CA ////////////////////////////////////////////////// $owner = new Own($cn); if ($owner->MY_ANALYTIC != "nu" && isset($_POST['op'])) { // for each item, insert into operation_analytique */ $opanc = new Anc_Operation($cn); $opanc->save_update_form($_POST); } ////////////////////////////////////////////////////////////////// //Save other info ////////////////////////////////////////////////////////////////// $op->save_info($_POST['OTHER'], 'OTHER'); $op->save_info($_POST['BON_COMMANDE'], 'BON_COMMANDE'); /////////////////////////////////////////////////////////////////// // Save related ////////////////////////////////////////////////////////////////// $related = HtmlInput::default_value_post("related", "0"); if ($related == "0") { throw new Exception('Parameter not send -> related' . __FILE__ . __LINE__, 10); } $op->insert_related_action($related); }