Skip to content

Commit

Permalink
Pequeñas mejoras al dashboard: los totales negativos aparecen ahora e…
Browse files Browse the repository at this point in the history
…n rojo y las tablas de recibos y stock ahora son reducidas.
  • Loading branch information
Carlos García Gómez committed Dec 16, 2021
1 parent ada7dad commit 24c82a1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Core/View/Dashboard.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@
{% for key, value in fsc.stats[group] %}
<tr>
<td>{{ i18n.trans(key) }}</td>
{% set color = value < 0 ? ' text-danger' : '' %}
{% if ismoney %}
<td class="text-right">{{ fsc.toolBox().coins().format(value) }}</td>
<td class="text-right{{ color }}">{{ fsc.toolBox().coins().format(value) }}</td>
{% else %}
<td class="text-right">{{ value }}</td>
{% endif %}
Expand Down Expand Up @@ -165,13 +166,13 @@

{% macro sectionLowStock(fsc, i18n) %}
<div class="card shadow mb-3">
<div class="card-body">
<div class="p-3">
<h2 class="h4 mb-0">
<i class="fas fa-pallet fa-fw"></i> {{ i18n.trans('minimum-stock') }}
</h2>
</div>
<div class="table-responsive">
<table class="table table-hover mb-0">
<table class="table table-sm table-hover mb-0">
<thead>
<tr>
<th>{{ i18n.trans('reference') }}</th>
Expand Down Expand Up @@ -251,15 +252,15 @@

{% macro sectionReceipts(fsc, i18n) %}
<div class="card shadow mb-3">
<div class="card-body">
<div class="p-3">
<span class="float-right badge badge-danger">{{ i18n.trans('unpaid') }}</span>
<h2 class="h4 mb-0">
<i class="fas fa-dollar-sign fa-fw"></i>
{{ i18n.trans('receipts') }}
</h2>
</div>
<div class="table-responsive">
<table class="table table-hover mb-0">
<table class="table table-sm table-hover mb-0">
<thead>
<tr>
<th>{{ i18n.trans('customer') }}</th>
Expand Down

0 comments on commit 24c82a1

Please sign in to comment.