Compare commits

...

6 Commits

Author SHA1 Message Date
Guillermo Bonet a731bb3a45 Merge branch 'master' into test
gitea/salix/pipeline/head This commit looks good Details
2024-11-22 09:11:29 +01:00
Guillermo Bonet c73196edec fix: refs #7834 expeditionScan_Put no throw
gitea/salix/pipeline/head This commit looks good Details
2024-11-22 09:10:18 +01:00
Sergio De la torre fc75eae338 Merge pull request 'fix: refs #7855 refs#7855 isCheckedDeleted' (!3234) from 7855-expedition_printOut into master
gitea/salix/pipeline/head This commit looks good Details
Reviewed-on: #3234
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
2024-11-21 15:37:56 +00:00
Sergio De la torre 5ac255ac52 fix: refs #7855 refs#7855 isCheckedDeleted
gitea/salix/pipeline/pr-master This commit looks good Details
2024-11-21 16:27:45 +01:00
Carlos Satorres 7b177fa09f Merge pull request 'fix: hotfix errorMyTeam' (!3229) from hotfix-filterOrder into master
gitea/salix/pipeline/head This commit looks good Details
Reviewed-on: #3229
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2024-11-21 09:23:14 +00:00
Carlos Satorres 2978af8341 fix: hotfix errorMyTeam
gitea/salix/pipeline/pr-master This commit looks good Details
2024-11-21 10:18:17 +01:00
3 changed files with 5 additions and 7 deletions

View File

@ -14,9 +14,6 @@
}, },
"itemFk": { "itemFk": {
"type": "number" "type": "number"
},
"isChecked": {
"type": "boolean"
} }
} }
} }

View File

@ -4,12 +4,12 @@ CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `vn`.`expeditionScan_Put`(
vExpeditionFk INT vExpeditionFk INT
) )
BEGIN BEGIN
IF NOT (SELECT TRUE FROM expedition WHERE id = vExpeditionFk LIMIT 1) THEN IF NOT EXISTS (SELECT id FROM expeditionPallet WHERE id = vPalletFk) THEN
CALL util.throw('Expedition not exists'); CALL util.throw('Pallet not exists');
END IF; END IF;
IF NOT (SELECT TRUE FROM expeditionPallet WHERE id = vPalletFk LIMIT 1) THEN IF NOT EXISTS (SELECT id FROM expedition WHERE id = vExpeditionFk) THEN
CALL util.throw('Pallet not exists'); CALL util.throw('Expedition not exists');
END IF; END IF;
REPLACE expeditionScan(expeditionFk, palletFk) REPLACE expeditionScan(expeditionFk, palletFk)

View File

@ -79,6 +79,7 @@ module.exports = Self => {
const models = Self.app.models; const models = Self.app.models;
const conn = Self.dataSource.connector; const conn = Self.dataSource.connector;
const myOptions = {}; const myOptions = {};
const userId = ctx.req.accessToken.userId;
if (typeof options == 'object') if (typeof options == 'object')
Object.assign(myOptions, options); Object.assign(myOptions, options);