campo claimDestinationFk ya no esta como required
gitea/salix/1912 This commit looks good
Details
gitea/salix/1912 This commit looks good
Details
This commit is contained in:
parent
8a2eda7c08
commit
ec081e6a3a
|
@ -36,7 +36,7 @@ BEGIN
|
|||
|
||||
CALL vn.zone_getShippedWarehouse(vlanded, vAddressFk, vAgencyModeFk);
|
||||
|
||||
SELECT id INTO vZoneFk FROM tmp.zoneGetShipped
|
||||
SELECT zoneFk INTO vZoneFk FROM tmp.zoneGetShipped
|
||||
WHERE shipped = vShipped AND warehouseFk = vWarehouseFk LIMIT 1;
|
||||
|
||||
INSERT INTO vn2008.Tickets (
|
||||
|
|
|
@ -94,38 +94,4 @@ describe('Claim development', () => {
|
|||
expect(worker).toEqual('deliveryNick');
|
||||
expect(redelivery).toEqual('Reparto');
|
||||
});
|
||||
|
||||
it('should delete the first development, add an empty one and save it', async() => {
|
||||
const result = await nightmare
|
||||
.waitToClick(selectors.claimDevelopment.firstDeleteDevelopmentButton)
|
||||
.waitToClick(selectors.claimDevelopment.addDevelopmentButton)
|
||||
.waitToClick(selectors.claimDevelopment.saveDevelopmentButton)
|
||||
.waitForLastSnackbar();
|
||||
|
||||
expect(result).toEqual('Data saved!');
|
||||
});
|
||||
|
||||
it('should confirm the second development was auto filled', async() => {
|
||||
const reason = await nightmare
|
||||
.reloadSection('claim.card.development')
|
||||
.waitToGetProperty(`${selectors.claimDevelopment.secondClaimReasonAutocomplete} input`, 'value');
|
||||
|
||||
const result = await nightmare
|
||||
.waitToGetProperty(`${selectors.claimDevelopment.secondClaimResultAutocomplete} input`, 'value');
|
||||
|
||||
const responsible = await nightmare
|
||||
.waitToGetProperty(`${selectors.claimDevelopment.secondClaimResponsibleAutocomplete} input`, 'value');
|
||||
|
||||
const worker = await nightmare
|
||||
.waitToGetProperty(`${selectors.claimDevelopment.secondClaimWorkerAutocomplete} input`, 'value');
|
||||
|
||||
const redelivery = await nightmare
|
||||
.waitToGetProperty(`${selectors.claimDevelopment.secondClaimRedeliveryAutocomplete} input`, 'value');
|
||||
|
||||
expect(reason).toEqual('Prisas');
|
||||
expect(result).toEqual('Otros daños');
|
||||
expect(responsible).toEqual('Compradores');
|
||||
expect(worker).toEqual('managerNick');
|
||||
expect(redelivery).toEqual('Cliente');
|
||||
});
|
||||
});
|
||||
|
|
|
@ -117,5 +117,6 @@
|
|||
"You should specify a date": "Debes especificar una fecha",
|
||||
"You should specify at least a start or end date": "Debes especificar al menos una fecha de inicio o de fín",
|
||||
"Start date should be lower than end date": "La fecha de inicio debe ser menor que la fecha de fín",
|
||||
"You should mark at least one week day": "Debes marcar al menos un día de la semana"
|
||||
"You should mark at least one week day": "Debes marcar al menos un día de la semana",
|
||||
"Swift / BIC can't be empty": "Swift / BIC can't be empty"
|
||||
}
|
|
@ -104,9 +104,6 @@ module.exports = Self => {
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
relation: 'claimDestination'
|
||||
},
|
||||
{
|
||||
relation: 'claimReason'
|
||||
},
|
||||
|
|
|
@ -18,9 +18,6 @@
|
|||
"claimResponsibleFk": {
|
||||
"required": true
|
||||
},
|
||||
"workerFk": {
|
||||
"required": true
|
||||
},
|
||||
"claimReasonFk": {
|
||||
"required": true
|
||||
},
|
||||
|
@ -29,9 +26,6 @@
|
|||
},
|
||||
"claimRedeliveryFk": {
|
||||
"required": true
|
||||
},
|
||||
"claimDestinationFk": {
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
"relations": {
|
||||
|
@ -64,11 +58,6 @@
|
|||
"type": "belongsTo",
|
||||
"model": "ClaimRedelivery",
|
||||
"foreignKey": "claimRedeliveryFk"
|
||||
},
|
||||
"claimDestination": {
|
||||
"type": "belongsTo",
|
||||
"model": "ClaimDestination",
|
||||
"foreignKey": "claimDestinationFk"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue