Skip to content

Commit 567aa13

Browse files
author
mmarchois
committed
Change daily rates order
1 parent c42d8fe commit 567aa13

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

client/src/routes/accounting/daily_rates/_Table.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
<thead>
1111
<tr
1212
class="text-xs font-semibold tracking-wide text-left text-gray-500 uppercase border-b dark:border-gray-700 bg-gray-50 dark:text-gray-400 dark:bg-gray-800">
13-
<th class="px-4 py-3">{$_('accounting.daily_rates.user')}</th>
1413
<th class="px-4 py-3">{$_('accounting.daily_rates.customer')}</th>
14+
<th class="px-4 py-3">{$_('accounting.daily_rates.user')}</th>
1515
<th class="px-4 py-3">{$_('accounting.daily_rates.task')}</th>
1616
<th class="px-4 py-3">{$_('accounting.daily_rates.amount')}</th>
1717
<th class="px-4 py-3">{$_('common.actions')}</th>
@@ -20,8 +20,8 @@
2020
<tbody class="bg-white divide-y dark:divide-gray-700 dark:bg-gray-800">
2121
{#each items as { id, user, task, customer, amount } (id)}
2222
<tr class="text-gray-700 dark:text-gray-400">
23-
<td class="px-4 py-3 text-sm">{user.firstName} {user.lastName}</td>
2423
<td class="px-4 py-3 text-sm">{customer.name}</td>
24+
<td class="px-4 py-3 text-sm">{user.firstName} {user.lastName}</td>
2525
<td class="px-4 py-3 text-sm">{task.name}</td>
2626
<td class="px-4 py-3 text-sm">{format(amount)}</td>
2727
<td class="px-4 py-3">

server/src/Infrastructure/Accounting/Repository/DailyRateRepository.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ export class DailyRateRepository implements IDailyRateRepository {
3434
.innerJoin('dailyRate.user', 'user')
3535
.innerJoin('dailyRate.task', 'task')
3636
.innerJoin('dailyRate.customer', 'customer')
37-
.orderBy('user.lastName', 'ASC')
38-
.addOrderBy('user.firstName', 'ASC')
37+
.orderBy('customer.name', 'ASC')
38+
.addOrderBy('task.name', 'ASC')
3939
.limit(MAX_ITEMS_PER_PAGE)
4040
.offset((page - 1) * MAX_ITEMS_PER_PAGE)
4141
.getManyAndCount();

0 commit comments

Comments
 (0)