';
- print '| '.$langs->trans("Ref").' | Produit | ';
- print ''.$langs->trans("Price").' | Remise | Qté. |
';
+ print '';
+ print '| '.$langs->trans("Ref").' | '.$langs->trans("Product").' | ';
+ print ''.$langs->trans("Price").' | '.$langs->trans("Discount").' | '.$langs->trans("Qty").' |
';
$sql = "SELECT pt.rowid, p.label as product, p.ref, pt.subprice, pt.qty, p.rowid as prodid, pt.remise_percent";
$sql .= " FROM ".MAIN_DB_PREFIX."commandedet as pt, ".MAIN_DB_PREFIX."product as p";
@@ -833,13 +833,13 @@ else
$hselected = $h;
$h++;
$head[$h][0] = DOL_URL_ROOT.'/compta/facture/apercu.php?facid='.$fac->id;
- $head[$h][1] = $langs->trans("Apercu");
+ $head[$h][1] = $langs->trans("Preview");
$h++;
if ($fac->mode_reglement == 3)
{
$head[$h][0] = DOL_URL_ROOT.'/compta/facture/prelevement.php?facid='.$fac->id;
- $head[$h][1] = $langs->trans("StandingOrder");
+ $head[$h][1] = $langs->trans("StandingOrders");
$h++;
}
@@ -964,7 +964,7 @@ else
print "
";
$db->free();
} else {
- print $db->error();
+ dolibarr_print_error($db);
}
print "";
@@ -1467,7 +1467,7 @@ else
if ($num)
{
$i = 0; $total = 0;
- print "";
+ print "
";
if ($num >1)
{
print_titre("Propositions commerciales associées");
@@ -1524,6 +1524,8 @@ else
$month=$_GET["month"];
$year=$_GET["year"];
+ $fac=new Facture($db);
+
if ($page == -1)
{
$page = 0 ;
@@ -1674,7 +1676,7 @@ else
}
}
- print '
'.img_object($langs->trans("Bill"),"bill")." ";
+ print ' | '.img_object($langs->trans("ShowBill"),"bill").' ';
print ''.$objp->facnumber.''.$objp->increment." | \n";
if ($objp->df > 0 )
@@ -1693,11 +1695,12 @@ else
{
print "!!! | \n";
}
- print ''.$objp->nom.' | ';
+ print ''.img_object($langs->trans("ShowCompany"),"company").' '.$objp->nom.' | ';
print "".price($objp->total)." | ";
print "".price($objp->total_ttc)." | ";
print "".price($objp->am)." | ";
+
// Affiche statut de la facture
if (! $objp->paye)
{
@@ -1739,7 +1742,7 @@ else
}
print "
";
- $db->free();
+ $db->free($result);
}
else
{
diff --git a/htdocs/compta/facture/apercu.php b/htdocs/compta/facture/apercu.php
index 9554db4225a..cb71f373df6 100644
--- a/htdocs/compta/facture/apercu.php
+++ b/htdocs/compta/facture/apercu.php
@@ -78,14 +78,14 @@ if ($_GET["facid"] > 0)
$head[$h][1] = $langs->trans("CardBill");
$h++;
$head[$h][0] = DOL_URL_ROOT.'/compta/facture/apercu.php?facid='.$fac->id;
- $head[$h][1] = $langs->trans("Apercu");
+ $head[$h][1] = $langs->trans("Preview");
$hselected = $h;
$h++;
if ($fac->mode_reglement == 3)
{
$head[$h][0] = DOL_URL_ROOT.'/compta/facture/prelevement.php?facid='.$fac->id;
- $head[$h][1] = $langs->trans("Prélèvement");
+ $head[$h][1] = $langs->trans("StandingOrders");
$h++;
}
@@ -206,7 +206,8 @@ if ($_GET["facid"] > 0)
imagick_writeimage( $handle, $file .".png");
}
else {
- print "Les fonctions ';
-
- print '| '.$langs->trans("Company").' | ';
- if ($soc->client == 1)
- {
- $url = DOL_URL_ROOT.'/compta/fiche.php?socid='.$soc->id;
- }
- else
- {
- $url = DOL_URL_ROOT.'/comm/prospect/fiche.php?socid='.$soc->id;
- }
- print ''.$soc->nom.' | ';
- print ''.$langs->trans("Status").' | '.$facture->statut_libelle.' |
';
- print '| '.$langs->trans("Date").' | '.strftime("%A %d %B %Y",$facture->date);
- if ($facture->fin_validite)
- {
- print " (".strftime("%d %B %Y",$facture->fin_validite).")";
- }
- print ' | ';
+ print '
| '.$langs->trans("Company").' | ';
+ print '';
+ print ''.$soc->nom.' | ';
- print ''.$langs->trans("Author").' | ';
- $author = new User($db, $facture->user_author);
- $author->fetch('');
- print $author->fullname.' |
';
+ print "Conditions de réglement | " . $facture->cond_reglement ." | ";
+
+ print '| '.$langs->trans("Date").' | ';
+ print "".strftime("%A %d %B %Y",$facture->date)." | \n";
+ print "Date limite de réglement | " . strftime("%d %B %Y",$facture->date_lim_reglement) ." |
";
print '| '.$langs->trans("Note").' : |
';
@@ -165,9 +145,9 @@ if ($_GET["facid"])
print "";
- }
-
}
+
$db->close();
+
llxFooter("Dernière modification $Date$ révision $Revision$");
?>
diff --git a/htdocs/compta/facture/prelevement.php b/htdocs/compta/facture/prelevement.php
index 7b3a062331a..adef351f64d 100644
--- a/htdocs/compta/facture/prelevement.php
+++ b/htdocs/compta/facture/prelevement.php
@@ -100,10 +100,10 @@ if ($_GET["facid"] > 0)
$head[$h][1] = $langs->trans("CardBill");
$h++;
$head[$h][0] = DOL_URL_ROOT.'/compta/facture/apercu.php?facid='.$fac->id;
- $head[$h][1] = $langs->trans("Apercu");
+ $head[$h][1] = $langs->trans("Preview");
$h++;
$head[$h][0] = DOL_URL_ROOT.'/compta/facture/prelevement.php?facid='.$fac->id;
- $head[$h][1] = $langs->trans("Prélévement");
+ $head[$h][1] = $langs->trans("StandingOrders");
$hselected = $h;
$h++;
$head[$h][0] = DOL_URL_ROOT.'/compta/facture/note.php?facid='.$fac->id;
diff --git a/htdocs/langs/en_US/main.lang b/htdocs/langs/en_US/main.lang
index 12a89421e56..ec431be0274 100644
--- a/htdocs/langs/en_US/main.lang
+++ b/htdocs/langs/en_US/main.lang
@@ -173,4 +173,5 @@ ByUsers=By users
Links=Links
Link=Link
Receipts=Receipts
-Rejects=Rejects
\ No newline at end of file
+Rejects=Rejects
+Preview=Preview
\ No newline at end of file
diff --git a/htdocs/langs/en_US/other.lang b/htdocs/langs/en_US/other.lang
index 188683ae2f8..fa9a90ceb93 100644
--- a/htdocs/langs/en_US/other.lang
+++ b/htdocs/langs/en_US/other.lang
@@ -7,6 +7,7 @@ ErrorPasswordDiffers=Passwords differs, please type them again.
ErrorForbidden=Access forbidden.
You try to access to a page, area or feature that is not allowed to your user.
ErrorForbidden2=Permission for this login can be defined by your Dolibarr administrator from menu %s->%s.
ErrorForbidden3=It seems that Dolibarr is not used through an authenticated session. Take a look at Dolibarr setup documentation to know how to manage authentications (htaccess, mod_auth or other...).
+ErrorNoImagickReadimage=Function imagick_readimage is not found in this PHP. No preview can be available.
AddTrip=Add trip
Tools=Tools
Birthday=Birthday
diff --git a/htdocs/langs/fr_FR/main.lang b/htdocs/langs/fr_FR/main.lang
index 3d733aec204..089bde4a556 100644
--- a/htdocs/langs/fr_FR/main.lang
+++ b/htdocs/langs/fr_FR/main.lang
@@ -174,4 +174,5 @@ ByUsers=Par utilisateurs
Links=Liens
Link=Lien
Receipts=Bons
-Rejects=Rejets
\ No newline at end of file
+Rejects=Rejets
+Preview=Aperçu
\ No newline at end of file
diff --git a/htdocs/langs/fr_FR/other.lang b/htdocs/langs/fr_FR/other.lang
index a42e4fc7a6b..e134e6da9c1 100644
--- a/htdocs/langs/fr_FR/other.lang
+++ b/htdocs/langs/fr_FR/other.lang
@@ -7,6 +7,7 @@ ErrorPasswordDiffers=Les mots de passe ne sont pas identiques, veuillez les sais
ErrorForbidden=Accès non autorisé.
Vous essayez d'accéder à une page, zone ou fonction qui n'est pas autorisée pour votre compte utilisateur.
ErrorForbidden2=Les permissions pour ce login peuvent être attribuée par l'administrateur Dolibarr via le menu %s->%s.
ErrorForbidden3=Dolibarr ne semble pas fonctionner au sein d'une session authentifiée. Consulter la documentation d'installation de Dolibarr pour connaitre comment gérer les autentifications (htaccess, mod_auth ou autre...).
+ErrorNoImagickReadimage=La fonction imagick_readimage n'est pas présente sur ce PHP. L'aperçu n'est donc pas disponible.
AddTrip=Créer déplacement
Tools=Outils
Birthday=Anniversaire