diff --git a/htdocs/compta/fiche.php b/htdocs/compta/fiche.php index 4d04e031b0f..e4cc496e7cb 100644 --- a/htdocs/compta/fiche.php +++ b/htdocs/compta/fiche.php @@ -227,7 +227,9 @@ if ($socid > 0) print ''.$langs->trans("Name").''.$societe->nom.''; print ''.$langs->trans("Address").''.nl2br($societe->adresse).""; - print ''.$langs->trans('Zip').' / '.$langs->trans('Town').''.$societe->cp." ".$societe->ville.''; + print ''.$langs->trans('Zip').''.$societe->cp.''; + print ''.$langs->trans('Town').''.$societe->ville.''; + print ''.$langs->trans('Country').''.$societe->pays.''; print ''.$langs->trans("Phone").''.$societe->tel.' Fax'.$societe->fax.' '; diff --git a/htdocs/compta/paiement_charge.php b/htdocs/compta/paiement_charge.php index 1e4d5d7acb8..d2796e2ce66 100755 --- a/htdocs/compta/paiement_charge.php +++ b/htdocs/compta/paiement_charge.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2004-2005 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,7 +20,7 @@ * */ -/*! +/** \file htdocs/compta/paiement_charge.php \ingroup compta \brief Page de création d'un paiement d'une charge @@ -33,7 +33,9 @@ include_once(DOL_DOCUMENT_ROOT."/compta/bank/account.class.php"); $chid=isset($_GET["id"])?$_GET["id"]:$_POST["id"]; - +/* + * Actions ajoute paiement + */ if ($_POST["action"] == 'add_paiement') { if ($_POST["paiementtype"] > 0) @@ -190,52 +192,17 @@ if ($_GET["action"] == 'create') print ""; print ''.$langs->trans("Comments").''; - print ''.$langs->trans("Type")." :"; + print ''.$langs->trans("Type").''; + $html->select_types_paiements($charge->paiementtype, "paiementtype"); print "\n"; print ''; print "Numéro :
Numéro du chèque / virement\n"; - print "Compte à créditer :"; - print "\n"; + print 'Compte à créditer :'; + $html->select_comptes($charge->accountid, "accountid", 0, "courant=1"); // Affiche liste des comptes courant + print ''; print "".$langs->trans("RemainderToPay").":".price($total - $sumpayed)." euros TTC\n"; // print "Montant :\n"; diff --git a/htdocs/compta/sociales/charges.php b/htdocs/compta/sociales/charges.php index 112736716c9..43b66dc1b64 100644 --- a/htdocs/compta/sociales/charges.php +++ b/htdocs/compta/sociales/charges.php @@ -113,7 +113,7 @@ if ($chid > 0) $result = $db->query($sql); if ($result) { - $num = $db->num_rows(); + $num = $db->num_rows($result); $i = 0; $total = 0; echo ''; print '';