#195 listar lineas de ticket componente fetched-tags
This commit is contained in:
parent
dcce890bea
commit
d29dcf2e11
|
@ -9,8 +9,8 @@
|
||||||
show="$ctrl.showDropDown"
|
show="$ctrl.showDropDown"
|
||||||
selected="$ctrl.selected"
|
selected="$ctrl.selected"
|
||||||
filter="true"
|
filter="true"
|
||||||
parent="$ctrl.element"
|
parent="$ctrl.element">
|
||||||
></vn-drop-down>
|
</vn-drop-down>
|
||||||
</div>
|
</div>
|
||||||
<div ng-if="$ctrl.findMore">
|
<div ng-if="$ctrl.findMore">
|
||||||
<vn-drop-down
|
<vn-drop-down
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
load-more="$ctrl.getItems()"
|
load-more="$ctrl.getItems()"
|
||||||
show-load-more="$ctrl.maxRow"
|
show-load-more="$ctrl.maxRow"
|
||||||
filter-action="$ctrl.findItems(search)"
|
filter-action="$ctrl.findItems(search)"
|
||||||
parent="$ctrl.element"
|
parent="$ctrl.element">
|
||||||
></vn-drop-down>
|
</vn-drop-down>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
|
@ -0,0 +1,8 @@
|
||||||
|
<vn-vertical style="text-align:center">
|
||||||
|
<vn-one>{{::$ctrl.sale.concept}}</vn-one>
|
||||||
|
<vn-one>
|
||||||
|
<vn-one ng-repeat="fetchedTag in $ctrl.sale.itemTag track by $index">
|
||||||
|
<vn-label>{{::fetchedTag.tag.name}} </vn-label>{{::fetchedTag.value}}
|
||||||
|
</vn-one>
|
||||||
|
</vn-one>
|
||||||
|
</vn-vertical>
|
|
@ -0,0 +1,12 @@
|
||||||
|
import ngModule from '../module';
|
||||||
|
|
||||||
|
class Controller {}
|
||||||
|
Controller.$inject = [];
|
||||||
|
|
||||||
|
ngModule.component('vnFetchedTags', {
|
||||||
|
template: require('./fetched-tags.html'),
|
||||||
|
controller: Controller,
|
||||||
|
bindings: {
|
||||||
|
sale: '<'
|
||||||
|
}
|
||||||
|
});
|
|
@ -17,16 +17,7 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr ng-repeat="sale in index.model.instances track by sale.id">
|
<tr ng-repeat="sale in index.model.instances track by sale.id">
|
||||||
<td number>{{::sale.itemFk}}</td>
|
<td number>{{::sale.itemFk}}</td>
|
||||||
<td>
|
<td><vn-fetched-tags sale="sale"/></td>
|
||||||
<vn-vertical style="text-align:center">
|
|
||||||
<vn-one>{{::sale.concept}}</vn-one>
|
|
||||||
<vn-one>
|
|
||||||
<vn-one ng-repeat="fetchedTag in sale.itemTag track by $index">
|
|
||||||
<vn-label>{{::fetchedTag.tag.name}} </vn-label>{{::fetchedTag.value}}
|
|
||||||
</vn-one>
|
|
||||||
</vn-one>
|
|
||||||
</vn-vertical>
|
|
||||||
</td>
|
|
||||||
<td number>{{::sale.quantity}}</td>
|
<td number>{{::sale.quantity}}</td>
|
||||||
<td number>{{::sale.price | currency:'€':2}}</td>
|
<td number>{{::sale.price | currency:'€':2}}</td>
|
||||||
<td number>{{::sale.discount}} %</td>
|
<td number>{{::sale.discount}} %</td>
|
||||||
|
|
|
@ -11,3 +11,4 @@ import './volume/ticket-volume';
|
||||||
import './package/package';
|
import './package/package';
|
||||||
import './sale/sale';
|
import './sale/sale';
|
||||||
import './tracking/tracking';
|
import './tracking/tracking';
|
||||||
|
import './fetched-tags/fetched-tags';
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import selectors from '../../helpers/selectors.js';
|
import selectors from '../../helpers/selectors.js';
|
||||||
import createNightmare from '../../helpers/helpers';
|
import createNightmare from '../../helpers/helpers';
|
||||||
|
|
||||||
fdescribe('edit item basic data path', () => {
|
describe('edit item basic data path', () => {
|
||||||
const nightmare = createNightmare();
|
const nightmare = createNightmare();
|
||||||
|
|
||||||
beforeAll(() => {
|
beforeAll(() => {
|
||||||
|
|
Loading…
Reference in New Issue