| =_('Nom')?>
|
+
+ $name=new IText('dt_name',$doc_type->dt_value);
+ echo $name->input();
+ ?>
|
@@ -37,13 +45,39 @@ echo HtmlInput::title_box(_('Type de document'),'change_doc_div');
=_('Préfixe')?>
|
+
+ $prefix=new IText('dt_prefix',$doc_type->dt_prefix);
+ echo $prefix->input();
+ ?>
|
- | =_('Prochain numéro')?>
+ | =_('numéro actuel')?>
|
+
+ $ret= $cn->get_array("select last_value,is_called from seq_doc_type_".$doc_type->dt_id) ;
+
+ $last=$ret[0]['last_value'];
+ /*!
+ *\note With PSQL sequence , the last_value column is 1 when before AND after the first call, to make the difference between them
+ * I have to check whether the sequence has been already called or not */
+ if ($ret[0]['is_called']=='f' ) $last--;
+ echo $last;
+ ?>
+ |
+
+ | =_('Prochain numéro')?>
+ =
+ HtmlInput::infobulle(15);
+ ?>
+ |
+
+
+ $seq=new INum('seq',0);
+ echo $seq->input();
+ ?>
|