refactor(sales): ticket sales now shows item.subName

This commit is contained in:
Carlos Jimenez Ruiz 2021-09-22 15:14:29 +02:00
parent c971d3ee01
commit 23ba5657c5
3 changed files with 24 additions and 19 deletions

View File

@ -35,6 +35,7 @@ module.exports = Self => {
fields: [
'id',
'name',
'subName',
'itemPackingTypeFk',
'tag5',
'value5',

View File

@ -157,12 +157,16 @@
</vn-input-number>
</field>
</vn-td-editable>
<vn-td-editable vn-fetched-tags expand disabled="!sale.id || !$ctrl.isEditable">
<vn-td-editable vn-fetched-tags disabled="!sale.id || !$ctrl.isEditable">
<text>
<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-one title="{{sale.concept}}">{{sale.concept}}</vn-one>
<vn-one
ng-if="::sale.item.subName"
title="{{::sale.item.subName}}">
<h3>{{::sale.item.subName}}</h3>
</vn-one>
</div>
<vn-fetched-tags
max-length="6"
item="::sale.item"

View File

@ -24,20 +24,20 @@ vn-ticket-sale {
}
}
vn-td-editable[vn-fetched-tags] {
& text {
max-width: 430px;
min-width: 150px;
& vn-one {
overflow: hidden;
text-overflow: ellipsis;
}
& vn-one:nth-child(2) h3 {
color: $color-font-secondary;
text-transform: uppercase;
line-height: initial;
font-size: 0.75rem
}
& div {
display: flex;
flex-wrap: wrap;
}
& vn-one {
min-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
}
& text vn-one:nth-child(2) h3 {
color: $color-font-secondary;
text-transform: uppercase;
line-height: initial;
font-size: 0.75rem
}
}