Author: danydb Date: 2011-11-26 02:15:17 +0100 (Sat, 26 Nov 2011) New Revision: 195
Modified: trunk/amortis/index.php trunk/importbank/index.php trunk/modop/index.php trunk/tool_pcmn/index.php trunk/tools/index.php trunk/tva/ajax.php trunk/tva/index.php Log: add minimum version to 6.0 Modified: trunk/amortis/index.php =================================================================== --- trunk/amortis/index.php 2011-11-22 22:31:01 UTC (rev 194) +++ trunk/amortis/index.php 2011-11-26 01:15:17 UTC (rev 195) @@ -19,7 +19,7 @@ /* $Revision$ */ // Copyright Author Dany De Bontridder [email protected] - +Extension::check_version(4400); /*!\file * \brief main entry */ Modified: trunk/importbank/index.php =================================================================== --- trunk/importbank/index.php 2011-11-22 22:31:01 UTC (rev 194) +++ trunk/importbank/index.php 2011-11-26 01:15:17 UTC (rev 195) @@ -30,6 +30,7 @@ require_once('include/class_import_bank.php'); require_once('bank_constant.php'); require_once('class_html_table.php'); +Extension::check_version(4400); global $cn; echo '<div style="float:right"><a class="mtitle" style="font-size:140%" href="http://wiki.phpcompta.eu/doku.php?id=importation_de_banque" target="_blank">Aide</a></div>'; $cn=new Database(dossier::id()); Modified: trunk/modop/index.php =================================================================== --- trunk/modop/index.php 2011-11-22 22:31:01 UTC (rev 194) +++ trunk/modop/index.php 2011-11-26 01:15:17 UTC (rev 195) @@ -23,7 +23,7 @@ /*!\file * \brief modify a operation */ -Extension::check_version(3432); +Extension::check_version(4400); $str=new IConcerned("jr_id"); $str->value=(isset($_GET['jr_id']))?strtoupper($_GET['jr_id']):''; $str->value=(isset($_GET['ext_jr_id']))?strtoupper($_GET['ext_jr_id']):$str->value; Modified: trunk/tool_pcmn/index.php =================================================================== --- trunk/tool_pcmn/index.php 2011-11-22 22:31:01 UTC (rev 194) +++ trunk/tool_pcmn/index.php 2011-11-26 01:15:17 UTC (rev 195) @@ -27,7 +27,7 @@ /* * load javascript */ - +Extension::check_version(4400); global $cn; echo '<div style="float:right"><a class="mtitle" style="font-size:140%" href="http://wiki.phpcompta.eu/doku.php?id=importation_de_plan_comptable" target="_blank">Aide</a></div>'; $cn=new Database(dossier::id()); Modified: trunk/tools/index.php =================================================================== --- trunk/tools/index.php 2011-11-22 22:31:01 UTC (rev 194) +++ trunk/tools/index.php 2011-11-26 01:15:17 UTC (rev 195) @@ -23,6 +23,7 @@ /*!\file * \brief main file for tools */ +Extension::check_version(4400); /* * load javascript @@ -38,7 +39,6 @@ array($url.'&sa=op',_('Opération'),_('Changer poste comptable ou fiche'),1), array($url.'&sa=pj',_('Pièce'),_('Rénuméroter des pièces justificative'),2) ); -Extension::check_version(4190); $sa=(isset($_REQUEST['sa']))?$_REQUEST['sa']:""; $def=0; Modified: trunk/tva/ajax.php =================================================================== --- trunk/tva/ajax.php 2011-11-22 22:31:01 UTC (rev 194) +++ trunk/tva/ajax.php 2011-11-26 01:15:17 UTC (rev 195) @@ -57,21 +57,26 @@ $ledger=new Acc_ledger($cn,0); $sel_ledger=$ledger->select_ledger('ODS',1); $r.=h2info('Génération écriture'); - - $r.='<form onsubmit="save_write(this);return false;">'; - $decl=new Ext_Tva($cn); - $decl->set_parameter('id',$_GET['p_id']); - $decl->load(); - $date=new IDate('pdate'); - $r.="Date :".$date->input().'<br>'; - $r.="Choix du journal : ".$sel_ledger->input(); - $r.=$decl->propose_form(); - $r.=HtmlInput::hidden('mt',microtime(true)); - $r.=HtmlInput::extension(); - $r.=dossier::hidden(); - $r.=HtmlInput::submit('save','Sauver','onclick="return confirm(\'Vous confirmez ? \')"'); - $r.='</form>'; - } else + if ($sel_ledger != null) + { + $r.='<form onsubmit="save_write(this);return false;">'; + $decl=new Ext_Tva($cn); + $decl->set_parameter('id',$_GET['p_id']); + $decl->load(); + $date=new IDate('pdate'); + $r.="Date :".$date->input().'<br>'; + $r.="Choix du journal : ".$sel_ledger->input(); + $r.=$decl->propose_form(); + $r.=HtmlInput::hidden('mt',microtime(true)); + $r.=HtmlInput::extension(); + $r.=dossier::hidden(); + $r.=HtmlInput::submit('save','Sauver','onclick="return confirm(\'Vous confirmez ? \')"'); + $r.='</form>'; + } else { + $r.='<h2 class="error"> Aucun journal accessible</h2>'; + } + } + else { $ctl='record_write'; $r=HtmlInput::anchor_close($ctl); Modified: trunk/tva/index.php =================================================================== --- trunk/tva/index.php 2011-11-22 22:31:01 UTC (rev 194) +++ trunk/tva/index.php 2011-11-26 01:15:17 UTC (rev 195) @@ -23,7 +23,7 @@ /*!\file * \brief main file for tva */ -Extension::check_version(3600); +Extension::check_version(4400); $url='?'.dossier::get().'&plugin_code='.$_REQUEST['plugin_code']."&ac=".$_REQUEST['ac']; $array=array ( _______________________________________________ Phpcompta-dev mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/phpcompta-dev
