diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index bcbbb538407..f7234c67951 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -267,7 +267,7 @@ if ($_socid > 0) * */ $var = true; - print ''; + print '
'; $sql = "SELECT s.nom, s.idp, p.rowid as propalid, p.price, p.ref, p.remise, ".$db->pdate("p.datep")." as dp, c.label as statut, c.id as statutid"; $sql .= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."propal as p, ".MAIN_DB_PREFIX."c_propalst as c WHERE p.fk_soc = s.idp AND p.fk_statut = c.id"; $sql .= " AND s.idp = ".$objsoc->id." ORDER BY p.datep DESC"; @@ -290,7 +290,7 @@ if ($_socid > 0) { print " > 15 jours"; } - print "\n"; + print "\n"; print ''; print ''; $var=!$var; @@ -299,13 +299,14 @@ if ($_socid > 0) $db->free(); } else { - print "Erreur ".$db->error()."
".$sql; + dolibarr_print_error($db); } + /* * Commandes * */ - print '
".strftime("%d %B %Y",$objp->dp)."".strftime("%d %B %Y",$objp->dp)."'.price($objp->price).''.$objp->statut.'
'; + print '
'; $sql = "SELECT s.nom, s.idp, p.rowid as propalid, p.total_ht, p.ref, ".$db->pdate("p.date_commande")." as dp"; $sql .= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."commande as p WHERE p.fk_soc = s.idp "; $sql .= " AND s.idp = $objsoc->id ORDER BY p.date_commande DESC"; @@ -364,7 +365,7 @@ if ($_socid > 0) $db->free(); print "
"; } else { - print $db->error(); + dolibarr_print_error($db); } /* @@ -563,7 +564,7 @@ if ($_socid > 0) $db->free(); } else { - print $db->error(); + dolibarr_print_error($db); } print ""; @@ -658,7 +659,7 @@ if ($_socid > 0) } else { - print $db->error(); + dolibarr_print_error($db); } print ""; /* diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index d4c17e9261f..874dead560a 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -504,7 +504,7 @@ if ($_GET["propalid"]) print ' '; print ''; print ''; - print $html->select_tva("np_tva_tx") . ''; + print $html->select_tva("np_tva_tx",$conf->defaulttx) . ''; print ''; print ' %'; print ''; @@ -794,18 +794,28 @@ if ($_GET["propalid"]) print ''; print_titre("Envoyer la propale par mail"); - print ''; - print ""; - print ""; + $form=new Form($db); + + // Formulaire envoi mail + print '
Destinatairefirstname)) . " " . ucfirst(strtolower($obj->name)) . " <$obj->email>\">
'; + + // Destinataire + print ""; + print ""; + + // CC print ''; - print ''; + print ''; + + // Sender print ""; print ""; print ""; - print ""; - print ""; - + print "
Destinatairefirstname)) . " " . ucfirst(strtolower($obj->name)) . " <$obj->email>\">
Copie à
Expediteur$from_name$from_mail
Reply-to$replytoname$replytomail
Joindre un fichier en plus de la propale
(conditions générales de ventes ...)
Message
"; + + $form->mail_topicmessagefile(0,1,1,$message); + print "trans("Send")."\">"; print ""; }