Trad: Traduction ecran rapport compta
Fix: Quelques corrections mineures sur écrans rapports compta pour info plus claires.
This commit is contained in:
parent
431a48992c
commit
5541ce9351
@ -50,19 +50,19 @@ $html=new Form($db);
|
|||||||
// Affiche en-tête de rapport
|
// Affiche en-tête de rapport
|
||||||
if ($modecompta=="CREANCES-DETTES")
|
if ($modecompta=="CREANCES-DETTES")
|
||||||
{
|
{
|
||||||
$nom="Bilan des recettes et dépenses, détail";
|
$nom=$langs->trans("AnnualByCompaniesDueDebtMode");
|
||||||
$nom.=' (Voir le rapport en <a href="'.$_SERVER["PHP_SELF"].'?year='.$year.'&modecompta=RECETTES-DEPENSES">recettes-dépenses</a> pour n\'inclure que les factures effectivement payées)';
|
$nom.='<br>('.$langs->trans("SeeReportInInputOutputMode",'<a href="'.$_SERVER["PHP_SELF"].'?year='.$year.'&modecompta=RECETTES-DEPENSES">','</a>').')';
|
||||||
$period=$langs->trans("Year")." ".$year;
|
$period=$langs->trans("Year")." ".$year;
|
||||||
$periodlink='<a href='.$_SERVER["PHP_SELF"].'?year='.($year-1).'&modecompta='.$modecompta.'">'.img_previous().'</a> <a href="'.$_SERVER["PHP_SELF"].'?year='.($year+1).'&modecompta='.$modecompta.'">'.img_next().'</a>';
|
$periodlink='<a href="'.$_SERVER["PHP_SELF"].'?year='.($year-1).'&modecompta='.$modecompta.'">'.img_previous().'</a> <a href="'.$_SERVER["PHP_SELF"].'?year='.($year+1).'&modecompta='.$modecompta.'">'.img_next().'</a>';
|
||||||
$description=$langs->trans("RulesResultDue");
|
$description=$langs->trans("RulesResultDue");
|
||||||
$builddate=time();
|
$builddate=time();
|
||||||
$exportlink=$langs->trans("NotYetAvailable");
|
$exportlink=$langs->trans("NotYetAvailable");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$nom="Bilan des recettes et dépenses, détail";
|
$nom=$langs->trans("AnnualByCompaniesInputOutputMode");
|
||||||
$nom.=' (Voir le rapport en <a href="'.$_SERVER["PHP_SELF"].'?year='.$year.'&modecompta=CREANCES-DETTES">créances-dettes</a> pour inclure les factures non encore payée)';
|
$nom.='<br>('.$langs->trans("SeeReportInDueDebtMode",'<a href="'.$_SERVER["PHP_SELF"].'?year='.$year.'&modecompta=CREANCES-DETTES">','</a>').')';
|
||||||
$period=$langs->trans("Year")." ".$year;
|
$period=$langs->trans("Year")." ".$year;
|
||||||
$periodlink='<a href="'.$_SERVER["PHP_SELF"].'?year='.($year-1).'&modecompta='.$modecompta.'">'.img_previous().'</a> <a href="'.$_SERVER["PHP_SELF"].'?year='.($year+1).'&modecompta='.$modecompta.'">'.img_next().'</a>';
|
$periodlink='<a href="'.$_SERVER["PHP_SELF"].'?year='.($year-1).'&modecompta='.$modecompta.'">'.img_previous().'</a> <a href="'.$_SERVER["PHP_SELF"].'?year='.($year+1).'&modecompta='.$modecompta.'">'.img_next().'</a>';
|
||||||
$description=$langs->trans("RulesResultInOut");
|
$description=$langs->trans("RulesResultInOut");
|
||||||
$builddate=time();
|
$builddate=time();
|
||||||
$exportlink=$langs->trans("NotYetAvailable");
|
$exportlink=$langs->trans("NotYetAvailable");
|
||||||
|
|||||||
@ -17,7 +17,6 @@
|
|||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*
|
*
|
||||||
* $Id$
|
* $Id$
|
||||||
* $Source$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -58,19 +57,19 @@ $html=new Form($db);
|
|||||||
// Affiche en-tête du rapport
|
// Affiche en-tête du rapport
|
||||||
if ($modecompta=="CREANCES-DETTES")
|
if ($modecompta=="CREANCES-DETTES")
|
||||||
{
|
{
|
||||||
$nom="Bilan des recettes et dépenses, résumé annuel";
|
$nom=$langs->trans("AnnualSummaryDueDebtMode");
|
||||||
$nom.=' (Voir le rapport <a href="index.php?year_start='.$year_start.'&modecompta=RECETTES-DEPENSES">recettes-dépenses</a> pour n\'inclure que les factures effectivement payées)';
|
$nom.='<br>('.$langs->trans("SeeReportInInputOutputMode",'<a href="'.$_SERVER["PHP_SELF"].'?year_start='.$year_start.'&modecompta=RECETTES-DEPENSES">','</a>').')';
|
||||||
$period="$year_start - $year_end";
|
$period="$year_start - $year_end";
|
||||||
$periodlink=($year_start?"<a href='index.php?year_start=".($year_start-1)."&modecompta=".$modecompta."'>".img_previous()."</a> <a href='index.php?year_start=".($year_start+1)."&modecompta=".$modecompta."'>".img_next()."</a>":"");
|
$periodlink=($year_start?"<a href='".$_SERVER["PHP_SELF"]."?year_start=".($year_start-1)."&modecompta=".$modecompta."'>".img_previous()."</a> <a href='".$_SERVER["PHP_SELF"]."?year_start=".($year_start+1)."&modecompta=".$modecompta."'>".img_next()."</a>":"");
|
||||||
$description=$langs->trans("RulesResultDue");
|
$description=$langs->trans("RulesResultDue");
|
||||||
$builddate=time();
|
$builddate=time();
|
||||||
$exportlink=$langs->trans("NotYetAvailable");
|
$exportlink=$langs->trans("NotYetAvailable");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$nom="Bilan des recettes et dépenses, résumé annuel";
|
$nom=$langs->trans("AnnualSummaryInputOutputMode");
|
||||||
$nom.=' (Voir le rapport en <a href="index.php?year_start='.$year_start.'&modecompta=CREANCES-DETTES">créances-dettes</a> pour inclure les factures non encore payée)';
|
$nom.='<br>('.$langs->trans("SeeReportInDueDebtMode",'<a href="'.$_SERVER["PHP_SELF"].'?year_start='.$year_start.'&modecompta=CREANCES-DETTES">','</a>').')';
|
||||||
$period="$year_start - $year_end";
|
$period="$year_start - $year_end";
|
||||||
$periodlink=($year_start?"<a href='index.php?year_start=".($year_start-1)."&modecompta=".$modecompta."'>".img_previous()."</a> <a href='index.php?year_start=".($year_start+1)."&modecompta=".$modecompta."'>".img_next()."</a>":"");
|
$periodlink=($year_start?"<a href='".$_SERVER["PHP_SELF"]."?year_start=".($year_start-1)."&modecompta=".$modecompta."'>".img_previous()."</a> <a href='".$_SERVER["PHP_SELF"]."?year_start=".($year_start+1)."&modecompta=".$modecompta."'>".img_next()."</a>":"");
|
||||||
$description=$langs->trans("RulesResultInOut");
|
$description=$langs->trans("RulesResultInOut");
|
||||||
$builddate=time();
|
$builddate=time();
|
||||||
$exportlink=$langs->trans("NotYetAvailable");
|
$exportlink=$langs->trans("NotYetAvailable");
|
||||||
@ -81,6 +80,8 @@ $html->report_header($nom,$nomlink,$period,$periodlink,$description,$builddate,$
|
|||||||
/*
|
/*
|
||||||
* Factures clients
|
* Factures clients
|
||||||
*/
|
*/
|
||||||
|
$subtotal_ht = 0;
|
||||||
|
$subtotal_ttc = 0;
|
||||||
if ($modecompta == 'CREANCES-DETTES') {
|
if ($modecompta == 'CREANCES-DETTES') {
|
||||||
$sql = "SELECT sum(f.total) as amount_ht, sum(f.total_ttc) as amount_ttc, date_format(f.datef,'%Y-%m') as dm";
|
$sql = "SELECT sum(f.total) as amount_ht, sum(f.total_ttc) as amount_ttc, date_format(f.datef,'%Y-%m') as dm";
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."societe as s,".MAIN_DB_PREFIX."facture as f";
|
$sql .= " FROM ".MAIN_DB_PREFIX."societe as s,".MAIN_DB_PREFIX."facture as f";
|
||||||
@ -136,6 +137,13 @@ if ($modecompta != 'CREANCES-DETTES') {
|
|||||||
$encaiss[$row->dm] += $row->amount_ht;
|
$encaiss[$row->dm] += $row->amount_ht;
|
||||||
$encaiss_ttc[$row->dm] += $row->amount_ttc;
|
$encaiss_ttc[$row->dm] += $row->amount_ttc;
|
||||||
|
|
||||||
|
// For DEBUG Only
|
||||||
|
if (eregi('^2007',$row->dm))
|
||||||
|
{
|
||||||
|
$subtotal_ht = $subtotal_ht + $row->amount_ht;
|
||||||
|
$subtotal_ttc = $subtotal_ttc + $row->amount_ttc;
|
||||||
|
}
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -143,11 +151,22 @@ if ($modecompta != 'CREANCES-DETTES') {
|
|||||||
dolibarr_print_error($db);
|
dolibarr_print_error($db);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
print "<br>Facture clients: subtotal_ht=".$subtotal_ht.' - subtotal_ttc='.$subtotal_ttc."<br>\n";
|
||||||
|
for ($mois = 1 ; $mois <= 12 ; $mois++)
|
||||||
|
{
|
||||||
|
$annee = 2007;
|
||||||
|
$case = strftime("%Y-%m",dolibarr_mktime(12,0,0,$mois,1,$annee));
|
||||||
|
print 'Mois '.$mois.': '.$decaiss_ttc[$case].' ';
|
||||||
|
print 'Mois '.$mois.': '.$encaiss_ttc[$case].' ';
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Frais, factures fournisseurs.
|
* Frais, factures fournisseurs.
|
||||||
*/
|
*/
|
||||||
|
$subtotal_ht = 0;
|
||||||
|
$subtotal_ttc = 0;
|
||||||
if ($modecompta == 'CREANCES-DETTES') {
|
if ($modecompta == 'CREANCES-DETTES') {
|
||||||
$sql = "SELECT sum(f.total_ht) as amount_ht, sum(f.total_ttc) as amount_ttc, date_format(f.datef,'%Y-%m') as dm";
|
$sql = "SELECT sum(f.total_ht) as amount_ht, sum(f.total_ttc) as amount_ttc, date_format(f.datef,'%Y-%m') as dm";
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."societe as s,".MAIN_DB_PREFIX."facture_fourn as f";
|
$sql .= " FROM ".MAIN_DB_PREFIX."societe as s,".MAIN_DB_PREFIX."facture_fourn as f";
|
||||||
@ -176,6 +195,14 @@ if ($result)
|
|||||||
|
|
||||||
$decaiss[$row->dm] = $row->amount_ht;
|
$decaiss[$row->dm] = $row->amount_ht;
|
||||||
$decaiss_ttc[$row->dm] = $row->amount_ttc;
|
$decaiss_ttc[$row->dm] = $row->amount_ttc;
|
||||||
|
|
||||||
|
// For DEBUG Only
|
||||||
|
if (eregi('^2007',$row->dm))
|
||||||
|
{
|
||||||
|
$subtotal_ht = $subtotal_ht + $row->amount_ht;
|
||||||
|
$subtotal_ttc = $subtotal_ttc + $row->amount_ttc;
|
||||||
|
}
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
$db->free($result);
|
$db->free($result);
|
||||||
@ -183,12 +210,22 @@ if ($result)
|
|||||||
else {
|
else {
|
||||||
dolibarr_print_error($db);
|
dolibarr_print_error($db);
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
print "<br>Facture fournisseurs: subtotal_ht=".$subtotal_ht.' - subtotal_ttc='.$subtotal_ttc."<br>\n";
|
||||||
|
for ($mois = 1 ; $mois <= 12 ; $mois++)
|
||||||
|
{
|
||||||
|
$annee = 2007;
|
||||||
|
$case = strftime("%Y-%m",dolibarr_mktime(12,0,0,$mois,1,$annee));
|
||||||
|
print 'Mois '.$mois.': '.$decaiss_ttc[$case].' ';
|
||||||
|
print 'Mois '.$mois.': '.$encaiss_ttc[$case].' ';
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TVA
|
* TVA
|
||||||
*/
|
*/
|
||||||
|
$subtotal_ht = 0;
|
||||||
|
$subtotal_ttc = 0;
|
||||||
if ($modecompta == 'CREANCES-DETTES') {
|
if ($modecompta == 'CREANCES-DETTES') {
|
||||||
// TVA à payer
|
// TVA à payer
|
||||||
$sql = "SELECT sum(f.tva) as amount, date_format(f.datef,'%Y-%m') as dm";
|
$sql = "SELECT sum(f.tva) as amount, date_format(f.datef,'%Y-%m') as dm";
|
||||||
@ -254,6 +291,12 @@ else {
|
|||||||
|
|
||||||
$decaiss[$obj->dm] += $obj->amount;
|
$decaiss[$obj->dm] += $obj->amount;
|
||||||
$decaiss_ttc[$obj->dm] += $obj->amount;
|
$decaiss_ttc[$obj->dm] += $obj->amount;
|
||||||
|
// For DEBUG Only
|
||||||
|
if (eregi('^2007',$obj->dm))
|
||||||
|
{
|
||||||
|
$subtotal_ht = $subtotal_ht + $obj->amount;
|
||||||
|
$subtotal_ttc = $subtotal_ttc + $obj->amount;
|
||||||
|
}
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
@ -277,6 +320,12 @@ else {
|
|||||||
|
|
||||||
$encaiss[$obj->dm] += $obj->amount;
|
$encaiss[$obj->dm] += $obj->amount;
|
||||||
$encaiss_ttc[$obj->dm] += $obj->amount;
|
$encaiss_ttc[$obj->dm] += $obj->amount;
|
||||||
|
// For DEBUG Only
|
||||||
|
if (eregi('^2007',$obj->dm))
|
||||||
|
{
|
||||||
|
$subtotal_ht = $subtotal_ht + $obj->amount;
|
||||||
|
$subtotal_ttc = $subtotal_ttc + $obj->amount;
|
||||||
|
}
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
@ -285,12 +334,22 @@ else {
|
|||||||
dolibarr_print_error($db);
|
dolibarr_print_error($db);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
print "<br>TVA: subtotal_ht=".$subtotal_ht.' - subtotal_ttc='.$subtotal_ttc."<br>\n";
|
||||||
|
for ($mois = 1 ; $mois <= 12 ; $mois++)
|
||||||
|
{
|
||||||
|
$annee = 2007;
|
||||||
|
$case = strftime("%Y-%m",dolibarr_mktime(12,0,0,$mois,1,$annee));
|
||||||
|
print 'Mois '.$mois.': '.$decaiss_ttc[$case].' ';
|
||||||
|
print 'Mois '.$mois.': '.$encaiss_ttc[$case].' ';
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Charges sociales non déductibles
|
* Charges sociales non déductibles
|
||||||
*/
|
*/
|
||||||
|
$subtotal_ht = 0;
|
||||||
|
$subtotal_ttc = 0;
|
||||||
if ($modecompta == 'CREANCES-DETTES') {
|
if ($modecompta == 'CREANCES-DETTES') {
|
||||||
$sql = "SELECT c.libelle as nom, date_format(s.date_ech,'%Y-%m') as dm, sum(s.amount) as amount_ht, sum(s.amount) as amount_ttc";
|
$sql = "SELECT c.libelle as nom, date_format(s.date_ech,'%Y-%m') as dm, sum(s.amount) as amount_ht, sum(s.amount) as amount_ttc";
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."c_chargesociales as c, ".MAIN_DB_PREFIX."chargesociales as s";
|
$sql .= " FROM ".MAIN_DB_PREFIX."c_chargesociales as c, ".MAIN_DB_PREFIX."chargesociales as s";
|
||||||
@ -322,11 +381,12 @@ if ($result) {
|
|||||||
$decaiss[$obj->dm] += $obj->amount_ht;
|
$decaiss[$obj->dm] += $obj->amount_ht;
|
||||||
$decaiss_ttc[$obj->dm] += $obj->amount_ttc;
|
$decaiss_ttc[$obj->dm] += $obj->amount_ttc;
|
||||||
|
|
||||||
if (ereg('^2004',$obj->dm)) {
|
// For DEBUG Only
|
||||||
$total_ht = $total_ht + $obj->amount_ht;
|
if (eregi('^2007',$obj->dm))
|
||||||
$total_ttc = $total_ttc + $obj->amount_ttc;
|
{
|
||||||
}
|
$subtotal_ht = $subtotal_ht + $obj->amount_ht;
|
||||||
|
$subtotal_ttc = $subtotal_ttc + $obj->amount_ttc;
|
||||||
|
}
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
@ -334,13 +394,24 @@ if ($result) {
|
|||||||
} else {
|
} else {
|
||||||
dolibarr_print_error($db);
|
dolibarr_print_error($db);
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
print "<br>Charges sociales non deduc: subtotal_ht=".$subtotal_ht.' - subtotal_ttc='.$subtotal_ttc."<br>\n";
|
||||||
|
for ($mois = 1 ; $mois <= 12 ; $mois++)
|
||||||
|
{
|
||||||
|
$annee = 2007;
|
||||||
|
$case = strftime("%Y-%m",dolibarr_mktime(12,0,0,$mois,1,$annee));
|
||||||
|
print 'Mois '.$mois.': '.$decaiss_ttc[$case].' ';
|
||||||
|
print 'Mois '.$mois.': '.$encaiss_ttc[$case].' ';
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Charges sociales déductibles
|
* Charges sociales déductibles
|
||||||
*/
|
*/
|
||||||
|
$subtotal_ht = 0;
|
||||||
if ($modecompta == 'CREANCES-DETTES') {
|
$subtotal_ttc = 0;
|
||||||
|
if ($modecompta == 'CREANCES-DETTES')
|
||||||
|
{
|
||||||
$sql = "SELECT c.libelle as nom, date_format(s.date_ech,'%Y-%m') as dm, sum(s.amount) as amount_ht, sum(s.amount) as amount_ttc";
|
$sql = "SELECT c.libelle as nom, date_format(s.date_ech,'%Y-%m') as dm, sum(s.amount) as amount_ht, sum(s.amount) as amount_ttc";
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."c_chargesociales as c, ".MAIN_DB_PREFIX."chargesociales as s";
|
$sql .= " FROM ".MAIN_DB_PREFIX."c_chargesociales as c, ".MAIN_DB_PREFIX."chargesociales as s";
|
||||||
$sql .= " WHERE s.fk_type = c.id AND c.deductible=1";
|
$sql .= " WHERE s.fk_type = c.id AND c.deductible=1";
|
||||||
@ -349,7 +420,8 @@ if ($modecompta == 'CREANCES-DETTES') {
|
|||||||
}
|
}
|
||||||
$sql .= " GROUP BY c.libelle, dm";
|
$sql .= " GROUP BY c.libelle, dm";
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
$sql = "SELECT c.libelle as nom, date_format(p.datep,'%Y-%m') as dm, sum(p.amount) as amount_ht, sum(p.amount) as amount_ttc";
|
$sql = "SELECT c.libelle as nom, date_format(p.datep,'%Y-%m') as dm, sum(p.amount) as amount_ht, sum(p.amount) as amount_ttc";
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."c_chargesociales as c, ".MAIN_DB_PREFIX."chargesociales as s, ".MAIN_DB_PREFIX."paiementcharge as p";
|
$sql .= " FROM ".MAIN_DB_PREFIX."c_chargesociales as c, ".MAIN_DB_PREFIX."chargesociales as s, ".MAIN_DB_PREFIX."paiementcharge as p";
|
||||||
$sql .= " WHERE p.fk_charge = s.rowid AND s.fk_type = c.id AND c.deductible=1";
|
$sql .= " WHERE p.fk_charge = s.rowid AND s.fk_type = c.id AND c.deductible=1";
|
||||||
@ -369,6 +441,13 @@ if ($result) {
|
|||||||
|
|
||||||
$decaiss[$obj->dm] += $obj->amount_ht;
|
$decaiss[$obj->dm] += $obj->amount_ht;
|
||||||
$decaiss_ttc[$obj->dm] += $obj->amount_ttc;
|
$decaiss_ttc[$obj->dm] += $obj->amount_ttc;
|
||||||
|
|
||||||
|
// For DEBUG Only
|
||||||
|
if (eregi('^2007',$obj->dm))
|
||||||
|
{
|
||||||
|
$subtotal_ht = $subtotal_ht + $obj->amount_ht;
|
||||||
|
$subtotal_ttc = $subtotal_ttc + $obj->amount_ttc;
|
||||||
|
}
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
@ -376,12 +455,23 @@ if ($result) {
|
|||||||
} else {
|
} else {
|
||||||
dolibarr_print_error($db);
|
dolibarr_print_error($db);
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
print "<br>Charges sociales deduc: subtotal_ht=".$subtotal_ht.' - subtotal_ttc='.$subtotal_ttc."<br>\n";
|
||||||
|
for ($mois = 1 ; $mois <= 12 ; $mois++)
|
||||||
|
{
|
||||||
|
$annee = 2007;
|
||||||
|
$case = strftime("%Y-%m",dolibarr_mktime(12,0,0,$mois,1,$annee));
|
||||||
|
print 'Mois '.$mois.': '.$decaiss_ttc[$case].' ';
|
||||||
|
print 'Mois '.$mois.': '.$encaiss_ttc[$case].' ';
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Affiche tableau
|
* Affiche tableau
|
||||||
*/
|
*/
|
||||||
|
$totentrees=array();
|
||||||
|
$totsorties=array();
|
||||||
|
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre"><td rowspan=2>'.$langs->trans("Month").'</td>';
|
print '<tr class="liste_titre"><td rowspan=2>'.$langs->trans("Month").'</td>';
|
||||||
@ -400,34 +490,33 @@ for ($annee = $year_start ; $annee <= $year_end ; $annee++)
|
|||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
$var=True;
|
$var=True;
|
||||||
for ($mois = 1 ; $mois < 13 ; $mois++)
|
for ($mois = 1 ; $mois <= 12 ; $mois++)
|
||||||
{
|
{
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print '<tr '.$bc[$var].'>';
|
print '<tr '.$bc[$var].'>';
|
||||||
print "<td>".strftime("%B",mktime(1,1,1,$mois,1,$annee))."</td>";
|
print "<td>".strftime("%B",dolibarr_mktime(12,0,0,$mois,1,$annee))."</td>";
|
||||||
for ($annee = $year_start ; $annee <= $year_end ; $annee++)
|
for ($annee = $year_start ; $annee <= $year_end ; $annee++)
|
||||||
{
|
|
||||||
print '<td align="right"> ';
|
|
||||||
$case = strftime("%Y-%m",mktime(1,1,1,$mois,1,$annee));
|
|
||||||
if ($decaiss_ttc[$case]>0)
|
|
||||||
{
|
{
|
||||||
print price($decaiss_ttc[$case]);
|
$case = strftime("%Y-%m",dolibarr_mktime(12,0,0,$mois,1,$annee));
|
||||||
$totsorties[$annee]+=$decaiss_ttc[$case];
|
|
||||||
|
print '<td align="right"> ';
|
||||||
|
if ($decaiss_ttc[$case] != 0)
|
||||||
|
{
|
||||||
|
print price($decaiss_ttc[$case]);
|
||||||
|
$totsorties[$annee]+=$decaiss_ttc[$case];
|
||||||
|
}
|
||||||
|
print "</td>";
|
||||||
|
|
||||||
|
print '<td align="right"> ';
|
||||||
|
if ($encaiss_ttc[$case] != 0)
|
||||||
|
{
|
||||||
|
print price($encaiss_ttc[$case]);
|
||||||
|
$totentrees[$annee]+=$encaiss_ttc[$case];
|
||||||
|
}
|
||||||
|
print "</td>";
|
||||||
}
|
}
|
||||||
print "</td>";
|
|
||||||
|
|
||||||
print '<td align="right"> ';
|
print '</tr>';
|
||||||
$case = strftime("%Y-%m",mktime(1,1,1,$mois,1,$annee));
|
|
||||||
if ($encaiss_ttc[$case]>0)
|
|
||||||
{
|
|
||||||
print price($encaiss_ttc[$case]);
|
|
||||||
$totentrees[$annee]+=$encaiss_ttc[$case];
|
|
||||||
}
|
|
||||||
print "</td>";
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
print '</tr>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Total
|
// Total
|
||||||
|
|||||||
@ -17,7 +17,6 @@
|
|||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*
|
*
|
||||||
* $Id$
|
* $Id$
|
||||||
* $Source$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -51,8 +50,8 @@ $html=new Form($db);
|
|||||||
// Affiche en-tête du rapport
|
// Affiche en-tête du rapport
|
||||||
if ($modecompta=="CREANCES-DETTES")
|
if ($modecompta=="CREANCES-DETTES")
|
||||||
{
|
{
|
||||||
$nom="Chiffre d'affaire par utilisateur, auteur de la facture";
|
$nom=$langs->trans("SalesTurnover").', '.$langs->trans("ByUserAuthorOfInvoice");
|
||||||
$nom.=' (Voir le rapport <a href="'.$_SERVER["PHP_SELF"].'?year='.($year).'&modecompta=RECETTES-DEPENSES">recettes-dépenses</a> pour n\'inclure que les factures effectivement payées)';
|
$nom.='<br>('.$langs->trans("SeeReportInInputOutputMode",'<a href="'.$_SERVER["PHP_SELF"].'?year='.$year.'&modecompta=RECETTES-DEPENSES">','</a>').')';
|
||||||
$period=$langs->trans("Year")." $year";
|
$period=$langs->trans("Year")." $year";
|
||||||
$periodlink="<a href='".$_SERVER["PHP_SELF"]."?year=".($year-1)."&modecompta=".$modecompta."'>".img_previous()."</a> <a href='".$_SERVER["PHP_SELF"]."?year=".($year+1)."&modecompta=".$modecompta."'>".img_next()."</a>";
|
$periodlink="<a href='".$_SERVER["PHP_SELF"]."?year=".($year-1)."&modecompta=".$modecompta."'>".img_previous()."</a> <a href='".$_SERVER["PHP_SELF"]."?year=".($year+1)."&modecompta=".$modecompta."'>".img_next()."</a>";
|
||||||
$description=$langs->trans("RulesCADue");
|
$description=$langs->trans("RulesCADue");
|
||||||
@ -60,8 +59,8 @@ if ($modecompta=="CREANCES-DETTES")
|
|||||||
$exportlink=$langs->trans("NotYetAvailable");
|
$exportlink=$langs->trans("NotYetAvailable");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$nom="Chiffre d'affaire par utilisateur, auteur de la facture";
|
$nom=$langs->trans("SalesTurnover").', '.$langs->trans("ByUserAuthorOfInvoice");
|
||||||
$nom.=' (Voir le rapport en <a href="'.$_SERVER["PHP_SELF"].'?year='.($year).'&modecompta=CREANCES-DETTES">créances-dettes</a> pour inclure les factures non encore payée)';
|
$nom.='<br>('.$langs->trans("SeeReportInDueDebtMode",'<a href="'.$_SERVER["PHP_SELF"].'?year='.$year.'&modecompta=CREANCES-DETTES">','</a>').')';
|
||||||
$period=$langs->trans("Year")." $year";
|
$period=$langs->trans("Year")." $year";
|
||||||
$periodlink="<a href='".$_SERVER["PHP_SELF"]."?year=".($year-1)."&modecompta=".$modecompta."'>".img_previous()."</a> <a href='".$_SERVER["PHP_SELF"]."?year=".($year+1)."&modecompta=".$modecompta."'>".img_next()."</a>";
|
$periodlink="<a href='".$_SERVER["PHP_SELF"]."?year=".($year-1)."&modecompta=".$modecompta."'>".img_previous()."</a> <a href='".$_SERVER["PHP_SELF"]."?year=".($year+1)."&modecompta=".$modecompta."'>".img_next()."</a>";
|
||||||
$description=$langs->trans("RulesCAIn");
|
$description=$langs->trans("RulesCAIn");
|
||||||
@ -189,7 +188,7 @@ if (sizeof($amount))
|
|||||||
}
|
}
|
||||||
print "<td>".$linkname."</td>\n";
|
print "<td>".$linkname."</td>\n";
|
||||||
print '<td align="right">'.price($amount[$key]).'</td>';
|
print '<td align="right">'.price($amount[$key]).'</td>';
|
||||||
print '<td align="right">'.($catotal > 0 ? price(100 / $catotal * $amount[$key]).'%' : ' ').'</td>';
|
print '<td align="right">'.($catotal > 0 ? round(100 * $amount[$key] / $catotal,2).'%' : ' ').'</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2006-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
||||||
* Copyright (C) 2007 Franky Van Liedekerke <franky.van.liedekerke@telenet.be>
|
* Copyright (C) 2007 Franky Van Liedekerke <franky.van.liedekerke@telenet.be>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -19,7 +18,6 @@
|
|||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*
|
*
|
||||||
* $Id$
|
* $Id$
|
||||||
* $Source$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -52,8 +50,8 @@ $html=new Form($db);
|
|||||||
// Affiche en-tête de rapport
|
// Affiche en-tête de rapport
|
||||||
if ($modecompta=="CREANCES-DETTES")
|
if ($modecompta=="CREANCES-DETTES")
|
||||||
{
|
{
|
||||||
$nom="Chiffre d'affaire par société";
|
$nom=$langs->trans("SalesTurnover").', '.$langs->trans("ByThirdParties");
|
||||||
$nom.=' (Voir le rapport en <a href="'.$_SERVER["PHP_SELF"].'?year='.$year.'&modecompta=RECETTES-DEPENSES">recettes-dépenses</a> pour n\'inclure que les factures effectivement payées)';
|
$nom.='<br>('.$langs->trans("SeeReportInInputOutputMode",'<a href="'.$_SERVER["PHP_SELF"].'?year='.$year.'&modecompta=RECETTES-DEPENSES">','</a>').')';
|
||||||
$period=$langs->trans("Year")." ".$year;
|
$period=$langs->trans("Year")." ".$year;
|
||||||
$periodlink='<a href='.$_SERVER["PHP_SELF"].'?year='.($year-1).'&modecompta='.$modecompta.'">'.img_previous().'</a> <a href="'.$_SERVER["PHP_SELF"].'?year='.($year+1).'&modecompta='.$modecompta.'">'.img_next().'</a>';
|
$periodlink='<a href='.$_SERVER["PHP_SELF"].'?year='.($year-1).'&modecompta='.$modecompta.'">'.img_previous().'</a> <a href="'.$_SERVER["PHP_SELF"].'?year='.($year+1).'&modecompta='.$modecompta.'">'.img_next().'</a>';
|
||||||
$description=$langs->trans("RulesCADue");
|
$description=$langs->trans("RulesCADue");
|
||||||
@ -61,8 +59,8 @@ if ($modecompta=="CREANCES-DETTES")
|
|||||||
$exportlink=$langs->trans("NotYetAvailable");
|
$exportlink=$langs->trans("NotYetAvailable");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$nom="Chiffre d'affaire par société";
|
$nom=$langs->trans("SalesTurnover").', '.$langs->trans("ByThirdParties");
|
||||||
$nom.=' (Voir le rapport en <a href="'.$_SERVER["PHP_SELF"].'?year='.$year.'&modecompta=CREANCES-DETTES">créances-dettes</a> pour inclure les factures non encore payée)';
|
$nom.='<br>('.$langs->trans("SeeReportInDueDebtMode",'<a href="'.$_SERVER["PHP_SELF"].'?year='.$year.'&modecompta=CREANCES-DETTES">','</a>').')';
|
||||||
$period=$langs->trans("Year")." ".$year;
|
$period=$langs->trans("Year")." ".$year;
|
||||||
$periodlink='<a href="'.$_SERVER["PHP_SELF"].'?year='.($year-1).'&modecompta='.$modecompta.'">'.img_previous().'</a> <a href="'.$_SERVER["PHP_SELF"].'?year='.($year+1).'&modecompta='.$modecompta.'">'.img_next().'</a>';
|
$periodlink='<a href="'.$_SERVER["PHP_SELF"].'?year='.($year-1).'&modecompta='.$modecompta.'">'.img_previous().'</a> <a href="'.$_SERVER["PHP_SELF"].'?year='.($year+1).'&modecompta='.$modecompta.'">'.img_next().'</a>';
|
||||||
$description=$langs->trans("RulesCAIn");
|
$description=$langs->trans("RulesCAIn");
|
||||||
@ -190,7 +188,7 @@ if (sizeof($amount))
|
|||||||
}
|
}
|
||||||
print "<td>".$linkname."</td>\n";
|
print "<td>".$linkname."</td>\n";
|
||||||
print '<td align="right">'.price($amount[$key]).'</td>';
|
print '<td align="right">'.price($amount[$key]).'</td>';
|
||||||
print '<td align="right">'.($catotal > 0 ? price(100 / $catotal * $amount[$key]).'%' : ' ').'</td>';
|
print '<td align="right">'.($catotal > 0 ? round(100 * $amount[$key] / $catotal, 2).'%' : ' ').'</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -17,8 +17,6 @@
|
|||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*
|
*
|
||||||
* $Id$
|
* $Id$
|
||||||
* $Source$
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -56,19 +54,19 @@ $html=new Form($db);
|
|||||||
// Affiche en-tête du rapport
|
// Affiche en-tête du rapport
|
||||||
if ($modecompta=="CREANCES-DETTES")
|
if ($modecompta=="CREANCES-DETTES")
|
||||||
{
|
{
|
||||||
$nom="Chiffre d'affaire";
|
$nom=$langs->trans("SalesTurnover");
|
||||||
$nom.=' (Voir le rapport <a href="index.php?year_start='.($year_start).'&modecompta=RECETTES-DEPENSES">recettes-dépenses</a> pour n\'inclure que les factures effectivement payées)';
|
$nom.='<br>('.$langs->trans("SeeReportInInputOutputMode",'<a href="'.$_SERVER["PHP_SELF"].'?year_start='.$year_start.'&modecompta=RECETTES-DEPENSES">','</a>').')';
|
||||||
$period="$year_start - $year_end";
|
$period="$year_start - $year_end";
|
||||||
$periodlink=($year_start?"<a href='index.php?year_start=".($year_start-1)."&modecompta=".$modecompta."'>".img_previous()."</a> <a href='index.php?year_start=".($year_start+1)."&modecompta=".$modecompta."'>".img_next()."</a>":"");
|
$periodlink=($year_start?"<a href='".$_SERVER["PHP_SELF"]."?year_start=".($year_start-1)."&modecompta=".$modecompta."'>".img_previous()."</a> <a href='".$_SERVER["PHP_SELF"]."?year_start=".($year_start+1)."&modecompta=".$modecompta."'>".img_next()."</a>":"");
|
||||||
$description=$langs->trans("RulesCADue");
|
$description=$langs->trans("RulesCADue");
|
||||||
$builddate=time();
|
$builddate=time();
|
||||||
$exportlink=$langs->trans("NotYetAvailable");
|
$exportlink=$langs->trans("NotYetAvailable");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$nom="Chiffre d'affaire";
|
$nom=$langs->trans("SalesTurnover");
|
||||||
$nom.=' (Voir le rapport en <a href="index.php?year_start='.($year_start).'&modecompta=CREANCES-DETTES">créances-dettes</a> pour inclure les factures non encore payée)';
|
$nom.='<br>('.$langs->trans("SeeReportInDueDebtMode",'<a href="'.$_SERVER["PHP_SELF"].'?year_start='.$year_start.'&modecompta=CREANCES-DETTES">','</a>').')';
|
||||||
$period="$year_start - $year_end";
|
$period="$year_start - $year_end";
|
||||||
$periodlink=($year_start?"<a href='index.php?year_start=".($year_start-1)."&modecompta=".$modecompta."'>".img_previous()."</a> <a href='index.php?year_start=".($year_start+1)."&modecompta=".$modecompta."'>".img_next()."</a>":"");
|
$periodlink=($year_start?"<a href='".$_SERVER["PHP_SELF"]."?year_start=".($year_start-1)."&modecompta=".$modecompta."'>".img_previous()."</a> <a href='".$_SERVER["PHP_SELF"]."?year_start=".($year_start+1)."&modecompta=".$modecompta."'>".img_next()."</a>":"");
|
||||||
$description=$langs->trans("RulesCAIn");
|
$description=$langs->trans("RulesCAIn");
|
||||||
$builddate=time();
|
$builddate=time();
|
||||||
$exportlink=$langs->trans("NotYetAvailable");
|
$exportlink=$langs->trans("NotYetAvailable");
|
||||||
|
|||||||
@ -60,6 +60,8 @@ AccountNumberShort=Account number
|
|||||||
AccountNumber=Account number
|
AccountNumber=Account number
|
||||||
NewAccount=New account
|
NewAccount=New account
|
||||||
SalesTurnover=Sales turnover
|
SalesTurnover=Sales turnover
|
||||||
|
ByThirdParties=Bu third parties
|
||||||
|
ByUserAuthorOfInvoice=By invoice author
|
||||||
AccountancyExport=Accountancy export
|
AccountancyExport=Accountancy export
|
||||||
ErrorWrongAccountancyCodeForCompany=Bad customer accountancy code for %s
|
ErrorWrongAccountancyCodeForCompany=Bad customer accountancy code for %s
|
||||||
SuppliersProductsSellSalesTurnover=The generated turnover by the sales of suppliers' products.
|
SuppliersProductsSellSalesTurnover=The generated turnover by the sales of suppliers' products.
|
||||||
|
|||||||
@ -44,10 +44,6 @@ ListPayment=Liste des r
|
|||||||
ListOfPayments=Liste des réglements
|
ListOfPayments=Liste des réglements
|
||||||
ListOfCustomerPayments=Liste des réglements clients
|
ListOfCustomerPayments=Liste des réglements clients
|
||||||
ListOfSupplierPayments=Liste des réglements fournisseurs
|
ListOfSupplierPayments=Liste des réglements fournisseurs
|
||||||
RulesResultDue=- Il inclut les factures, charges et tva dues, qu'elles soient payées ou non.<br>- Il se base sur la date de validation pour les factures et la tva et sur la date d'échéance pour les charges.<br>
|
|
||||||
RulesResultInOut=- Il inclut les réglements effectivement réalisés pour les factures, les charges et la TVA.<br>- Il se base sur la date de réglement de ces factures, charges et TVA.<br>
|
|
||||||
RulesCADue=- Il inclut les factures clients dues, qu'elles soient payées ou non.<br>- Il se base sur la date de validation de ces factures.<br>
|
|
||||||
RulesCAIn=- Il inclut les réglements effectivement reçus des factures clients.<br>- Il se base sur la date de réglement de ces factures<br>
|
|
||||||
DatePayment=Date de réglement
|
DatePayment=Date de réglement
|
||||||
NewVATPayment=Nouveau réglement de TVA
|
NewVATPayment=Nouveau réglement de TVA
|
||||||
VATPayment=Réglement TVA
|
VATPayment=Réglement TVA
|
||||||
@ -60,6 +56,8 @@ AccountNumberShort=N
|
|||||||
AccountNumber=Numéro du compte
|
AccountNumber=Numéro du compte
|
||||||
NewAccount=Nouveau compte
|
NewAccount=Nouveau compte
|
||||||
SalesTurnover=Chiffre d'affaire
|
SalesTurnover=Chiffre d'affaire
|
||||||
|
ByThirdParties=Par tiers
|
||||||
|
ByUserAuthorOfInvoice=Par auteur de la facture
|
||||||
AccountancyExport=Export comptable
|
AccountancyExport=Export comptable
|
||||||
ErrorWrongAccountancyCodeForCompany=Code compta client incorrect pour %s
|
ErrorWrongAccountancyCodeForCompany=Code compta client incorrect pour %s
|
||||||
SuppliersProductsSellSalesTurnover=Chiffres d'affaire générés par la vente des produits des fournisseurs
|
SuppliersProductsSellSalesTurnover=Chiffres d'affaire générés par la vente des produits des fournisseurs
|
||||||
@ -72,4 +70,14 @@ PaySocialContribution=Payer une charge sociale
|
|||||||
ConfirmPaySocialContribution=Etes-vous sûr de vouloir classer cette charge sociale à payé ?
|
ConfirmPaySocialContribution=Etes-vous sûr de vouloir classer cette charge sociale à payé ?
|
||||||
DeleteSocialContribution=Effacer charge sociale
|
DeleteSocialContribution=Effacer charge sociale
|
||||||
ConfirmDeleteSocialContribution=Etes-vous sûr de vouloir supprimer cette charge sociale ?
|
ConfirmDeleteSocialContribution=Etes-vous sûr de vouloir supprimer cette charge sociale ?
|
||||||
ExportDataset_tax_1=Charges sociales et paiements
|
ExportDataset_tax_1=Charges sociales et paiements
|
||||||
|
AnnualSummaryDueDebtMode=Bilan des recettes et dépenses, résumé annuel, en mode <b>%sCréances-Dettes%s</b> dit <b>comptabilité d'engagement</b>.
|
||||||
|
AnnualSummaryInputOutputMode=Bilan des recettes et dépenses, résumé annuel, en mode <b>%sRecettes-Dépenses%s</b> dit <b>comptabilité de caisse</b>.
|
||||||
|
AnnualByCompaniesDueDebtMode=Bilan des recettes et dépenses, détail par tiers, en mode <b>%sCréances-Dettes%s</b> dit <b>comptabilité d'engagement</b>.
|
||||||
|
AnnualByCompaniesInputOutputMode=Bilan des recettes et dépenses, détail par tiers, en mode <b>%sRecettes-Dépenses%s</b> dit <b>comptabilité de caisse</b>.
|
||||||
|
SeeReportInInputOutputMode=Voir le rapport <b>%sRecettes-Dépenses%s</b> dit <b>comptabilité de caisse</b> pour un calcul sur les factures effectivement payées
|
||||||
|
SeeReportInDueDebtMode=Voir le rapport <b>%sCréances-Dettes%s</b> dit <b>comptabilité d'engagement</b> pour un calcul sur les factures non encore payées
|
||||||
|
RulesResultDue=- Les montants affichés sont les montants TTC<br>- Il inclut les factures, charges et tva dues, qu'elles soient payées ou non.<br>- Il se base sur la date de validation pour les factures et la tva et sur la date d'échéance pour les charges.<br>
|
||||||
|
RulesResultInOut=- Les montants affichés sont les montants TTC<br>- Il inclut les réglements effectivement réalisés pour les factures, les charges et la TVA.<br>- Il se base sur la date de réglement de ces factures, charges et TVA.<br>
|
||||||
|
RulesCADue=- Il inclut les factures clients dues, qu'elles soient payées ou non.<br>- Il se base sur la date de validation de ces factures.<br>
|
||||||
|
RulesCAIn=- Il inclut les réglements effectivement reçus des factures clients.<br>- Il se base sur la date de réglement de ces factures<br>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user