Skip to content
Snippets Groups Projects
Commit 967666ac authored by Benjamin - Le Filament's avatar Benjamin - Le Filament
Browse files

[UPD] overview view

parent 11f1a638
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,13 @@ ...@@ -22,6 +22,13 @@
color: #495057; color: #495057;
} }
/* Overview */
.tr-detail-header td { .tr-detail-header td {
padding-top: 0; padding-top: 0;
} }
.td-overview-border-left {
border-left: 1px solid #aaa;
}
.td-overview-border-right {
border-right: 1px solid #aaa;
}
...@@ -313,26 +313,49 @@ ...@@ -313,26 +313,49 @@
<tr> <tr>
<th>Stand</th> <th>Stand</th>
<th>Enseigne</th> <th>Enseigne</th>
<th>Hier <small <th
class="td-overview-border-left"
>Hier <small
class="test-muted" class="test-muted"
><t ><t
t-out="values['sales']['day']" t-out="values['sales']['day']"
t-options="{'widget': 'date', 'format': 'dd/MM/yyyy'}" t-options="{'widget': 'date', 'format': 'dd/MM/yyyy'}"
/></small></th> /></small></th>
<th colspan="4">Ce mois-ci</th> <th
<th colspan="4">Cette année</th> colspan="4"
class="td-overview-border-left td-overview-border-right"
>Ce mois-ci</th>
<th
colspan="4"
>Cette année</th>
</tr> </tr>
<tr class="tr-detail-header"> <tr class="tr-detail-header">
<td /> <td />
<td /> <td />
<td /> <td
<td class="text-muted">CA</td> class="td-overview-border-left"
<td class="text-muted">Panier moyen</td> />
<td class="text-muted">Objectif</td> <td
<td /> class="text-muted td-overview-border-left"
<td class="text-muted">CA</td> >CA</td>
<td class="text-muted">Panier moyen</td> <td
<td class="text-muted">Objectif</td> class="text-muted"
>Panier moyen</td>
<td
class="text-muted"
>Objectif</td>
<td
class="td-overview-border-right"
/>
<td
class="text-muted"
>CA</td>
<td
class="text-muted"
>Panier moyen</td>
<td
class="text-muted"
>Objectif</td>
<td /> <td />
</tr> </tr>
</thead> </thead>
...@@ -364,12 +387,12 @@ ...@@ -364,12 +387,12 @@
t-out="contract.commercial_name" t-out="contract.commercial_name"
/> />
<td <td
class="text-end" class="text-end td-overview-border-left"
t-out="data['yesterday']['total_sales']" t-out="data['yesterday']['total_sales']"
t-options='{"widget": "monetary", "display_currency": values["company_id"].currency_id}' t-options='{"widget": "monetary", "display_currency": values["company_id"].currency_id}'
/> />
<td <td
class="text-end" class="text-end td-overview-border-left"
t-out="data['this_month']['total_sales']" t-out="data['this_month']['total_sales']"
t-options='{"widget": "monetary", "display_currency": values["company_id"].currency_id}' t-options='{"widget": "monetary", "display_currency": values["company_id"].currency_id}'
/> />
...@@ -384,7 +407,7 @@ ...@@ -384,7 +407,7 @@
t-options='{"widget": "monetary", "display_currency": values["company_id"].currency_id}' t-options='{"widget": "monetary", "display_currency": values["company_id"].currency_id}'
/> />
<td <td
t-att-class="'text-end text-success' if month_delta >= 1 else 'text-end text-danger'" t-att-class="'text-end text-success td-overview-border-right' if month_delta >= 100 else 'text-end td-overview-border-right text-warning'"
> >
<t <t
t-out="month_delta" t-out="month_delta"
...@@ -407,7 +430,7 @@ ...@@ -407,7 +430,7 @@
t-options='{"widget": "monetary", "display_currency": values["company_id"].currency_id}' t-options='{"widget": "monetary", "display_currency": values["company_id"].currency_id}'
/> />
<td <td
t-att-class="'text-end text-success' if year_delta >= 1 else 'text-end text-danger'" t-att-class="'text-end text-success' if year_delta >= 100 else 'text-end text-warning'"
> >
<t <t
t-out="year_delta" t-out="year_delta"
...@@ -451,7 +474,9 @@ ...@@ -451,7 +474,9 @@
<!-- Pourcentage --> <!-- Pourcentage -->
<t t-if="target and target > 0"> <t t-if="target and target > 0">
<t t-set="delta" t-value="amount / target * 100" /> <t t-set="delta" t-value="amount / target * 100" />
<p t-att-class="'text-success h3' if delta >= 1 else 'text-danger h3'"> <p
t-att-class="'text-success h3' if delta >= 100 else 'text-warning h3'"
>
<t t-if="arrow"> <t t-if="arrow">
<i <i
t-att-class="'fa fa-arrow-up' if delta >= 1 else 'fa fa-arrow-down'" t-att-class="'fa fa-arrow-up' if delta >= 1 else 'fa fa-arrow-down'"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment