) {
+ s|\#SOCIETE\#|$societe|g;
+
+ s|\#DATE\#|$date|g;
+ s|\#TOTALHT\#|$totalht|g;
+
+ s|\#NUMPROPALE\#|$numpropale|g;
+
+ s|\#FRANCSHT\#|$francsht|g;
+
+ s|\#REMISEHT\#|$remise|g;
+ s|\#TVA\#|$tva|g;
+ s|\#TOTALTTC\#|$total|g;
+
+ s|\#FRANCS\#|$francsttc|g;
+
+ print FC $_;
+}
+close (FF);
+##########################################################################################
+#
+#
+#
+##########################################################################################
+
+close (FC);
+
+$dbh->disconnect if $dbh;
+#
+#
+#
+print "**\n** Generate dvi file\n**\n";
+print "
" if ($verbose && $html);
+system("cd $outputdir/ ; latex $numfacture.tex ");
+#
+#exit;
+
+print "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
+#