From f39691f4734cc3d3565899621959c733010254aa Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 21 Dec 2004 20:06:17 +0000 Subject: [PATCH] Fix: Quelques fixes mineurs --- htdocs/compta/facture.php | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 8d2d894dc62..2421a82eeaa 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -490,20 +490,20 @@ if ($_GET["action"] == 'create') print ''; print ''; - print ''; + print ''; print ''; - print ''; + print ''; print ''; + print ''; print ''; + print ""; + } else { + print ""; } if ($_GET["propalid"] > 0) @@ -543,16 +545,16 @@ if ($_GET["action"] == 'create') print ''; print ''; - print ''; - print '"; + print ''; + print '"; print '"; } elseif ($_GET["commandeid"] > 0) { print ''; - print ''; - print ''; - print '"; + print ''; + print ''; + print '"; print '"; } else @@ -584,11 +586,11 @@ if ($_GET["action"] == 'create') } else { - print $db->error(); + dolibarr_print_error($db); } print '
'.$langs->trans("Company").' :'.$soc->nom.''.$langs->trans("Comment").'
'.$langs->trans("Comments").'
'.$langs->trans("Author").' :'.$user->fullname.''; - print '
'; + print '
'.$langs->trans("Date").' :'; - print_date_select(time()); - print '
'.$langs->trans("Ref").' :Provisoire
Conditions de réglement :"; $sql = "SELECT rowid, libelle FROM ".MAIN_DB_PREFIX."cond_reglement ORDER BY sortorder"; $result = $db->query($sql); @@ -530,6 +530,8 @@ if ($_GET["action"] == 'create') $proj = new Project($db); $html->select_array("projetid",$proj->liste_array($socidp)); print "
 
Proposition'.$obj->ref.'
Montant HT'.price($amount).'
TVA'.price($obj->tva)."
'.$langs->trans("TotalHT").''.price($amount).'
'.$langs->trans("VAT").''.price($obj->tva)."
'.$langs->trans("TotalTTC").''.price($obj->total)."
Commande'.$commande->ref.'
Montant HT'.price($commande->total_ht).'
TVA'.price($commande->total_tva)."
'.$langs->trans("Order").''.$commande->ref.'
'.$langs->trans("TotalHT").''.price($commande->total_ht).'
'.$langs->trans("VAT").''.price($commande->total_tva)."
'.$langs->trans("TotalTTC").''.price($commande->total_ttc)."
'; - print ''; + print ''; if ($conf->service->enabled) { print ''; } @@ -1145,9 +1147,9 @@ else } // Supprimer - if ($fac->statut == 0 && $user->rights->facture->supprimer) + if ($fac->statut == 0 && $user->rights->facture->supprimer && $_GET["action"] != 'delete') { - print "id&action=delete\">".$langs->trans("Delete").""; + print "id&action=delete\">".$langs->trans("Delete").""; } // Envoyer
Services/Produits prédéfinisQuan.Remise    
Services/Produits prédéfinis'.$langs->trans("Qty").''.$langs->trans("Discount").'     Si produit de type service à durée limitée