Overview
Comment:Exclude volunteering accounts from graphs
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA3-256: 41ea740544fdc41c5a8f9fcf0108aa4747932cacf17bf2b4fd2342a9360ecbbc
User & Date: bohwaz on 2021-03-22 13:17:07
Other Links: manifest | tags
Context
2021-03-22
17:23
Fix null comparison in search results check-in: fc00d48b99 user: bohwaz tags: trunk, stable
13:17
Exclude volunteering accounts from graphs check-in: 41ea740544 user: bohwaz tags: trunk, stable
2021-03-12
19:22
Validation error when trying to create a transaction to a non-existing user or year check-in: 93aeaacac6 user: bohwaz tags: trunk, stable
Changes

Modified src/include/lib/Garradin/Accounting/Graph.php from [7ff385bce4] to [af4ec17e7a].

44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
		],
		'debts' => [
			'Comptes de tiers' => ['type' => Account::TYPE_THIRD_PARTY],
		],
	];

	const PIE_TYPES = [
		'revenue' => ['position' => Account::REVENUE],
		'expense' => ['position' => Account::EXPENSE],
		'assets' => ['type' => [Account::TYPE_BANK, Account::TYPE_CASH, Account::TYPE_OUTSTANDING]],
	];

	const WEEKLY_INTERVAL = 604800; // 7 days
	const MONTHLY_INTERVAL = 2635200; // 1 month

	static public function plot(string $type, array $criterias, int $interval = self::WEEKLY_INTERVAL, int $width = 700)







|
|







44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
		],
		'debts' => [
			'Comptes de tiers' => ['type' => Account::TYPE_THIRD_PARTY],
		],
	];

	const PIE_TYPES = [
		'revenue' => ['position' => Account::REVENUE, 'exclude_type' => Account::TYPE_VOLUNTEERING],
		'expense' => ['position' => Account::EXPENSE, 'exclude_type' => Account::TYPE_VOLUNTEERING],
		'assets' => ['type' => [Account::TYPE_BANK, Account::TYPE_CASH, Account::TYPE_OUTSTANDING]],
	];

	const WEEKLY_INTERVAL = 604800; // 7 days
	const MONTHLY_INTERVAL = 2635200; // 1 month

	static public function plot(string $type, array $criterias, int $interval = self::WEEKLY_INTERVAL, int $width = 700)