Minor look enhancement during debug
This commit is contained in:
parent
4c1b1408ed
commit
6762b98c00
@ -560,7 +560,7 @@ print '<tr class="liste_titre"><td class="liste_titre"> </td>';
|
|||||||
|
|
||||||
for ($annee = $year_start ; $annee <= $year_end ; $annee++)
|
for ($annee = $year_start ; $annee <= $year_end ; $annee++)
|
||||||
{
|
{
|
||||||
print '<td align="center" colspan="2">';
|
print '<td align="center" colspan="2" class="borderrightlight">';
|
||||||
print '<a href="clientfourn.php?year='.$annee.'">';
|
print '<a href="clientfourn.php?year='.$annee.'">';
|
||||||
print $annee;
|
print $annee;
|
||||||
if ($conf->global->SOCIETE_FISCAL_MONTH_START > 1) print '-'.($annee+1);
|
if ($conf->global->SOCIETE_FISCAL_MONTH_START > 1) print '-'.($annee+1);
|
||||||
@ -571,7 +571,7 @@ print '<tr class="liste_titre"><td class="liste_titre">'.$langs->trans("Month").
|
|||||||
for ($annee = $year_start ; $annee <= $year_end ; $annee++)
|
for ($annee = $year_start ; $annee <= $year_end ; $annee++)
|
||||||
{
|
{
|
||||||
print '<td align="right">'.$langs->trans("Outcome").'</td>';
|
print '<td align="right">'.$langs->trans("Outcome").'</td>';
|
||||||
print '<td align="right">'.$langs->trans("Income").'</td>';
|
print '<td align="right" class="borderrightlight">'.$langs->trans("Income").'</td>';
|
||||||
}
|
}
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
@ -601,7 +601,7 @@ for ($mois = 1+$nb_mois_decalage ; $mois <= 12+$nb_mois_decalage ; $mois++)
|
|||||||
}
|
}
|
||||||
print "</td>";
|
print "</td>";
|
||||||
|
|
||||||
print '<td align="right"> ';
|
print '<td align="right" class="borderrightlight"> ';
|
||||||
//if (isset($encaiss_ttc[$case]) && $encaiss_ttc[$case] != 0)
|
//if (isset($encaiss_ttc[$case]) && $encaiss_ttc[$case] != 0)
|
||||||
if (isset($encaiss_ttc[$case]))
|
if (isset($encaiss_ttc[$case]))
|
||||||
{
|
{
|
||||||
@ -623,7 +623,7 @@ for ($annee = $year_start ; $annee <= $year_end ; $annee++)
|
|||||||
{
|
{
|
||||||
$nbcols+=2;
|
$nbcols+=2;
|
||||||
print '<td align="right">'.(isset($totsorties[$annee])?price(price2num($totsorties[$annee],'MT')):' ').'</td>';
|
print '<td align="right">'.(isset($totsorties[$annee])?price(price2num($totsorties[$annee],'MT')):' ').'</td>';
|
||||||
print '<td align="right">'.(isset($totentrees[$annee])?price(price2num($totentrees[$annee],'MT')):' ').'</td>';
|
print '<td align="right" style="border-right: 1px solid #DDD">'.(isset($totentrees[$annee])?price(price2num($totentrees[$annee],'MT')):' ').'</td>';
|
||||||
}
|
}
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
@ -637,7 +637,7 @@ $var=!$var;
|
|||||||
print '<tr class="liste_total"><td>'.$langs->trans("Profit").'</td>';
|
print '<tr class="liste_total"><td>'.$langs->trans("Profit").'</td>';
|
||||||
for ($annee = $year_start ; $annee <= $year_end ; $annee++)
|
for ($annee = $year_start ; $annee <= $year_end ; $annee++)
|
||||||
{
|
{
|
||||||
print '<td align="right" colspan="2"> ';
|
print '<td align="right" colspan="2" class="borderrightlight"> ';
|
||||||
if (isset($totentrees[$annee]) || isset($totsorties[$annee]))
|
if (isset($totentrees[$annee]) || isset($totsorties[$annee]))
|
||||||
{
|
{
|
||||||
$in=(isset($totentrees[$annee])?price2num($totentrees[$annee], 'MT'):0);
|
$in=(isset($totentrees[$annee])?price2num($totentrees[$annee], 'MT'):0);
|
||||||
|
|||||||
@ -184,7 +184,7 @@ print '<tr class="liste_titre"><td> </td>';
|
|||||||
for ($annee = $year_start ; $annee <= $year_end ; $annee++)
|
for ($annee = $year_start ; $annee <= $year_end ; $annee++)
|
||||||
{
|
{
|
||||||
if ($modecompta == 'CREANCES-DETTES') print '<td align="center" width="10%" colspan="3">';
|
if ($modecompta == 'CREANCES-DETTES') print '<td align="center" width="10%" colspan="3">';
|
||||||
else print '<td align="center" width="10%" colspan="2">';
|
else print '<td align="center" width="10%" colspan="2" class="borderrightlight">';
|
||||||
print '<a href="casoc.php?year='.$annee.'">';
|
print '<a href="casoc.php?year='.$annee.'">';
|
||||||
print $annee;
|
print $annee;
|
||||||
if ($conf->global->SOCIETE_FISCAL_MONTH_START > 1) print '-'.($annee+1);
|
if ($conf->global->SOCIETE_FISCAL_MONTH_START > 1) print '-'.($annee+1);
|
||||||
@ -198,7 +198,7 @@ for ($annee = $year_start ; $annee <= $year_end ; $annee++)
|
|||||||
{
|
{
|
||||||
if ($modecompta == 'CREANCES-DETTES') print '<td align="right">'.$langs->trans("AmountHT").'</td>';
|
if ($modecompta == 'CREANCES-DETTES') print '<td align="right">'.$langs->trans("AmountHT").'</td>';
|
||||||
print '<td align="right">'.$langs->trans("AmountTTC").'</td>';
|
print '<td align="right">'.$langs->trans("AmountTTC").'</td>';
|
||||||
print '<td align="right">'.$langs->trans("Delta").'</td>';
|
print '<td align="right" class="borderrightlight">'.$langs->trans("Delta").'</td>';
|
||||||
if ($annee != $year_end) print '<td width="15"> </td>';
|
if ($annee != $year_end) print '<td width="15"> </td>';
|
||||||
}
|
}
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
@ -266,29 +266,29 @@ for ($mois = 1+$nb_mois_decalage ; $mois <= 12+$nb_mois_decalage ; $mois++)
|
|||||||
{
|
{
|
||||||
$percent=(round(($cum[$case]-$cum[$caseprev])/$cum[$caseprev],4)*100);
|
$percent=(round(($cum[$case]-$cum[$caseprev])/$cum[$caseprev],4)*100);
|
||||||
//print "X $cum[$case] - $cum[$caseprev] - $cum[$caseprev] - $percent X";
|
//print "X $cum[$case] - $cum[$caseprev] - $cum[$caseprev] - $percent X";
|
||||||
print '<td align="right">'.($percent>=0?"+$percent":"$percent").'%</td>';
|
print '<td align="right" class="borderrightlight">'.($percent>=0?"+$percent":"$percent").'%</td>';
|
||||||
}
|
}
|
||||||
if ($cum[$caseprev] && ! $cum[$case])
|
if ($cum[$caseprev] && ! $cum[$case])
|
||||||
{
|
{
|
||||||
print '<td align="right">-100%</td>';
|
print '<td align="right" class="borderrightlight">-100%</td>';
|
||||||
}
|
}
|
||||||
if (! $cum[$caseprev] && $cum[$case])
|
if (! $cum[$caseprev] && $cum[$case])
|
||||||
{
|
{
|
||||||
//print '<td align="right">+Inf%</td>';
|
//print '<td align="right">+Inf%</td>';
|
||||||
print '<td align="right">-</td>';
|
print '<td align="right" class="borderrightlight">-</td>';
|
||||||
}
|
}
|
||||||
if (isset($cum[$caseprev]) && ! $cum[$caseprev] && ! $cum[$case])
|
if (isset($cum[$caseprev]) && ! $cum[$caseprev] && ! $cum[$case])
|
||||||
{
|
{
|
||||||
print '<td align="right">+0%</td>';
|
print '<td align="right" class="borderrightlight">+0%</td>';
|
||||||
}
|
}
|
||||||
if (! isset($cum[$caseprev]) && ! $cum[$case])
|
if (! isset($cum[$caseprev]) && ! $cum[$case])
|
||||||
{
|
{
|
||||||
print '<td align="right">-</td>';
|
print '<td align="right" class="borderrightlight">-</td>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<td align="right">';
|
print '<td align="right" class="borderrightlight">';
|
||||||
if ($minyearmonth <= $case && $case <= $maxyearmonth) { print '-'; }
|
if ($minyearmonth <= $case && $case <= $maxyearmonth) { print '-'; }
|
||||||
else { print ' '; }
|
else { print ' '; }
|
||||||
print '</td>';
|
print '</td>';
|
||||||
@ -398,24 +398,24 @@ for ($annee = $year_start ; $annee <= $year_end ; $annee++)
|
|||||||
{
|
{
|
||||||
if ($total[$annee-1] && $total[$annee]) {
|
if ($total[$annee-1] && $total[$annee]) {
|
||||||
$percent=(round(($total[$annee]-$total[$annee-1])/$total[$annee-1],4)*100);
|
$percent=(round(($total[$annee]-$total[$annee-1])/$total[$annee-1],4)*100);
|
||||||
print '<td align="right" class="nowrap">'.($percent>=0?"+$percent":"$percent").'%</td>';
|
print '<td align="right" class="nowrap borderrightlight">'.($percent>=0?"+$percent":"$percent").'%</td>';
|
||||||
}
|
}
|
||||||
if ($total[$annee-1] && ! $total[$annee])
|
if ($total[$annee-1] && ! $total[$annee])
|
||||||
{
|
{
|
||||||
print '<td align="right">-100%</td>';
|
print '<td align="right" class="borderrightlight">-100%</td>';
|
||||||
}
|
}
|
||||||
if (! $total[$annee-1] && $total[$annee])
|
if (! $total[$annee-1] && $total[$annee])
|
||||||
{
|
{
|
||||||
print '<td align="right">+Inf%</td>';
|
print '<td align="right" class="borderrightlight">+Inf%</td>';
|
||||||
}
|
}
|
||||||
if (! $total[$annee-1] && ! $total[$annee])
|
if (! $total[$annee-1] && ! $total[$annee])
|
||||||
{
|
{
|
||||||
print '<td align="right">+0%</td>';
|
print '<td align="right" class="borderrightlight">+0%</td>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<td align="right">';
|
print '<td align="right" class="borderrightlight">';
|
||||||
if ($total[$annee] || ($minyear <= $annee && $annee <= max($nowyear,$maxyear))) { print '-'; }
|
if ($total[$annee] || ($minyear <= $annee && $annee <= max($nowyear,$maxyear))) { print '-'; }
|
||||||
else { print ' '; }
|
else { print ' '; }
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|||||||
@ -424,6 +424,10 @@ th .button {
|
|||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.borderrightlight
|
||||||
|
{
|
||||||
|
border-right: 1px solid #DDD;
|
||||||
|
}
|
||||||
|
|
||||||
/* ============================================================================== */
|
/* ============================================================================== */
|
||||||
/* Styles to hide objects */
|
/* Styles to hide objects */
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user