refs #5063 refactor hook
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alexandre Riera 2023-02-20 13:15:47 +01:00
parent c7f22a10ba
commit 04877c1425
2 changed files with 2 additions and 29 deletions

View File

@ -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);

View File

@ -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"