Added description field on item basic data #303
This commit is contained in:
parent
11b7c133a4
commit
f0e8b90316
|
@ -51,6 +51,7 @@
|
||||||
field="$ctrl.item.expenceFk"
|
field="$ctrl.item.expenceFk"
|
||||||
initial-data="$ctrl.item.expence">
|
initial-data="$ctrl.item.expence">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
|
<vn-textfield vn-one label="Reference" field="$ctrl.item.description"></vn-textfield>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
</vn-card>
|
</vn-card>
|
||||||
<vn-button-bar>
|
<vn-button-bar>
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Reference: Referencia
|
|
@ -234,7 +234,7 @@ export default {
|
||||||
itemBarcodes: {
|
itemBarcodes: {
|
||||||
barcodeButton: `${components.vnMenuItem}[ui-sref="item.card.itemBarcode"]`,
|
barcodeButton: `${components.vnMenuItem}[ui-sref="item.card.itemBarcode"]`,
|
||||||
addBarcodeButton: `${components.vnIcon}[icon="add_circle"]`,
|
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}`,
|
submitBarcodesButton: `${components.vnSubmit}`,
|
||||||
firstCodeRemoveButton: `vn-horizontal:nth-child(2) > ${components.vnIcon}[icon="remove_circle_outline"]`
|
firstCodeRemoveButton: `vn-horizontal:nth-child(2) > ${components.vnIcon}[icon="remove_circle_outline"]`
|
||||||
},
|
},
|
||||||
|
|
|
@ -37,6 +37,7 @@ module.exports = Self => {
|
||||||
|
|
||||||
delete copy.id;
|
delete copy.id;
|
||||||
delete copy.itemTag;
|
delete copy.itemTag;
|
||||||
|
delete copy.description;
|
||||||
|
|
||||||
let newItem = await Self.create(copy);
|
let newItem = await Self.create(copy);
|
||||||
let promises = [];
|
let promises = [];
|
||||||
|
|
Loading…
Reference in New Issue