| Elément | '; +print "Montant HT | "; +print "||
| Facturation clients | |||
|   | "; + print "Factures idp\">$objp->nom | \n"; + + print "".price($objp->amount)." | \n"; + + $total = $total + $objp->amount; + print "|
| '.price($total).' | |||
| Facturation fournisseurs | |||
|   | "; + print "Factures idp."\">$objp->nom | \n"; + + print "".price($objp->amount)." | \n"; + + $total = $total - $objp->amount; + $subtotal = $subtotal + $objp->amount; + print "|
| '.price($subtotal).' | |||
| Prestations/Charges déductibles | |||
|   | "; + print ''.$obj->nom.' | '; + print ''.price($obj->amount).' | '; + print '|
| '.price($subtotal).' | |||
| Résultat | '.price($total).' | ||
| Prestations/Charges NON déductibles | |||
|   | "; + print ''.$obj->nom.' | '; + print ''.price($obj->amount).' | '; + print '|
| '.price($subtotal).' | |||
| Résultat | '.price($total).' | ||
| Elément | '; -print "Montant | "; +$year_current = $_GET["year"];; +if (! $year_current) { $year_current = strftime("%Y", time()); } + + +print_titre("Résultat comptable, résumé annuel"); +print '||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mois | '; + + +if ($year_current < (MAIN_START_YEAR + 2)) +{ + $year_start = MAIN_START_YEAR; + $year_end = (MAIN_START_YEAR + 2); +} +else +{ + $year_start = $year_current - 2; + $year_end = $year_current; +} + +for ($annee = $year_start ; $annee <= $year_end ; $annee++) +{ + print ''.$annee.' | '; +} +print '||
| Recettes | Dépenses | '; +} +print '||
| ".strftime("%B",mktime(1,1,1,$mois,1,$annee))." | "; + for ($annee = $year_start ; $annee <= $year_end ; $annee++) + { + print ''; + $case = strftime("%Y-%m",mktime(1,1,1,$mois,1,$annee)); + if ($encaiss[$case]>0) + { + print price($encaiss[$case]); + $totentrees[$annee]+=$encaiss[$case]; + } + print " | "; + + print ''; + $case = strftime("%Y-%m",mktime(1,1,1,$mois,1,$annee)); + if ($decaiss[$case]>0) + { + print price($decaiss[$case]); + $totsorties[$annee]+=$decaiss[$case]; + } + print " | "; + } + + print '|
| Total annuel | "; +for ($annee = $year_start ; $annee <= $year_end ; $annee++) +{ + print ''.price($totentrees[$annee]).' | '.price($totsorties[$annee]).' | '; +} print "|
| Factures | |||
|   | "; - print "Factures idp\">$objp->nom | \n"; - - print "".price($objp->amount)." | \n"; - - $total = $total + $objp->amount; - print "|
| '.price($total).' | |||
| Frais | |||
|   | "; - print "Factures idp."\">$objp->nom | \n"; - - print "".price($objp->amount)." | \n"; - - $total = $total - $objp->amount; - $subtotal = $subtotal + $objp->amount; - print "|
| '.price($subtotal).' | |||
| Prestations déductibles | |||
|   | "; - print ''.$obj->nom.' | '; - print ''.price($obj->amount).' | '; - print '|
| '.price($subtotal).' | |||
| Résultat | '.price($total).' | ||
| Prestations NON déductibles | |||
|   | "; - print ''.$obj->nom.' | '; - print ''.price($obj->amount).' | '; - print '|
| '.price($subtotal).' | |||
| Résultat | '.price($total).' | ||