Changement nom classe Services => Utils
FossilOrigin-Name: 5c9c126ba0cded04b70823527b639ad5a4c9ddb584f8704683564ed9033b9c95
This commit is contained in:
parent
0c7e90e494
commit
fa590c0d67
5 changed files with 24 additions and 13 deletions
|
|
@ -5,7 +5,7 @@ namespace Garradin\Plugin\RecusFiscaux;
|
|||
use Garradin\DB;
|
||||
use KD2\ZipWriter;
|
||||
|
||||
class Services
|
||||
class Utils
|
||||
{
|
||||
/**
|
||||
* @return liste des activités
|
||||
|
|
@ -213,6 +213,17 @@ class Services
|
|||
)[0]->value;
|
||||
}
|
||||
|
||||
/**
|
||||
* récupérer l'année du premier exercice
|
||||
*/
|
||||
public static function getPremiereAnnee() {
|
||||
return DB::getInstance()->get(
|
||||
"SELECT strftime('%Y', start_date) as annee
|
||||
FROM acc_years
|
||||
ORDER by start_date"
|
||||
)[0]->value;
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// zip archive creation
|
||||
// ------------------------------------------------------------------------
|
||||
Loading…
Add table
Add a link
Reference in a new issue