Overview
Comment:Remove links to account journal from projects views
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA3-256: a31ffe9268ba81b19a129615b48029e04f566d39e5fd3b4fc4d36d5e78d7a36f
User & Date: bohwaz on 2023-03-18 18:07:18
Other Links: manifest | tags
Context
2023-03-19
18:48
Allow to have a NULL country for a user if the country is not mandatory check-in: ef6f1b6923 user: bohwaz tags: trunk, stable
2023-03-18
18:07
Remove links to account journal from projects views check-in: a31ffe9268 user: bohwaz tags: trunk, stable
17:52
Use correct template for transaction edit, don't allow to select another year check-in: 7bc499d926 user: bohwaz tags: trunk, stable
Changes

Modified src/templates/acc/reports/ledger.tpl from [c4de0444c8] to [21b34e0e38].

13
14
15
16
17
18
19


20
21
22

23

24
25
26
27
28
29
30

{foreach from=$ledger item="account"}

<details open="open">
	<summary><h2 class="ruler">
		{if !empty($criterias.projects_only)}
			<?php $link = sprintf('%sacc/reports/trial_balance.php?project=%d&year=%d', $admin_url, $account->id, $account->id_year); ?>


		{else}
			<?php $link = sprintf('%sacc/accounts/journal.php?id=%d&year=%d', $admin_url, $account->id, $account->id_year); ?>
		{/if}

			<a href="{$link}">{if $account.code}{$account.code} — {/if}{$account.label}</a>

	</h2></summary>

	<table class="list">
		<thead>
			<tr>
				<td></td>
				<td>N° pièce</td>







>
>

|

>
|
>







13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

{foreach from=$ledger item="account"}

<details open="open">
	<summary><h2 class="ruler">
		{if !empty($criterias.projects_only)}
			<?php $link = sprintf('%sacc/reports/trial_balance.php?project=%d&year=%d', $admin_url, $account->id, $account->id_year); ?>
		{elseif !$criterias.project}
			<?php $link = sprintf('%sacc/accounts/journal.php?id=%d&year=%d&id_project=%d', $admin_url, $account->id, $account->id_year); ?>
		{else}
			<?php $link = null; ?>
		{/if}
		{if $link}<a href="{$link}">{/if}
			{if $account.code}{$account.code} — {/if}{$account.label}
		{if $link}</a>{/if}
	</h2></summary>

	<table class="list">
		<thead>
			<tr>
				<td></td>
				<td>N° pièce</td>

Modified src/templates/acc/reports/trial_balance.tpl from [9f1c3418e1] to [79565d1954].

17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
			{/if}
		</tr>
	</thead>
	<tbody>
	{foreach from=$balance item="account"}
		<tr class="{if $account.balance === 0}disabled{/if}">
			<td class="num">
				{if !empty($year)}<a href="{$admin_url}acc/accounts/journal.php?id={$account.id}&amp;year={$year.id}">{$account.code}</a>
				{else}{$account.code}
				{/if}
			</td>
			<th>{$account.label}</th>
			<td class="money{if !$account.debit} disabled{/if}">{$account.debit|raw|money:false}</td>
			<td class="money{if !$account.credit} disabled{/if}">{$account.credit|raw|money:false}</td>
			{if !$simple}







|







17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
			{/if}
		</tr>
	</thead>
	<tbody>
	{foreach from=$balance item="account"}
		<tr class="{if $account.balance === 0}disabled{/if}">
			<td class="num">
				{if !empty($year) && !$criterias.project}<a href="{$admin_url}acc/accounts/journal.php?id={$account.id}&amp;year={$year.id}">{$account.code}</a>
				{else}{$account.code}
				{/if}
			</td>
			<th>{$account.label}</th>
			<td class="money{if !$account.debit} disabled{/if}">{$account.debit|raw|money:false}</td>
			<td class="money{if !$account.credit} disabled{/if}">{$account.credit|raw|money:false}</td>
			{if !$simple}