Overview
Comment:Fix variable when seeing journal of a closed year
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA1: bf9d0e679a7e41df3c8be6f8a526068f51ea4864
User & Date: bohwaz on 2021-01-14 15:05:26
Other Links: manifest | tags
Context
2021-01-14
15:07
Fix bug when an error happens when you try to convert an advanced search to a SQL query check-in: 0ebe7220c6 user: bohwaz tags: trunk, stable
15:05
Fix variable when seeing journal of a closed year check-in: bf9d0e679a user: bohwaz tags: trunk, stable
14:57
Backport: Add alert message if there is nothing to deposit check-in: 0a1806f465 user: bohwaz tags: trunk
Changes

Modified src/www/admin/acc/accounts/journal.php from [c1a4bdf85e] to [2e99d98c0e].

25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
	}

	$tpl->assign('year', $year);
}

// The account has a different chart after changing the current year:
// get back to the list of accounts to select a new account!
if ($account->id_chart != $current_year->id_chart) {
	Utils::redirect(ADMIN_URL . 'acc/accounts/?chart_change');
}

$can_edit = $session->canAccess('compta', Membres::DROIT_ADMIN) && !$year->closed;
$simple = qg('simple');

// Use simplified view for favourite accounts







|







25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
	}

	$tpl->assign('year', $year);
}

// The account has a different chart after changing the current year:
// get back to the list of accounts to select a new account!
if ($account->id_chart != $year->id_chart) {
	Utils::redirect(ADMIN_URL . 'acc/accounts/?chart_change');
}

$can_edit = $session->canAccess('compta', Membres::DROIT_ADMIN) && !$year->closed;
$simple = qg('simple');

// Use simplified view for favourite accounts