refactor(consumption): client consuption now shows item.subName

This commit is contained in:
Carlos Jimenez Ruiz 2021-09-22 15:13:29 +02:00
parent d41378a532
commit c971d3ee01
3 changed files with 29 additions and 4 deletions

View File

@ -65,10 +65,12 @@
</vn-td>
<vn-td expand>{{::sale.shipped | date: 'dd/MM/yyyy'}}</vn-td>
<vn-td vn-fetched-tags wide>
<div>
<vn-one title="{{::sale.concept}}">{{::sale.concept}}</vn-one>
<vn-one ng-if="::sale.subName">
<h3 title="{{::sale.subName}}">{{::sale.subName}}</h3>
</vn-one>
</div>
<vn-fetched-tags
max-length="6"
item="::sale"

View File

@ -1,5 +1,6 @@
import ngModule from '../module';
import Section from 'salix/components/section';
import './style.scss';
class Controller extends Section {
constructor($element, $, vnReport, vnEmail) {

View File

@ -0,0 +1,22 @@
@import "variables";
vn-client-consumption {
vn-td[vn-fetched-tags] {
& div {
display: flex;
flex-wrap: wrap;
& vn-one {
min-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
}
& vn-one h3 {
color: $color-font-secondary;
text-transform: uppercase;
line-height: initial;
font-size: 0.75rem
}
}
}
}