Enregistrement
'; echo $Ledger->confirm($_POST,true); /* Show link for Invoice */ if (isset ($Ledger->doc) ) { echo ''._('Document').'
'; echo $Ledger->doc; } /* Save the additional information into jrn_info */ $obj=new Acc_Ledger_Info($cn); $obj->save_extra($Ledger->jr_id,$_POST); // extourne if (isset($_POST['reverse_ck'])) { $p_date=$http->post('reverse_date', "string",''); $p_msg=$http->post("ext_label"); if (isDate($p_date)==$p_date) { // reverse the operation try { $Ledger->reverse($p_date,$p_msg); echo ''; echo _('Extourné au ').$p_date; echo '
'; } catch (Exception $e) { echo ''._('Opération non extournée'). $e->getMessage(). '
'; } } else { // warning because date is invalid echo ''._('Date invalide, opération non extournée').'
'; } } echo '- ';
echo "
- "; echo $Ledger->button_new_operation(); echo " "; echo "
- "; echo $Ledger->button_copy_operation(); echo " "; echo "
'.$p_msg.'
'; try { $payment=$http->request("e_mp","string", 0); $date_payment=$http->request("mp_date", "string",""); $comm_payment=$http->request("e_comm_paiement", "string",""); $acompte=$http->request("acompte", "string",0); echo ""; /* if we suggest the pj n# the run the script */ if ( $g_parameter->MY_PJ_SUGGEST=='Y') { echo ''; } if (!isset($_REQUEST['e_date']) && $g_parameter->MY_DATE_SUGGEST=='Y') { echo create_script(" get_last_date()"); } echo create_script(" update_name()"); return; ?>