diff --git a/htdocs/product/stats/commande.php b/htdocs/product/stats/commande.php index dc33746533b..d1119f7e91f 100644 --- a/htdocs/product/stats/commande.php +++ b/htdocs/product/stats/commande.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2005 Laurent Destailleur + * Copyright (C) 2004-2006 Laurent Destailleur * Copyright (C) 2005 Regis Houssin * * This program is free software; you can redistribute it and/or modify @@ -157,9 +157,19 @@ if ($_GET["id"]) print ''; + // Reference print ''; - print ''; + print ''; print ''; + + // Libelle print ''; print ''; @@ -285,6 +295,8 @@ if ($_GET["id"]) print_liste_field_titre($langs->trans("Status"),$_SERVER["PHP_SELF"],"c.fk_statut","","&id=".$_GET["id"],'align="center"',$sortfield); print "\n"; + $commandestatic=new Commande($db); + if ($num > 0) { $var=True; @@ -302,8 +314,7 @@ if ($_GET["id"]) print ""; print "\n"; - $fac=new Commande($db); - print ''; + print ''; print "\n"; $i++; } diff --git a/htdocs/product/stats/contrat.php b/htdocs/product/stats/contrat.php index 8f142bc51be..114bfbf96d0 100644 --- a/htdocs/product/stats/contrat.php +++ b/htdocs/product/stats/contrat.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2005 Laurent Destailleur + * Copyright (C) 2004-2006 Laurent Destailleur * Copyright (C) 2005 Regis Houssin * * This program is free software; you can redistribute it and/or modify @@ -157,9 +157,19 @@ if ($_GET["id"]) print '
'.$langs->trans("Ref").''.$product->ref.''.$langs->trans("Ref").''; + $product->load_previous_next_ref(); + $previous_ref = $product->ref_previous?''.img_previous().'':''; + $next_ref = $product->ref_next?''.img_next().'':''; + if ($previous_ref || $next_ref) print '
'; + print ''.$product->ref.''; + if ($previous_ref || $next_ref) print ''.$previous_ref.''.$next_ref.'
'; + print '
'.$langs->trans("Label").''.$product->libelle.'
"; print dolibarr_print_date($objp->date)."".price($objp->amount)."'.$fac->LibStatut($objp->statut,1).''.$commandestatic->LibStatut($objp->statut,5).'
'; + // Reference print ''; - print ''; + print ''; print ''; + + // Libelle print ''; print ''; @@ -285,6 +295,8 @@ if ($_GET["id"]) print_liste_field_titre($langs->trans("Status"),$_SERVER["PHP_SELF"],"c.fk_statut","","&id=".$_GET["id"],'align="center"',$sortfield); print "\n"; + $contratstatic=new Contrat($db); + if ($num > 0) { $var=True; @@ -302,8 +314,7 @@ if ($_GET["id"]) print ""; print "\n"; - $fac=new Contrat($db); - print ''; + print ''; print "\n"; $i++; } diff --git a/htdocs/product/stats/facture.php b/htdocs/product/stats/facture.php index 17903b6d78c..d8376f5c20e 100644 --- a/htdocs/product/stats/facture.php +++ b/htdocs/product/stats/facture.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2005 Laurent Destailleur + * Copyright (C) 2004-2006 Laurent Destailleur * Copyright (C) 2005-2006 Regis Houssin * * This program is free software; you can redistribute it and/or modify @@ -317,7 +317,7 @@ if ($_GET["id"] || $_GET["ref"]) print dolibarr_print_date($objp->date).""; print "\n"; $fac=new Facture($db); - print ''; + print ''; print "\n"; $i++; } diff --git a/htdocs/product/stats/propal.php b/htdocs/product/stats/propal.php index 3095e91ad7c..524996255b0 100644 --- a/htdocs/product/stats/propal.php +++ b/htdocs/product/stats/propal.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2005 Laurent Destailleur + * Copyright (C) 2004-2006 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -153,9 +153,19 @@ if ($_GET["id"]) print '
'.$langs->trans("Ref").''.$product->ref.''.$langs->trans("Ref").''; + $product->load_previous_next_ref(); + $previous_ref = $product->ref_previous?''.img_previous().'':''; + $next_ref = $product->ref_next?''.img_next().'':''; + if ($previous_ref || $next_ref) print '
'; + print ''.$product->ref.''; + if ($previous_ref || $next_ref) print ''.$previous_ref.''.$next_ref.'
'; + print '
'.$langs->trans("Label").''.$product->libelle.'
"; print dolibarr_print_date($objp->date)."".price($objp->amount)."'.$fac->LibStatut($objp->paye,$objp->statut,1).''.$contratstatic->LibStatut($objp->statut,5).'
".price($objp->amount)."'.$fac->LibStatut($objp->paye,$objp->statut,1).''.$fac->LibStatut($objp->paye,$objp->statut,5).'
'; + // Reference print ''; - print ''; + print ''; print ''; + + // Libelle print ''; print ''; @@ -279,6 +289,8 @@ if ($_GET["id"]) print_liste_field_titre($langs->trans("Status"),$_SERVER["PHP_SELF"],"p.fk_statut","","&id=".$_GET["id"],'align="center"',$sortfield); print "\n"; + $propalstatic=new Propal($db); + if ($num > 0) { $var=True; @@ -295,8 +307,7 @@ if ($_GET["id"]) print ""; print "\n"; - $prop=new Propal($db); - print ''; + print ''; print "\n"; $i++; }
'.$langs->trans("Ref").''.$product->ref.''.$langs->trans("Ref").''; + $product->load_previous_next_ref(); + $previous_ref = $product->ref_previous?''.img_previous().'':''; + $next_ref = $product->ref_next?''.img_next().'':''; + if ($previous_ref || $next_ref) print '
'; + print ''.$product->ref.''; + if ($previous_ref || $next_ref) print ''.$previous_ref.''.$next_ref.'
'; + print '
'.$langs->trans("Label").''.$product->libelle.'
"; print dolibarr_print_date($objp->date)."".price($objp->amount)."'.$prop->LibStatut($objp->statut,1).''.$propalstatic->LibStatut($objp->statut,5).'