svn+ssh://ns352270.ovh.net/svn/phpcompta/tags/rel601 ........ r4810 | danydb | 2012-04-24 20:55:23 +0200 (Tue, 24 Apr 2012) | 3 lines Removed merge tracking for "svnmerge" for svn+ssh://danydb@ns352270.ovh.net/svn/phpcompta/tags/rel600 ........ r4813 | danydb | 2012-04-24 20:58:20 +0200 (Tue, 24 Apr 2012) | 1 line change SQL ........ r4814 | danydb | 2012-04-24 21:33:02 +0200 (Tue, 24 Apr 2012) | 2 lines Fix bug predefined operation for misc ledger ........ r4815 | danydb | 2012-04-24 21:33:27 +0200 (Tue, 24 Apr 2012) | 3 lines Fix bug predefined operation for misc ledger Fix bug for check_balance (null value) ........ r4816 | danydb | 2012-04-24 21:51:04 +0200 (Tue, 24 Apr 2012) | 1 line fix bug : rounded value ........ r4817 | danydb | 2012-05-01 16:49:39 +0200 (Tue, 01 May 2012) | 2 lines #569 réécriture des menus fournisseur, client et adm ........ r4818 | danydb | 2012-05-01 16:51:35 +0200 (Tue, 01 May 2012) | 2 lines #568: Impossible d'ajouter une fiche BANQUE dans ADM ........ r4819 | danydb | 2012-05-01 16:53:12 +0200 (Tue, 01 May 2012) | 2 lines #570: Ajout d'un menu contact ........ r4820 | danydb | 2012-05-01 16:53:46 +0200 (Tue, 01 May 2012) | 1 line cosmetic : message d'erreur quand on veut ajouter une fiche dans catégorie non existante ........ r4821 | danydb | 2012-05-01 18:38:34 +0200 (Tue, 01 May 2012) | 1 line code : dead code ........
74 lines
2.3 KiB
PHP
74 lines
2.3 KiB
PHP
<?php
|
|
/*
|
|
* This file is part of PhpCompta.
|
|
*
|
|
* PhpCompta is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* PhpCompta is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with PhpCompta; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*/
|
|
/* $Revision: 4701 $ */
|
|
|
|
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
|
|
/*!\file
|
|
* \brief this file will handle all the actions for a specific customer (
|
|
* contact,operation,invoice and financial)
|
|
* include from supplier.inc.php and concerned only the customer card and
|
|
* the customer category
|
|
* parameter
|
|
* - p_action = supplier
|
|
* - sb = detail
|
|
* - sc = dc
|
|
*/
|
|
//----------------------------------------------------------------------------
|
|
// Save modification
|
|
//---------------------------------------------------------------------------
|
|
if ( isset ($_POST['mod']))
|
|
{
|
|
|
|
// modification is asked
|
|
$f_id=$_REQUEST['f_id'];
|
|
|
|
$supplier=new Customer($cn,$f_id);
|
|
$supplier->Save();
|
|
|
|
}
|
|
|
|
echo '<div class="u_content">';
|
|
$f_id=$_REQUEST['f_id'];
|
|
echo '<div class="content" style="width:50%">';
|
|
if ( isset($_POST['mod'])) echo hb(_('Information sauvée'));
|
|
|
|
$supplier=new Fiche($cn,$f_id);
|
|
$p_readonly=($g_user->check_action(FICADD)==0)?true:false;
|
|
if ( ! $p_readonly) echo '<form method="post">';
|
|
echo dossier::hidden();
|
|
echo HtmlInput::hidden('sb','detail');
|
|
echo HtmlInput::hidden('dc','cc');
|
|
echo $supplier->Display($p_readonly);
|
|
$w=new IHidden();
|
|
$w->name="p_action";
|
|
$w->value="supplier";
|
|
echo $w->input();
|
|
$w->name="f_id";
|
|
$w->value=$f_id;
|
|
echo $w->input();
|
|
if ( ! $p_readonly)
|
|
{
|
|
echo HtmlInput::submit('mod',_('Sauver les modifications'));
|
|
echo HtmlInput::reset(_("Annuler"));
|
|
echo HtmlInput::submit('delete_card',_('Effacer cette fiche'),'onclick="return confirm(\'Confirmer effacement ?\');"');
|
|
echo '</form>';
|
|
}
|
|
echo '</div>';
|
|
|
|
|