Overview
Comment:Renommer le namespace Compta -> Accounting
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA1: 1eec72f23b047feef283f225128106f6d415c74e
User & Date: bohwaz on 2020-04-21 00:58:49
Other Links: branch diff | manifest | tags
Context
2020-04-21
02:49
Suppression des catégories comptables, intégration dans le plan comptable check-in: 34c1d2732d user: bohwaz tags: dev
00:58
Renommer le namespace Compta -> Accounting check-in: 1eec72f23b user: bohwaz tags: dev
2020-04-20
01:05
Renommer les entités de compta, passer à l'anglais, simplifier (suppression des moyens de paiement, possibilité d'avoir plusieurs plans comptables, etc.) check-in: 9c856dd92c user: bohwaz tags: dev
Changes

Modified src/include/lib/Garradin/Entities/Accounting/Account.php from [ca23ed40e3] to [e2f1cd5aae].

1
2
3
4
5
6
7
8
9
10
<?php

namespace Garradin\Entities\Compta;

use Garradin\Entity;
use Garradin\DB;
use Garradin\Utils;
use Garradin\UserException;

class Account extends Entity


|







1
2
3
4
5
6
7
8
9
10
<?php

namespace Garradin\Entities\Accounting;

use Garradin\Entity;
use Garradin\DB;
use Garradin\Utils;
use Garradin\UserException;

class Account extends Entity
24
25
26
27
28
29
30



31
32
33
34
35
36
37
	const TYPE_CASH = 2;

	/**
	 * Outstanding transaction accounts (like cheque or card payments)
	 */
	const TYPE_OUTSTANDING = 3;




	protected $id;
	protected $id_plan;
	protected $code;
	protected $parent;
	protected $label;
	protected $position;
	protected $type;







>
>
>







24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
	const TYPE_CASH = 2;

	/**
	 * Outstanding transaction accounts (like cheque or card payments)
	 */
	const TYPE_OUTSTANDING = 3;

	const TYPE_ANALYTICAL = 4;
	const TYPE_VOLUNTEERING = 5;

	protected $id;
	protected $id_plan;
	protected $code;
	protected $parent;
	protected $label;
	protected $position;
	protected $type;

Modified src/include/lib/Garradin/Entities/Accounting/Line.php from [a3e700e1fa] to [90430b6221].

1
2
3
4
5
6
7
8
9
10
<?php

namespace Garradin\Entities\Compta;

use Garradin\Entity;
use Garradin\ValidationException;

class Line extends Entity
{
	const TABLE = 'acc_transactions_lines';


|







1
2
3
4
5
6
7
8
9
10
<?php

namespace Garradin\Entities\Accounting;

use Garradin\Entity;
use Garradin\ValidationException;

class Line extends Entity
{
	const TABLE = 'acc_transactions_lines';

Added src/include/lib/Garradin/Entities/Accounting/Plan.php version [14aba1b6ca].











































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php

namespace Garradin\Entities\Accounting;

use Garradin\Entity;
use Garradin\DB;
use Garradin\Utils;
use Garradin\UserException;

class Plan extends Entity
{
    const TABLE = 'acc_plans';

    protected $id;
    protected $label;
    protected $country;
    protected $code;

    protected $_types = [
        'id'      => 'integer',
        'label'   => 'string',
        'country' => 'string',
        'code'    => '?string',
    ];

    protected $_validation_rules = [
        'label'   => 'required|string|max:200',
        'country' => 'required|string|size:2',
        'code'    => 'string',
    ];

    public function selfCheck(): void
    {
        parent::selfCheck();
        $this->assert(Utils::getCountryName($this->country), 'Le code pays doit être un code ISO valide');
    }
}

Modified src/include/lib/Garradin/Entities/Accounting/Transaction.php from [71f26cd748] to [d3c16f8d2f].

1
2
3
4
5
6
7
8
9
10
<?php

namespace Garradin\Entities\Compta;

use Garradin\Entity;
use Garradin\validatedException;
use Garradin\DB;
use Garradin\Config;

class Transaction extends Entity


|







1
2
3
4
5
6
7
8
9
10
<?php

namespace Garradin\Entities\Accounting;

use Garradin\Entity;
use Garradin\validatedException;
use Garradin\DB;
use Garradin\Config;

class Transaction extends Entity

Modified src/include/lib/Garradin/Entities/Accounting/Year.php from [7f892d19e6] to [7098bad56e].

1
2
3
4
5
6
7
8
9
10
<?php

namespace Garradin\Entities\Compta;

use Garradin\Entity;
use Garradin\DB;
use Garradin\Utils;
use Garradin\UserException;

class Year extends Entity


|







1
2
3
4
5
6
7
8
9
10
<?php

namespace Garradin\Entities\Accounting;

use Garradin\Entity;
use Garradin\DB;
use Garradin\Utils;
use Garradin\UserException;

class Year extends Entity