This commit is contained in:
parent
c7f22a10ba
commit
04877c1425
|
@ -24,8 +24,6 @@ module.exports = Self => {
|
||||||
const myOptions = {};
|
const myOptions = {};
|
||||||
let tx;
|
let tx;
|
||||||
|
|
||||||
params.isPhotoRequested = true;
|
|
||||||
|
|
||||||
if (typeof options == 'object')
|
if (typeof options == 'object')
|
||||||
Object.assign(myOptions, options);
|
Object.assign(myOptions, options);
|
||||||
|
|
||||||
|
@ -40,8 +38,7 @@ module.exports = Self => {
|
||||||
'intrastatFk',
|
'intrastatFk',
|
||||||
'originFk',
|
'originFk',
|
||||||
'priority',
|
'priority',
|
||||||
'tag',
|
'tag'
|
||||||
'isPhotoRequested'
|
|
||||||
];
|
];
|
||||||
|
|
||||||
for (const key in params) {
|
for (const key in params) {
|
||||||
|
@ -60,6 +57,7 @@ module.exports = Self => {
|
||||||
const itemType = await models.ItemType.findById(params.typeFk, {fields: ['isLaid']}, myOptions);
|
const itemType = await models.ItemType.findById(params.typeFk, {fields: ['isLaid']}, myOptions);
|
||||||
|
|
||||||
params.isLaid = itemType.isLaid;
|
params.isLaid = itemType.isLaid;
|
||||||
|
params.isPhotoRequested = true;
|
||||||
|
|
||||||
const item = await models.Item.create(params, myOptions);
|
const item = await models.Item.create(params, myOptions);
|
||||||
|
|
||||||
|
|
|
@ -75,31 +75,6 @@
|
||||||
{{$ctrl.summary.item.itemType.worker.user.name}}
|
{{$ctrl.summary.item.itemType.worker.user.name}}
|
||||||
</span>
|
</span>
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
<vn-horizontal>
|
|
||||||
<vn-check
|
|
||||||
label="Active"
|
|
||||||
disabled="true"
|
|
||||||
vn-one
|
|
||||||
ng-model="$ctrl.item.isActive">
|
|
||||||
</vn-check>
|
|
||||||
</vn-horizontal>
|
|
||||||
<vn-horizontal>
|
|
||||||
<vn-check
|
|
||||||
disabled="true"
|
|
||||||
label="Price in kg"
|
|
||||||
vn-one
|
|
||||||
ng-model="$ctrl.item.hasKgPrice">
|
|
||||||
</vn-check>
|
|
||||||
</vn-horizontal>
|
|
||||||
<vn-horizontal>
|
|
||||||
<vn-check
|
|
||||||
label="Fragile"
|
|
||||||
disabled="true"
|
|
||||||
vn-one
|
|
||||||
ng-model="$ctrl.item.isFragile"
|
|
||||||
info="Is shown at website, app that this item cannot travel (wreath, palms, ...)">
|
|
||||||
</vn-check>
|
|
||||||
</vn-horizontal>
|
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-check
|
<vn-check
|
||||||
label="Do photo"
|
label="Do photo"
|
||||||
|
|
Loading…
Reference in New Issue