Link from the invoice number in expense index to its edit form

If there is no invoice number, then they can use the edit item from the
menu, but most expenses do have an invoice, thus this is easier for the
most usual case.
This commit is contained in:
jordi fita mas 2024-08-16 01:44:20 +02:00
parent dda32db683
commit 268ab9989a
1 changed files with 5 additions and 1 deletions

View File

@ -82,7 +82,11 @@
<tr>
<td>{{ .InvoicerName }}</td>
<td>{{ .InvoiceDate|formatDate }}</td>
<td>{{ .InvoiceNumber }}</td>
<td>
{{- if .InvoiceNumber -}}
<a href="{{ companyURI "/expenses/"}}{{ .Slug }}">{{ .InvoiceNumber }}</a>
{{- end -}}
</td>
<td class="expense-status-{{ .Status }}">{{ .StatusLabel }}</td>
<td
data-hx-get="{{companyURI "/expenses/"}}{{ .Slug }}/tags/edit"