7152-devToTest_2414 #2228
|
@ -6,7 +6,7 @@ module.exports = Self => {
|
||||||
accepts: [
|
accepts: [
|
||||||
{
|
{
|
||||||
arg: 'code',
|
arg: 'code',
|
||||||
type: 'string',
|
type: 'number',
|
||||||
required: true
|
required: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -50,7 +50,7 @@ module.exports = Self => {
|
||||||
});
|
});
|
||||||
if (machineWorker) {
|
if (machineWorker) {
|
||||||
await machineWorker.updateAttributes({
|
await machineWorker.updateAttributes({
|
||||||
inTime: new Date(Date.now())
|
outTime: new Date(Date.now())
|
||||||
}, myOptions);
|
}, myOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@ INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalTyp
|
||||||
('SaleTracking','updateTracking','WRITE','ALLOW','ROLE','employee'),
|
('SaleTracking','updateTracking','WRITE','ALLOW','ROLE','employee'),
|
||||||
('SaleTracking','mark','WRITE','ALLOW','ROLE','employee'),
|
('SaleTracking','mark','WRITE','ALLOW','ROLE','employee'),
|
||||||
('ItemBarcode','deleteByItemAndCode','WRITE','ALLOW','ROLE','employee'),
|
('ItemBarcode','deleteByItemAndCode','WRITE','ALLOW','ROLE','employee'),
|
||||||
('Collection','addItem','WRITE','ALLOW','ROLE','employee');
|
('Collection','addItem','WRITE','ALLOW','ROLE','employee'),
|
||||||
('ExpeditionPallet', '*', 'READ', 'ALLOW', 'ROLE', 'production');
|
('ExpeditionPallet', '*', 'READ', 'ALLOW', 'ROLE', 'production'),
|
||||||
|
('MobileAppVersionControl', '*', 'READ', 'ALLOW', 'ROLE', 'production'),
|
||||||
|
('Collection', 'assignCollection', 'WRITE', 'ALLOW', 'ROLE', 'production'),
|
||||||
|
('Collection', 'addItem', 'WRITE', 'ALLOW', 'ROLE', 'production'),
|
||||||
|
('MachineWorker', 'updateInTime', 'WRITE', 'ALLOW', 'ROLE', 'production');;
|
||||||
|
|
|
@ -331,5 +331,7 @@
|
||||||
"Cannot past travels with entries": "No se pueden pasar envíos con entradas",
|
"Cannot past travels with entries": "No se pueden pasar envíos con entradas",
|
||||||
"It was not able to remove the next expeditions:": "No se pudo eliminar las siguientes expediciones: {{expeditions}}",
|
"It was not able to remove the next expeditions:": "No se pudo eliminar las siguientes expediciones: {{expeditions}}",
|
||||||
"The line could not be marked": "The line could not be marked",
|
"The line could not be marked": "The line could not be marked",
|
||||||
"This user does not have an assigned tablet": "Este usuario no tiene tablet asignada"
|
"This user does not have an assigned tablet": "Este usuario no tiene tablet asignada",
|
||||||
}
|
"No hay tickets para sacar": "No hay tickets para sacar",
|
||||||
|
"There is no zone for these parameters 999999": "There is no zone for these parameters 999999"
|
||||||
|
}
|
|
@ -4,7 +4,7 @@ module.exports = Self => {
|
||||||
accessType: 'WRITE',
|
accessType: 'WRITE',
|
||||||
accepts: [{
|
accepts: [{
|
||||||
arg: 'shelvingFk',
|
arg: 'shelvingFk',
|
||||||
type: 'number',
|
type: 'string',
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -62,7 +62,7 @@ module.exports = Self => {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
id: itemShelving.id,
|
id: itemShelving.id,
|
||||||
item: itemShelving.itemFk,
|
itemFk: itemShelving.itemFk,
|
||||||
longName: item ? item.longName || `${item.name} ${item.size}` : '',
|
longName: item ? item.longName || `${item.name} ${item.size}` : '',
|
||||||
quantity: itemShelving.visible,
|
quantity: itemShelving.visible,
|
||||||
stickers: Math.ceil(itemShelving.visible / itemShelving.packing),
|
stickers: Math.ceil(itemShelving.visible / itemShelving.packing),
|
||||||
|
|
|
@ -44,7 +44,7 @@ module.exports = Self => {
|
||||||
let itemInfo;
|
let itemInfo;
|
||||||
if (result.length) {
|
if (result.length) {
|
||||||
itemInfo = {...result[0]};
|
itemInfo = {...result[0]};
|
||||||
itemInfo.barcodes = barcodes.map(barcode => barcode.code);
|
itemInfo.barcodes = barcodes;
|
||||||
}
|
}
|
||||||
|
|
||||||
return itemInfo;
|
return itemInfo;
|
||||||
|
|
|
@ -16,6 +16,7 @@ module.exports = Self => {
|
||||||
},
|
},
|
||||||
returns: {
|
returns: {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
|
root: true
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue