diff --git a/htdocs/comm/addpropal.php3 b/htdocs/comm/addpropal.php3 index b467e94ac01..54369c68372 100644 --- a/htdocs/comm/addpropal.php3 +++ b/htdocs/comm/addpropal.php3 @@ -88,7 +88,7 @@ if ($action == 'add') { llxHeader(); -print_titre("Nouvelle proposition commerciale pour $objsoc->nom"); +print_titre("Nouvelle proposition commerciale"); /* @@ -132,6 +132,7 @@ if ($action == 'create') { $smonth = 1; $syear = date("Y", time()); print '
Paiements"; - echo '
Generate pdf file\n"; +print "" if ($verbose && $html); +system("cd $outputdir/ ; pdflatex $numfacture.tex > /dev/null"); + + +# +print "\n**\n** Generate ps file\n**\n"; + print "" if ($verbose && $html); +system("cd $outputdir/ ; dvips $numfacture.dvi -o $numfacture.ps > /dev/null"); + +# +# export DBI_DSN="dbi:mysql:dbname=lolixfr:host=espy" ; ../scripts/facture-tex.pl +# diff --git a/htdocs/fourn/facture/index.php3 b/htdocs/fourn/facture/index.php3 index ee63ffc90e5..94b3d72b4bb 100644 --- a/htdocs/fourn/facture/index.php3 +++ b/htdocs/fourn/facture/index.php3 @@ -103,7 +103,7 @@ if ($socid > 0) { */ print_barre_liste("Liste des factures", $page, $PHP_SELF); - $sql = "SELECT s.idp, 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"; $sql .= " FROM societe as s, llx_facture_fourn as fac "; $sql .= " WHERE fac.fk_soc = s.idp"; @@ -135,7 +135,7 @@ if ($socid > 0) { print "