phpcompta-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-dev] r5357 - phpcompta/trunk/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r5357 - phpcompta/trunk/include
Date: Tue, 27 Aug 2013 23:02:39 +0200 (CEST)

Author: danydb
Date: 2013-08-27 23:02:39 +0200 (Tue, 27 Aug 2013)
New Revision: 5357

Modified:
   phpcompta/trunk/include/compta_ven.inc.php
Log:
remove dead code

Modified: phpcompta/trunk/include/compta_ven.inc.php
===================================================================
--- phpcompta/trunk/include/compta_ven.inc.php  2013-08-27 20:58:52 UTC (rev 
5356)
+++ phpcompta/trunk/include/compta_ven.inc.php  2013-08-27 21:02:39 UTC (rev 
5357)
@@ -259,169 +259,5 @@
                echo create_script(" get_last_date()");
        }
        
-    exit();
-
-
-
 exit();
-
-//-------------------------------------------------------------------------------
-// Listing
-//--------------------------------------------------------------------------------
-if ( $def == 2 )
-{
-    echo '<div class="content">';
-// Check privilege
-    if ( isset($_REQUEST['p_jrn']) &&
-            $g_user->check_jrn($_REQUEST['p_jrn']) == 'X')
-    {
-
-        NoAccess();
-        exit -1;
-    }
-
-    $Ledger=new Acc_Ledger_Sold($cn,0);
-    if ( !isset($_REQUEST['p_jrn']))
-    {
-        $Ledger->id=-1;
-    }
-    else
-        $Ledger->id=$_REQUEST['p_jrn'];
-    echo $Ledger->display_search_form();
-    //------------------------------
-    // UPdate the payment
-    //------------------------------
-    if ( isset ( $_GET ['paid']))
-    {
-        $Ledger->update_paid($_GET);
-    }
-    $p_array=$_GET;
-    /* by default we should the default period */
-    if ( ! isset($p_array['date_start']))
-    {
-        $period=$g_user->get_periode();
-        $per=new Periode($cn,$period);
-        list($date_start,$date_end)=$per->get_date_limit();
-        $p_array['date_start']=$date_start;
-        $p_array['date_end']=$date_end;
-    }
-    /*  compute the sql stmt */
-    list($sql,$where)=$Ledger->build_search_sql($p_array);
-
-    $max_line=$cn->count_sql($sql);
-
-    $step=$_SESSION['g_pagesize'];
-    $page=(isset($_GET['offset']))?$_GET['page']:1;
-    $offset=(isset($_GET['offset']))?$_GET['offset']:0;
-    $bar=navigation_bar($offset,$max_line,$step,$page);
-
-
-    echo '<form method="GET" id="fpaidv" class="print" action="'.$href.'">';
-    echo HtmlInput::hidden("sa","l");
-    echo HtmlInput::hidden("p_action","ven");
-    echo dossier::hidden();
-      echo HtmlInput::hidden("ac",$_REQUEST['ac']);
-    echo $bar;
-    list($count,$html)= $Ledger->list_operation($sql,$offset,1);
-    echo $html;
-    echo $bar;
-    
$r=HtmlInput::get_to_hidden(array('l','date_start','date_end','desc','amount_min','amount_max','qcode','accounting','unpaid','gDossier','ledger_type','p_action'));
-    if (isset($_GET['r_jrn'])) {
-      foreach ($_GET['r_jrn'] as $k=>$v)
-       $r.=HtmlInput::hidden('r_jrn['.$k.']',$v);
-    }
-    echo $r;
-
-    echo '<p>'.HtmlInput::submit('paid',_('Mise à jour 
paiement')).IButton::select_checkbox('fpaidv').IButton::unselect_checkbox('fpaidv').'</p>';
-
-    echo '</form>';
-
-    /*
-     * Export to csv
-     */
-    
$r=HtmlInput::get_to_hidden(array('l','date_start','date_end','desc','amount_min','amount_max','qcode','accounting','unpaid','gDossier','ledger_type','p_action'));
-    if (isset($_GET['r_jrn'])) {
-      foreach ($_GET['r_jrn'] as $k=>$v)
-       $r.=HtmlInput::hidden('r_jrn['.$k.']',$v);
-    }
-    echo '<form action="export.php" method="get">';
-    echo $r;
-    echo HtmlInput::hidden('act','CSV:histo');
-    echo HtmlInput::submit('viewsearch','Export vers CSV');
-
-    echo '</form>';
-
-    echo '</div>';
-    exit();
-
-}
-//---------------------------------------------------------------------------
-// Listing unpaid
-//---------------------------------------------------------------------------
-if ( $def==3 )
-{
-    echo '<div class="content">';
-// Check privilege
-    if ( isset($_REQUEST['p_jrn']) &&
-            $g_user->check_jrn($_REQUEST['p_jrn']) == 'X')
-    {
-        NoAccess();
-        exit -1;
-    }
-
-    $Ledger=new Acc_Ledger_Sold($cn,0);
-    if ( !isset($_REQUEST['p_jrn']))
-    {
-        $Ledger->id=-1;
-    }
-    else
-        $Ledger->id=$_REQUEST['p_jrn'];
-    echo $Ledger->display_search_form();
-    //------------------------------
-    // UPdate the payment
-    //------------------------------
-    if ( isset ( $_GET ['paid']))
-    {
-        $Ledger->update_paid($_GET);
-    }
-
-    $p_array=$_GET;
-
-    /*  compute the sql stmt */
-    list($sql,$where)=$Ledger->build_search_sql($p_array);
-    if ( trim($where) != '')
-        $sql .= ' and '.SQL_LIST_UNPAID_INVOICE;
-    else
-        $sql .= ' where '.SQL_LIST_UNPAID_INVOICE;
-
-    $max_line=$cn->count_sql($sql);
-
-    $step=$_SESSION['g_pagesize'];
-    $page=(isset($_GET['offset']))?$_GET['page']:1;
-    $offset=(isset($_GET['offset']))?$_GET['offset']:0;
-    $bar=navigation_bar($offset,$max_line,$step,$page);
-
-
-    echo '<form method="GET" id="fpaidv" class="print" action="'.$href.'">';
-    echo HtmlInput::hidden("sa","lnp");
-    echo HtmlInput::hidden("p_action","ven");
-    echo dossier::hidden();
-    echo $bar;
-    list($count,$html)= $Ledger->list_operation($sql,$offset,1);
-    echo $html;
-    echo $bar;
-
-    
$r=HtmlInput::get_to_hidden(array('l','date_start','date_end','desc','amount_min','amount_max','qcode','accounting','unpaid','gDossier','ledger_type','p_action'));
-    if (isset($_GET['r_jrn'])) {
-      foreach ($_GET['r_jrn'] as $k=>$v)
-       $r.=HtmlInput::hidden('r_jrn['.$k.']',$v);
-    }
-    echo $r;
-
-    echo '<p>'.HtmlInput::submit('paid',_('Mise à jour 
paiement')).IButton::select_checkbox('fpaidv').IButton::unselect_checkbox('fpaidv').'</p>';
-    echo '</form>';
-
-    echo '</div>';
-    exit();
-
-}
+?>



---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]