This commit is contained in:
parent
c7f22a10ba
commit
04877c1425
|
@ -24,8 +24,6 @@ module.exports = Self => {
|
|||
const myOptions = {};
|
||||
let tx;
|
||||
|
||||
params.isPhotoRequested = true;
|
||||
|
||||
if (typeof options == 'object')
|
||||
Object.assign(myOptions, options);
|
||||
|
||||
|
@ -40,8 +38,7 @@ module.exports = Self => {
|
|||
'intrastatFk',
|
||||
'originFk',
|
||||
'priority',
|
||||
'tag',
|
||||
'isPhotoRequested'
|
||||
'tag'
|
||||
];
|
||||
|
||||
for (const key in params) {
|
||||
|
@ -60,6 +57,7 @@ module.exports = Self => {
|
|||
const itemType = await models.ItemType.findById(params.typeFk, {fields: ['isLaid']}, myOptions);
|
||||
|
||||
params.isLaid = itemType.isLaid;
|
||||
params.isPhotoRequested = true;
|
||||
|
||||
const item = await models.Item.create(params, myOptions);
|
||||
|
||||
|
|
|
@ -75,31 +75,6 @@
|
|||
{{$ctrl.summary.item.itemType.worker.user.name}}
|
||||
</span>
|
||||
</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-check
|
||||
label="Do photo"
|
||||
|
|
Loading…
Reference in New Issue