Added description field on item basic data #303

This commit is contained in:
Joan Sanchez 2018-05-16 13:02:19 +02:00
parent 11b7c133a4
commit f0e8b90316
4 changed files with 4 additions and 1 deletions

View File

@ -51,6 +51,7 @@
field="$ctrl.item.expenceFk"
initial-data="$ctrl.item.expence">
</vn-autocomplete>
<vn-textfield vn-one label="Reference" field="$ctrl.item.description"></vn-textfield>
</vn-horizontal>
</vn-card>
<vn-button-bar>

View File

@ -0,0 +1 @@
Reference: Referencia

View File

@ -234,7 +234,7 @@ export default {
itemBarcodes: {
barcodeButton: `${components.vnMenuItem}[ui-sref="item.card.itemBarcode"]`,
addBarcodeButton: `${components.vnIcon}[icon="add_circle"]`,
thirdCodeInput: `vn-horizontal:nth-child(4) > ${components.vnTextfield}`,
thirdCodeInput: `vn-item-barcode vn-horizontal:nth-child(4) > ${components.vnTextfield}`,
submitBarcodesButton: `${components.vnSubmit}`,
firstCodeRemoveButton: `vn-horizontal:nth-child(2) > ${components.vnIcon}[icon="remove_circle_outline"]`
},

View File

@ -37,6 +37,7 @@ module.exports = Self => {
delete copy.id;
delete copy.itemTag;
delete copy.description;
let newItem = await Self.create(copy);
let promises = [];