quitado el antiguo campo de iva
This commit is contained in:
parent
a50c3d565e
commit
595cbfbed6
|
@ -16,7 +16,6 @@ class ItemCard {
|
||||||
{relation: "producer"},
|
{relation: "producer"},
|
||||||
{relation: "intrastat"},
|
{relation: "intrastat"},
|
||||||
{relation: "expence"},
|
{relation: "expence"},
|
||||||
{relation: "taxClass"},
|
|
||||||
{relation: "itemTag", scope: {order: "priority ASC", include: {relation: "tag"}}}
|
{relation: "itemTag", scope: {order: "priority ASC", include: {relation: "tag"}}}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
|
@ -21,8 +21,8 @@ describe('Item', () => {
|
||||||
describe('$onInit()', () => {
|
describe('$onInit()', () => {
|
||||||
it('should request to patch the propagation of tax status', () => {
|
it('should request to patch the propagation of tax status', () => {
|
||||||
controller.client = {id: 123, isEqualizated: false};
|
controller.client = {id: 123, isEqualizated: false};
|
||||||
$httpBackend.whenGET('/item/api/Items/undefined?filter={"include":[{"relation":"itemType"},{"relation":"origin"},{"relation":"ink"},{"relation":"producer"},{"relation":"intrastat"},{"relation":"expence"},{"relation":"taxClass"},{"relation":"itemTag","scope":{"order":"priority ASC","include":{"relation":"tag"}}}]}').respond({data: 'item'});
|
$httpBackend.whenGET('/item/api/Items/undefined?filter={"include":[{"relation":"itemType"},{"relation":"origin"},{"relation":"ink"},{"relation":"producer"},{"relation":"intrastat"},{"relation":"expence"},{"relation":"itemTag","scope":{"order":"priority ASC","include":{"relation":"tag"}}}]}').respond({data: 'item'});
|
||||||
$httpBackend.expectGET('/item/api/Items/undefined?filter={"include":[{"relation":"itemType"},{"relation":"origin"},{"relation":"ink"},{"relation":"producer"},{"relation":"intrastat"},{"relation":"expence"},{"relation":"taxClass"},{"relation":"itemTag","scope":{"order":"priority ASC","include":{"relation":"tag"}}}]}');
|
$httpBackend.expectGET('/item/api/Items/undefined?filter={"include":[{"relation":"itemType"},{"relation":"origin"},{"relation":"ink"},{"relation":"producer"},{"relation":"intrastat"},{"relation":"expence"},{"relation":"itemTag","scope":{"order":"priority ASC","include":{"relation":"tag"}}}]}');
|
||||||
controller.$onInit();
|
controller.$onInit();
|
||||||
$httpBackend.flush();
|
$httpBackend.flush();
|
||||||
|
|
||||||
|
|
|
@ -60,19 +60,6 @@
|
||||||
initial-data="$ctrl.item.expence"
|
initial-data="$ctrl.item.expence"
|
||||||
></vn-autocomplete>
|
></vn-autocomplete>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
<vn-horizontal>
|
|
||||||
<vn-autocomplete vn-one
|
|
||||||
url="/item/api/TaxClasses"
|
|
||||||
label="TaxClass"
|
|
||||||
show-field="description"
|
|
||||||
value-field="id"
|
|
||||||
order="description ASC"
|
|
||||||
filter-search="{where: {description: {regexp: 'search'}} }"
|
|
||||||
field="$ctrl.item.taxClassFk"
|
|
||||||
initial-data="$ctrl.item.taxClass"
|
|
||||||
><tpl-item>{{$parent.$parent.item.description}}</tpl-item></vn-autocomplete>
|
|
||||||
<vn-one></vn-one>
|
|
||||||
</vn-horizontal>
|
|
||||||
</vn-vertical>
|
</vn-vertical>
|
||||||
</vn-card>
|
</vn-card>
|
||||||
<vn-button-bar>
|
<vn-button-bar>
|
||||||
|
|
|
@ -75,11 +75,6 @@
|
||||||
"model": "Expence",
|
"model": "Expence",
|
||||||
"foreignKey": "expenceFk"
|
"foreignKey": "expenceFk"
|
||||||
},
|
},
|
||||||
"taxClass": {
|
|
||||||
"type": "belongsTo",
|
|
||||||
"model": "TaxClass",
|
|
||||||
"foreignKey": "taxClassFk"
|
|
||||||
},
|
|
||||||
"itemTag": {
|
"itemTag": {
|
||||||
"type": "hasMany",
|
"type": "hasMany",
|
||||||
"model": "ItemTag",
|
"model": "ItemTag",
|
||||||
|
|
Loading…
Reference in New Issue