Skip to content

Commit

Permalink
[FEAT][API] Display Meal Ticket Count (#194)
Browse files Browse the repository at this point in the history
feat / display meal ticket report [API]
  • Loading branch information
Volubyl authored May 7, 2021
1 parent 64d4c63 commit e1c6e32
Show file tree
Hide file tree
Showing 24 changed files with 458 additions and 243 deletions.
12 changes: 11 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,15 @@
"editor.formatOnSave": true
},
"eslint.format.enable": true,
"eslint.lintTask.enable": true
"eslint.lintTask.enable": true,
"eslint.workingDirectories": [
{
"directory": "./client",
"changeProcessCWD": true
},
{
"directory": "./server",
"changeProcessCWD": true
}
],
}
9 changes: 7 additions & 2 deletions client/src/components/Nav.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,17 @@
class="w-full"
href="human_resources/meal_tickets">{$_('human_resources.meal_tickets.title')}</a>
</li>
<li class="{subLinkClass}">
<li class={subLinkClass}>
<a
class="w-full"
href="human_resources/meal_tickets">{$_('human_resources.meal_tickets.title')}</a>
</li>
<li class="{subLinkClass}">
<li class={subLinkClass}>
<a
class="w-full"
href="human_resources/users">{$_('human_resources.users.title')}</a>
</li>
<li class={subLinkClass}>
<a
class="w-full"
href="human_resources/users">{$_('human_resources.users.title')}</a>
Expand Down
4 changes: 2 additions & 2 deletions client/src/normalizer/time.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ export const minutesToHours = (value) => {
const hours = Math.floor(value / 60);
const minutes = value % 60;

if (0 === hours) {
if (hours === 0) {
return `${value}m`;
}

if (0 === minutes) {
if (minutes === 0) {
return `${hours}h`;
}

Expand Down
1 change: 1 addition & 0 deletions client/src/routes/crm/projects/_Table.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
{#each items as { id, name, dayDuration, customer, invoiceUnit } (id)}
<tr class="text-gray-700 dark:text-gray-400">
<td class="px-4 py-3 text-sm">{name}</td>
<td class="px-4 py-3 text-sm">{customer.name}</td>
<td class="px-4 py-3 text-sm">
{$_(`crm.projects.invoice_unit.${invoiceUnit}`)}
</td>
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ services:
nginx:
image: nginx:latest
ports:
- 80:80
- 81:80
depends_on:
- 'client'
- 'api'
Expand Down
Loading

0 comments on commit e1c6e32

Please sign in to comment.