File encoding must be iso
This commit is contained in:
parent
8bb152de80
commit
61ac018214
@ -1,4 +1,4 @@
|
|||||||
#Fri May 16 20:28:51 CEST 2008
|
#Wed May 21 02:07:20 GMT 2008
|
||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
encoding//dev/skeletons/modMyModule.class.php=ISO-8859-1
|
encoding//dev/skeletons/modMyModule.class.php=ISO-8859-1
|
||||||
encoding//htdocs/about.php=ISO-8859-1
|
encoding//htdocs/about.php=ISO-8859-1
|
||||||
@ -40,7 +40,7 @@ encoding//htdocs/expedition/stats/month.php=ISO-8859-1
|
|||||||
encoding//htdocs/facture.class.php=ISO-8859-1
|
encoding//htdocs/facture.class.php=ISO-8859-1
|
||||||
encoding//htdocs/fichinter/fichinter.class.php=ISO-8859-1
|
encoding//htdocs/fichinter/fichinter.class.php=ISO-8859-1
|
||||||
encoding//htdocs/fourn/facture/fiche.php=ISO-8859-1
|
encoding//htdocs/fourn/facture/fiche.php=ISO-8859-1
|
||||||
encoding//htdocs/fourn/facture/paiement.php=UTF-8
|
encoding//htdocs/fourn/facture/paiement.php=ISO-8859-1
|
||||||
encoding//htdocs/fourn/facture/paiementfourn.class.php=ISO-8859-1
|
encoding//htdocs/fourn/facture/paiementfourn.class.php=ISO-8859-1
|
||||||
encoding//htdocs/fourn/liste.php=ISO-8859-1
|
encoding//htdocs/fourn/liste.php=ISO-8859-1
|
||||||
encoding//htdocs/html.form.class.php=ISO-8859-1
|
encoding//htdocs/html.form.class.php=ISO-8859-1
|
||||||
|
|||||||
@ -21,11 +21,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/fourn/facture/paiement.php
|
* \file htdocs/fourn/facture/paiement.php
|
||||||
\ingroup fournisseur,facture
|
* \ingroup fournisseur,facture
|
||||||
\brief Paiements des factures fournisseurs
|
* \brief Payment page for suppliers invoices
|
||||||
\version $Id$
|
* \version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require('./pre.inc.php');
|
require('./pre.inc.php');
|
||||||
require(DOL_DOCUMENT_ROOT.'/fourn/facture/paiementfourn.class.php');
|
require(DOL_DOCUMENT_ROOT.'/fourn/facture/paiementfourn.class.php');
|
||||||
@ -41,7 +41,7 @@ $sortfield = isset($_GET['sortfield'])?$_GET['sortfield']:$_POST['sortfield'];
|
|||||||
$sortorder = isset($_GET['sortorder'])?$_GET['sortorder']:$_POST['sortorder'];
|
$sortorder = isset($_GET['sortorder'])?$_GET['sortorder']:$_POST['sortorder'];
|
||||||
$page=isset($_GET['page'])?$_GET['page']:$_POST['page'];
|
$page=isset($_GET['page'])?$_GET['page']:$_POST['page'];
|
||||||
|
|
||||||
// Sécurité accés client
|
// Security check
|
||||||
$socid=0;
|
$socid=0;
|
||||||
if ($user->societe_id > 0)
|
if ($user->societe_id > 0)
|
||||||
{
|
{
|
||||||
@ -63,7 +63,7 @@ if ($action == 'add_paiement')
|
|||||||
$_POST['reyear']);
|
$_POST['reyear']);
|
||||||
$paiement_id = 0;
|
$paiement_id = 0;
|
||||||
$total = 0;
|
$total = 0;
|
||||||
// Génère tableau des montants amounts
|
// Genere tableau des montants amounts
|
||||||
$amounts = array();
|
$amounts = array();
|
||||||
foreach ($_POST as $key => $value)
|
foreach ($_POST as $key => $value)
|
||||||
{
|
{
|
||||||
@ -75,7 +75,7 @@ if ($action == 'add_paiement')
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Effectue les vérifications des parametres
|
// Effectue les verifications des parametres
|
||||||
if ($_POST['paiementid'] <= 0)
|
if ($_POST['paiementid'] <= 0)
|
||||||
{
|
{
|
||||||
$mesg = '<div class="error">'.$langs->trans('ErrorFieldRequired',$langs->transnoentities('PaymentMode')).'</div>';
|
$mesg = '<div class="error">'.$langs->trans('ErrorFieldRequired',$langs->transnoentities('PaymentMode')).'</div>';
|
||||||
@ -132,11 +132,11 @@ if ($action == 'add_paiement')
|
|||||||
$user);
|
$user);
|
||||||
|
|
||||||
// Mise a jour fk_bank dans llx_paiement.
|
// Mise a jour fk_bank dans llx_paiement.
|
||||||
// On connait ainsi le paiement qui a généré l'écriture bancaire
|
// On connait ainsi le paiement qui a genere l'ecriture bancaire
|
||||||
if ($bank_line_id > 0)
|
if ($bank_line_id > 0)
|
||||||
{
|
{
|
||||||
$paiement->update_fk_bank($bank_line_id);
|
$paiement->update_fk_bank($bank_line_id);
|
||||||
// Mise a jour liens (pour chaque facture concernées par le paiement)
|
// Mise a jour liens (pour chaque facture concernees par le paiement)
|
||||||
foreach ($paiement->amounts as $key => $value)
|
foreach ($paiement->amounts as $key => $value)
|
||||||
{
|
{
|
||||||
$facid = $key;
|
$facid = $key;
|
||||||
@ -253,7 +253,7 @@ if ($action == 'create' || $action == 'add_paiement')
|
|||||||
print '<tr><td colspan="2"> </td></tr>';
|
print '<tr><td colspan="2"> </td></tr>';
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* Autres factures impayées
|
* Autres factures impayees
|
||||||
*/
|
*/
|
||||||
$sql = 'SELECT f.rowid as facid,f.rowid as ref,f.facnumber,f.total_ttc,'.$db->pdate('f.datef').' as df';
|
$sql = 'SELECT f.rowid as facid,f.rowid as ref,f.facnumber,f.total_ttc,'.$db->pdate('f.datef').' as df';
|
||||||
$sql .= ', sum(pf.amount) as am';
|
$sql .= ', sum(pf.amount) as am';
|
||||||
@ -261,7 +261,7 @@ if ($action == 'create' || $action == 'add_paiement')
|
|||||||
$sql .= ' LEFT JOIN '.MAIN_DB_PREFIX.'paiementfourn_facturefourn as pf ON pf.fk_facturefourn = f.rowid';
|
$sql .= ' LEFT JOIN '.MAIN_DB_PREFIX.'paiementfourn_facturefourn as pf ON pf.fk_facturefourn = f.rowid';
|
||||||
$sql .= ' WHERE f.fk_soc = '.$facture->socid;
|
$sql .= ' WHERE f.fk_soc = '.$facture->socid;
|
||||||
$sql .= ' AND f.paye = 0';
|
$sql .= ' AND f.paye = 0';
|
||||||
$sql .= ' AND f.fk_statut = 1'; // Statut=0 => non validée, Statut=2 => annulée
|
$sql .= ' AND f.fk_statut = 1'; // Statut=0 => non validee, Statut=2 => annulee
|
||||||
$sql .= ' GROUP BY f.facnumber';
|
$sql .= ' GROUP BY f.facnumber';
|
||||||
$resql = $db->query($sql);
|
$resql = $db->query($sql);
|
||||||
if ($resql)
|
if ($resql)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user