diff --git a/htdocs/fourn/facture/fiche.php3 b/htdocs/fourn/facture/fiche.php3 index 103272e2b1e..7c4e2346f3d 100644 --- a/htdocs/fourn/facture/fiche.php3 +++ b/htdocs/fourn/facture/fiche.php3 @@ -25,6 +25,8 @@ llxHeader(); $db = new Db(); +$html = new Form($db); + $yn[1] = "oui"; $yn[0] = "non"; @@ -43,7 +45,7 @@ if ($action == 'payed') if ($action == 'update') { - $tva = ($HTTP_POST_VARS["tva_taux"] * $HTTP_POST_VARS["amount"]) / 100 ; + $tva = ($HTTP_POST_VARS["tauxtva"] * $HTTP_POST_VARS["amount"]) / 100 ; $remise = 0; $total = $tva + $amount ; @@ -62,40 +64,70 @@ if ($action == 'update') } - if ($action == 'add') { - $datefacture = $db->idate(mktime(12, 0 , 0, $pmonth, $pday, $pyear)); + $datefacture = $db->idate(mktime(12, + 0, + 0, + $HTTP_POST_VARS["remonth"], + $HTTP_POST_VARS["reday"], + $HTTP_POST_VARS["reyear"])); $tva = 0; $tva = ($tva_taux * $amount) / 100 ; $remise = 0; $total = $tva + $amount ; + $facfou = new FactureFourn($db); + + $facfou->number = $HTTP_POST_VARS["facnumber"]; + $facfou->socid = $HTTP_POST_VARS["socidp"]; + $facfou->libelle = $HTTP_POST_VARS["libelle"]; + $facfou->date = $datefacture; + $facfou->note = $HTTP_POST_VARS["note"]; + + for ($i = 1 ; $i < 5 ; $i++) + { + $label = "label$i"; + $amount = "amount$i"; + $tauxtva = "tauxtva$i"; + + if (strlen($$label)) + { + // print "Ajour ligne $i " . $$label . " " . $$amount . " " . $$tauxtva ; // DEBUG + $facfou->add_ligne($$label, $$amount, $$tauxtva); + } + } + $facfou->create($user); + + /* + $sql = "INSERT INTO llx_facture_fourn (facnumber, libelle, fk_soc, datec, datef, note, amount, remise, tva, total, fk_user_author) "; $sql .= " VALUES ('$facnumber','$libelle', $socidp, now(), $datefacture,'$note', $amount, $remise, $tva, $total, $user->id);"; $result = $db->query($sql); if ($result) - { - $sql = "SELECT rowid, facnumber FROM llx_facture_fourn WHERE facnumber='$facnumber';"; - $result = $db->query($sql); - if ($result) - { - $objfac = $db->fetch_object( 0); - $facid = $objfac->rowid; - $facnumber = $objfac->facnumber; - $action = ''; + { + $sql = "SELECT rowid, facnumber FROM llx_facture_fourn WHERE facnumber='$facnumber';"; + $result = $db->query($sql); + if ($result) + { + $objfac = $db->fetch_object( 0); + $facid = $objfac->rowid; + $facnumber = $objfac->facnumber; + $action = ''; - } - } + } + } else - { - print "

Erreur : la facture n'a pas été créée !$sql
". $db->error(); - print "

Retour à la propal"; - } + { + print "

Erreur : la facture n'a pas été créée !$sql
". $db->error(); + print "

Retour à la propal"; + } $facid = $facid; $action = ''; + */ + } /* * @@ -107,11 +139,12 @@ if ($action == 'add') if ($action == 'create') { - print_titre("Emettre une facture"); + print_titre("Saisir une facture"); - print "

"; - print ''; - print ""; + print ''; + print ''; + print '
Société :
'; + print ''; print ''; - print ""; + print ""; + + print ''; + + print ''; - print ''; print ''; + print ''; + print ''; print ''; @@ -155,315 +194,175 @@ if ($action == 'create') print '"; + $author = $GLOBALS["REMOTE_USER"]; print ""; print ""; - print ""; + + print ''; + print ''; + + print ''; + + print ''; + print ''; + + print ''; + + print ''; + print ''; + print ''; + + print ''; + print ''; + print ''; + + print ''; print ""; print "
Société :Commentaires :
"; - print "
Commentaires :
Numéro :
Numéro :
Libellé :
Date :'; + $html->select_date(); + print '
Montant HT :
Date :"; - $cday = date("d", time()); - print ""; - $cmonth = date("n", time()); - print ""; - - print "
Auteur :".$user->fullname."
Ligne 1 : TVA '; + $html->select_tva("tauxtva1"); + print '
Ligne 2 : TVA '; + $html->select_tva("tauxtva2"); + print '
Ligne 3 : TVA '; + $html->select_tva("tauxtva3"); + print '
Ligne 4 : TVA '; + $html->select_tva("tauxtva4"); + print '
"; } else { - if ($facid > 0) { + $fac = new FactureFourn($db); + $fac->fetch($facid); $sql = "SELECT s.nom as socnom, s.idp as socidp, f.facnumber, f.amount, f.tva, f.total, ".$db->pdate("f.datef")." as df, f.paye, f.fk_statut as statut, f.note, f.libelle, f.rowid"; $sql .= " FROM societe as s,llx_facture_fourn as f WHERE f.fk_soc = s.idp AND f.rowid = $facid"; $result = $db->query( $sql); - if ($result) { - $num = $db->num_rows(); - if ($num) { - $obj = $db->fetch_object( $i); - } - $db->free(); - } else { - print $db->error(); - } - - /* - * Edition - * - * - */ - if ($action == "edit") - { - - print "
rowid\" method=\"post\">"; - print ''; - - print ''; - print ""; - - print ''; - print ''; - - print ''; - print ''; - - print ''; - print ''; - - print ''; - print ''; - - print ""; - - print ""; - print ""; - print ""; - print "
Société :'.stripslashes($obj->socnom); - print 'Commentaires :
'; - print '
Numéro :'; - print $obj->facnumber .'
'; - print '
Libellé :'; - print stripslashes($obj->libelle). '
'; - print '
Montant HT :'.$obj->amount.'
TVA :
Date :"; - - print_date_select($obj->df); - - print "
Auteur :".$user->fullname."
"; - + if ($result) { + $num = $db->num_rows(); + if ($num) { + $obj = $db->fetch_object( $i); + } + $db->free(); + } else { + print $db->error(); } - /* - * Affichage - * - * - */ + /* + * Edition + * + * + */ + if ($action == "edit") + { + print "
rowid\" method=\"post\">"; + print ''; + + print ''; + print ""; + + print ''; + print ''; + + print ''; + + print ''; + + print ''; + + print ''; + print ''; + + print ''; + print ''; + + print ""; + + print ""; + print ""; + print ""; + print "
Société :'.stripslashes($obj->socnom); + print 'Commentaires :
Numéro :'; + print $obj->facnumber .'
'; + print '
'; + print '
Libellé :'; + print stripslashes($obj->libelle). '
'; + print '
Montant HT :'.$obj->amount.'
TVA :
Date :"; + + print_date_select($obj->df); + + print "
Auteur :".$user->fullname."
"; + + } + + /* + * Affichage + * + * + */ - print ""; - print ""; - print ''; - print "\n"; - print ""; - print ""; - - print "
Facture : '.$obj->facnumber.'
socidp\">Autres factures de $obj->socnom
"; - /* - * Facture - */ - print ""; - print ""; - - - - - print "\n"; - print ""; - print ""; - - print ""; - print ""; - print ""; - - print ""; - print ""; - - print ""; - print "
Sociétésocidp\">$obj->socnom
Date".strftime("%A %d %B %Y",$obj->df)."
Libelle$obj->libelle
Auteur$obj->author 
Montant".price($obj->amount)."euros HT
TVA".price($obj->tva)."euros
Total".price($obj->total)."euros TTC
Statut$obj->statutPaye".$yn[$obj->paye]."
"; - - print "
"; - - print nl2br(stripslashes($obj->note)); - - - $_MONNAIE="euros"; - - /* - * Paiements - */ - $sql = "SELECT ".$db->pdate("datep")." as dp, p.amount, c.libelle as paiement_type, p.num_paiement, p.rowid"; - $sql .= " FROM llx_paiement as p, c_paiement as c WHERE p.fk_facture = $facid AND p.fk_paiement = c.id"; - - //$result = $db->query($sql); - $result = 0; - if ($result) { - $num = $db->num_rows(); - $i = 0; $total = 0; - print "

Paiements"; - echo ''; - print ""; - print ""; - print ""; - print ""; - print "\n"; - - $var=True; - while ($i < $num) { - $objp = $db->fetch_object( $i); - $var=!$var; - print ""; - print "\n"; - print "\n"; - print "\n"; - print ""; - $total = $total + $objp->amount; - $i++; - } - print "\n"; - print "\n"; - - $resteapayer = $obj->total - $total; - - print ""; - print "\n"; - - print "
DateTypeMontant 
".strftime("%d %B %Y",$objp->dp)."$objp->paiement_type $objp->num_paiement".price($objp->amount)."$_MONNAIE
Total :".price($total)."$_MONNAIE
Facturé :".price($obj->total)."$_MONNAIE
Reste a payer :".price($resteapayer)."$_MONNAIE
"; - $db->free(); - } else { - // print $db->error(); - } - - print "

"; - - print "

"; - - if ($obj->statut == 0) - { - print ''; - } - else - { - print ""; - } - - - print ''; - - if ($obj->statut == 1 && abs($resteapayer == 0) && $obj->paye == 0) - { - print ""; - } - else - { - print ""; - } - if ($obj->statut == 0) - { - print ""; - } - else - { - print ""; - } - - - print "
['.translate("Delete").']-[Editer][Classer 'Payée']-[Valider]-

"; - - /* - * Documents générés - * - */ - print "


"; - print "\n"; + print ""; + print ''; - /* - * Generation de la facture - * - */ - if ($action == 'pdf') { - print "
Génération de la facture
"; - $command = "export DBI_DSN=\"dbi:mysql:dbname=lolixfr\" "; - $command .= " ; ../../scripts/facture-tex.pl --html -vv --facture=$facid --pdf --gljroot=" . $GLOBALS["GLJ_ROOT"] ; + print '"; + print '"; + print '"; + + print ""; + print ""; + + print ""; + print "
"; - print "Documents associés
"; - print ""; - - $file = $GLOBALS["GLJ_ROOT"] . "/www-sys/doc/facture/$obj->facnumber/$obj->facnumber.pdf"; - if (file_exists($file)) { - print ""; - } - $file = $GLOBALS["GLJ_ROOT"] . "/www-sys/doc/facture/$obj->facnumber/$obj->facnumber.ps"; - if (file_exists($file)) { - print ""; + print "
Propale PDFfacnumber/$obj->facnumber.pdf\">$obj->facnumber.pdf
Propale Postscriptfacnumber/$obj->facnumber.ps\">$obj->facnumber.ps
"; + print ""; + print ''; + print "\n"; print ""; - } - print ""; + print "
Facture : '.$obj->facnumber.'
socidp\">Autres factures de $obj->socnom
(facnumber/\">liste...)
"; + /* + * Facture + */ + print ""; + print ""; - print "
Sociétésocidp\">$obj->socnom
\n
"; + print "
Date".strftime("%A %d %B %Y",$obj->df)."
Libelle$obj->libelle
Auteur'.$obj->author.' 
Total HT'.price($fac->total_ht)."TVA'.price($fac->total_tva)."
Total TTC'.price($fac->total_ttc)."
Statut$obj->statutPaye".$yn[$obj->paye]."
"; + + print ""; + + print nl2br(stripslashes($obj->note)); + + + $_MONNAIE="euros"; + + /* + * Paiements + */ + $sql = "SELECT ".$db->pdate("datep")." as dp, p.amount, c.libelle as paiement_type, p.num_paiement, p.rowid"; + $sql .= " FROM llx_paiement as p, c_paiement as c WHERE p.fk_facture = $facid AND p.fk_paiement = c.id"; - $output = system($command); - print "

command :
$command
"; - print "

output :
$output
"; - } - - - /* - * Propales - */ - - $sql = "SELECT ".$db->pdate("p.datep")." as dp, p.price, p.ref, p.rowid as propalid"; - $sql .= " FROM llx_propal as p, llx_fa_pr as fp WHERE fp.fk_propal = p.rowid AND fp.fk_facture = $facid"; - - $result = $db->query($sql); - if ($result) { - $num = $db->num_rows(); - if ($num) { + //$result = $db->query($sql); + $result = 0; + if ($result) { + $num = $db->num_rows(); $i = 0; $total = 0; - print "

Proposition(s) commerciale(s) associée(s)"; - print ''; + print "

Paiements"; + echo '

'; print ""; - print ""; print ""; - print ""; + print ""; + print ""; print "\n"; $var=True; @@ -471,122 +370,270 @@ else $objp = $db->fetch_object( $i); $var=!$var; print ""; - print "\n"; print "\n"; - print ''; + print "\n"; + print "\n"; print ""; - $total = $total + $objp->price; - $i++; - } - print "\n"; - print "
NumDatePrixTypeMontant 
propalid\">$objp->ref".strftime("%d %B %Y",$objp->dp)."'.price($objp->price).'$objp->paiement_type $objp->num_paiement".price($objp->amount)."$_MONNAIE
Total : ".price($total)." $_MONNAIE HT
"; - } - } else { - print $db->error(); - } - - } else { - /* - * - * Liste - * - * - */ - print_barre_liste("Factures",$page,$PHP_SELF); - - $sql = "SELECT s.nom,s.idp,f.facnumber,f.amount,".$db->pdate("f.datef")." as df,f.paye,f.rowid as facid"; - $sql .= " FROM societe as s,llx_facture as f WHERE f.fk_soc = s.idp"; - - if ($socidp) { - $sql .= " AND s.idp = $socidp"; - } - - if ($month > 0) { - $sql .= " AND date_format(f.datef, '%m') = $month"; - } - if ($year > 0) { - $sql .= " AND date_format(f.datef, '%Y') = $year"; - } - - $sql .= " ORDER BY f.fk_statut, f.paye, f.datef DESC "; - - $result = $db->query($sql); - if ($result) { - $num = $db->num_rows(); - - $i = 0; - print ""; - print ''; - print ""; - print ""; - print "\n"; - - if ($num > 0) { - $var=True; - while ($i < $num) { - $objp = $db->fetch_object( $i); - $var=!$var; - - if ($objp->paye && !$sep) { - print ""; - print ""; - - print ''; - print ""; - print "\n"; - $sep = 1 ; $j = 0; - $subtotal = 0; - } - - print ""; - print "\n"; - print "\n"; - - if ($objp->df > 0 ) { - print "\n"; - } else { - print "\n"; - } - - print "\n"; - $total = $total + $objp->amount; - $subtotal = $subtotal + $objp->amount; - print "\n"; - - print "\n"; $i++; - $j++; - } - } - if ($i == 0) { $i=1; } if ($j == 0) { $j=1; } - print ""; - print ""; - - print ""; - print ""; - - print "
Numéro"; - print_liste_field_titre("Société",$PHP_SELF,"s.nom"); - print "DateMontantPayé
"; - print " Sous Total : ".price($total)."euros HT
Numéro"; - print_liste_field_titre("Société",$PHP_SELF,"s.nom"); - print "DateMontantPayé
facid\">$objp->facnumberidp\">$objp->nom"; - $y = strftime("%Y",$objp->df); - $m = strftime("%m",$objp->df); - - print strftime("%d",$objp->df)."\n"; - print " "; - print strftime("%B",$objp->df)."\n"; - print " "; - print strftime("%Y",$objp->df)."!!!".price($objp->amount)."".$yn[$objp->paye]."
$j factures Sous Total : ".price($subtotal)."euros HT
$i factures Total : ".price($total)."euros HT
"; - $db->free(); - } else { - print $db->error(); - } + print "Total :".price($total)."$_MONNAIE\n"; + print "Facturé :".price($obj->total)."$_MONNAIE\n"; - } + $resteapayer = $obj->total - $total; + + print "Reste a payer :"; + print "".price($resteapayer)."$_MONNAIE\n"; + + print ""; + $db->free(); + } else { + // print $db->error(); + } + + print ""; + + print ""; + /* + * Lignes + * + */ + + print '

'; + print ''; + print ''; + for ($i = 0 ; $i < sizeof($fac->lignes) ; $i++) + { + print '"; + print '"; + print '"; + print '"; + print '"; + print '"; + print '"; + print ''; + } + print "
LibelléP.U. HTQtyTotal HTTotal TTCTVATaux TVA
'.$fac->lignes[$i][0]."'.$fac->lignes[$i][4]."'.$fac->lignes[$i][3]."'.$fac->lignes[$i][1]."'.price($fac->lignes[$i][6])."'.price($fac->lignes[$i][5])."'.$fac->lignes[$i][2]."
"; + + + /* + * Barre de commande + * + * + */ + + print "

"; + + if ($obj->statut == 0) + { + print ''; + } + else + { + print ""; + } + + + print ''; + + if ($obj->statut == 1 && abs($resteapayer == 0) && $obj->paye == 0) + { + print ""; + } + else + { + print ""; + } + if ($obj->statut == 0) + { + print ""; + } + else + { + print ""; + } + + + print "
['.translate("Delete").']-[Editer][Classer 'Payée']-[Valider]-

"; + + /* + * Documents générés + * + */ + print "


"; + print "
"; + print "Documents associés
"; + print ""; + + $file = $GLOBALS["GLJ_ROOT"] . "/www-sys/doc/facture/$obj->facnumber/$obj->facnumber.pdf"; + if (file_exists($file)) { + print ""; + } + $file = $GLOBALS["GLJ_ROOT"] . "/www-sys/doc/facture/$obj->facnumber/$obj->facnumber.ps"; + if (file_exists($file)) { + print ""; + print ""; + } + print ""; + + print "
Propale PDFfacnumber/$obj->facnumber.pdf\">$obj->facnumber.pdf
Propale Postscriptfacnumber/$obj->facnumber.ps\">$obj->facnumber.ps
(facnumber/\">liste...)
\n
"; + + /* + * Generation de la facture + * + */ + if ($action == 'pdf') { + print "
Génération de la facture
"; + $command = "export DBI_DSN=\"dbi:mysql:dbname=lolixfr\" "; + $command .= " ; ../../scripts/facture-tex.pl --html -vv --facture=$facid --pdf --gljroot=" . $GLOBALS["GLJ_ROOT"] ; + + $output = system($command); + print "

command :
$command
"; + print "

output :
$output
"; + } + + + /* + * Propales + */ + + $sql = "SELECT ".$db->pdate("p.datep")." as dp, p.price, p.ref, p.rowid as propalid"; + $sql .= " FROM llx_propal as p, llx_fa_pr as fp WHERE fp.fk_propal = p.rowid AND fp.fk_facture = $facid"; + + $result = $db->query($sql); + if ($result) { + $num = $db->num_rows(); + if ($num) { + $i = 0; $total = 0; + print "

Proposition(s) commerciale(s) associée(s)"; + print ''; + print ""; + print ""; + print ""; + print ""; + print "\n"; + + $var=True; + while ($i < $num) { + $objp = $db->fetch_object( $i); + $var=!$var; + print ""; + print "\n"; + print "\n"; + print ''; + print ""; + $total = $total + $objp->price; + $i++; + } + print "\n"; + print "
NumDatePrix
propalid\">$objp->ref".strftime("%d %B %Y",$objp->dp)."'.price($objp->price).'
Total : ".price($total)." $_MONNAIE HT
"; + } + } else { + print $db->error(); + } + + } else { + /* + * + * Liste + * + * + */ + print_barre_liste("Factures",$page,$PHP_SELF); + + $sql = "SELECT s.nom,s.idp,f.facnumber,f.amount,".$db->pdate("f.datef")." as df,f.paye,f.rowid as facid"; + $sql .= " FROM societe as s,llx_facture as f WHERE f.fk_soc = s.idp"; + + if ($socidp) { + $sql .= " AND s.idp = $socidp"; + } + + if ($month > 0) { + $sql .= " AND date_format(f.datef, '%m') = $month"; + } + if ($year > 0) { + $sql .= " AND date_format(f.datef, '%Y') = $year"; + } + + $sql .= " ORDER BY f.fk_statut, f.paye, f.datef DESC "; + + $result = $db->query($sql); + if ($result) { + $num = $db->num_rows(); + + $i = 0; + print ""; + print ''; + print ""; + print ""; + print "\n"; + + if ($num > 0) { + $var=True; + while ($i < $num) { + $objp = $db->fetch_object( $i); + $var=!$var; + + if ($objp->paye && !$sep) { + print ""; + print ""; + + print ''; + print ""; + print "\n"; + $sep = 1 ; $j = 0; + $subtotal = 0; + } + + print ""; + print "\n"; + print "\n"; + + if ($objp->df > 0 ) { + print "\n"; + } else { + print "\n"; + } + + print "\n"; + + $total = $total + $objp->amount; + $subtotal = $subtotal + $objp->amount; + print "\n"; + + print "\n"; + $i++; + $j++; + + } + } + if ($i == 0) { $i=1; } if ($j == 0) { $j=1; } + print ""; + print ""; + + print ""; + print ""; + + print "
Numéro"; + print_liste_field_titre("Société",$PHP_SELF,"s.nom"); + print "DateMontantPayé
"; + print " Sous Total : ".price($total)."euros HT
Numéro"; + print_liste_field_titre("Société",$PHP_SELF,"s.nom"); + print "DateMontantPayé
facid\">$objp->facnumberidp\">$objp->nom"; + $y = strftime("%Y",$objp->df); + $m = strftime("%m",$objp->df); + + print strftime("%d",$objp->df)."\n"; + print " "; + print strftime("%B",$objp->df)."\n"; + print " "; + print strftime("%Y",$objp->df)."!!!".price($objp->amount)."".$yn[$objp->paye]."
$j factures Sous Total : ".price($subtotal)."euros HT
$i factures Total : ".price($total)."euros HT
"; + $db->free(); + } else { + print $db->error(); + } + + } } diff --git a/htdocs/fourn/facture/index.php3 b/htdocs/fourn/facture/index.php3 index 42babfe10df..47694dbcba8 100644 --- a/htdocs/fourn/facture/index.php3 +++ b/htdocs/fourn/facture/index.php3 @@ -1,5 +1,5 @@ +/* Copyright (C) 2002-2003 Rodolphe Quiedeville * * 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 @@ -57,11 +57,8 @@ if ($action == 'stcomm') { if ($action == 'delete') { - $sql = "DELETE FROM llx_facture_fourn WHERE rowid = $facid;"; - - if (! $db->query( $sql) ) { - print $db->error(); - } + $fac = new FactureFourn($db); + $fac->delete($facid); $facid = 0 ; } @@ -79,19 +76,23 @@ $pagenext = $page + 1; * * */ -if ($mode == 'search') { - if ($mode-search == 'soc') { - $sql = "SELECT s.idp FROM societe as s "; - $sql .= " WHERE lower(s.nom) like '%".strtolower($socname)."%'"; - } - - if ( $db->query($sql) ) { - if ( $db->num_rows() == 1) { - $obj = $db->fetch_object(0); - $socid = $obj->idp; +if ($mode == 'search') +{ + if ($mode-search == 'soc') + { + $sql = "SELECT s.idp FROM societe as s "; + $sql .= " WHERE lower(s.nom) like '%".strtolower($socname)."%'"; + } + + if ( $db->query($sql) ) + { + if ( $db->num_rows() == 1) + { + $obj = $db->fetch_object(0); + $socid = $obj->idp; + } + $db->free(); } - $db->free(); - } } /* * @@ -99,9 +100,12 @@ if ($mode == 'search') { * * */ -if ($socid > 0) { +if ($socid > 0) +{ -} else { +} +else +{ /* * Mode Liste * @@ -120,7 +124,7 @@ if ($socid > 0) { } - $sql = "SELECT s.idp as socid, s.nom, ".$db->pdate("s.datec")." as datec, ".$db->pdate("s.datea")." as datea, s.prefix_comm, fac.amount, fac.paye, fac.libelle, ".$db->pdate("fac.datef")." as datef, fac.rowid as facid"; + $sql = "SELECT s.idp as socid, s.nom, ".$db->pdate("s.datec")." as datec, ".$db->pdate("s.datea")." as datea, s.prefix_comm, fac.amount, fac.paye, fac.libelle, ".$db->pdate("fac.datef")." as datef, fac.rowid as facid, fac.facnumber"; $sql .= " FROM societe as s, llx_facture_fourn as fac "; $sql .= " WHERE fac.fk_soc = s.idp"; @@ -140,6 +144,7 @@ if ($socid > 0) { } print "

"; print ''; + print "'; @@ -152,6 +157,7 @@ if ($socid > 0) { $var=!$var; print ""; + print "\n"; print "\n"; print "\n"; print '';
Numéro"; print "Libelle"; print_liste_field_titre("Société",$PHP_SELF,"s.nom"); print 'Montant
facid\">$obj->facnumberfacid\">$obj->libellesocid\">$obj->nom'.price($obj->amount).'