Overview
Comment:Fix "save and go to next month"
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA3-256: 86e5a1fedeaa3a496e36aa42497e167efc2a06fc32ad3bee325f8ad9043fcb9a
User & Date: bohwaz on 2022-01-17 23:41:12
Other Links: manifest | tags
Context
2022-01-18
00:01
Fix duplicate missing fields: transaction reference and payment reference check-in: 8748fb3d55 user: bohwaz tags: trunk
2022-01-17
23:41
Fix "save and go to next month" check-in: 86e5a1fede user: bohwaz tags: trunk, stable
22:46
Reminders: remove organization name from subject as it's already added check-in: 0af0fb3861 user: bohwaz tags: trunk, stable
Changes

Modified src/www/admin/acc/accounts/reconcile.php from [f870477b9e] to [3025c7eaf3].

57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
	Transactions::saveReconciled($journal, f('reconcile'));

	if (f('save')) {
		Utils::redirect(Utils::getSelfURI());
	}
	else {
		$start->modify('+1 month');
		$end->modify('+1 month');
		$url = sprintf('%sacc/accounts/reconcile.php?id=%s&start=%s&end=%s&only=%d',
			ADMIN_URL, $account->id(), $start->format('d/m/Y'), $end->format('d/m/Y'), $only);
		Utils::redirect($url);
	}
}, 'acc_reconcile_' . $account->id());

$prev = clone $start;
$next = clone $start;
$prev->modify('-1 month');







<

|







57
58
59
60
61
62
63

64
65
66
67
68
69
70
71
72
	Transactions::saveReconciled($journal, f('reconcile'));

	if (f('save')) {
		Utils::redirect(Utils::getSelfURI());
	}
	else {
		$start->modify('+1 month');

		$url = sprintf('%sacc/accounts/reconcile.php?id=%s&start=%s&end=%s&only=%d',
			ADMIN_URL, $account->id(), $start->format('01/m/Y'), $start->format('t/m/Y'), $only);
		Utils::redirect($url);
	}
}, 'acc_reconcile_' . $account->id());

$prev = clone $start;
$next = clone $start;
$prev->modify('-1 month');