pull from dev
gitea/salix/1921-claim_detail_discount This commit looks good
Details
gitea/salix/1921-claim_detail_discount This commit looks good
Details
This commit is contained in:
commit
2325127390
|
@ -36,7 +36,7 @@ BEGIN
|
||||||
|
|
||||||
CALL vn.zone_getShippedWarehouse(vlanded, vAddressFk, vAgencyModeFk);
|
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;
|
WHERE shipped = vShipped AND warehouseFk = vWarehouseFk LIMIT 1;
|
||||||
|
|
||||||
INSERT INTO vn2008.Tickets (
|
INSERT INTO vn2008.Tickets (
|
||||||
|
|
|
@ -94,34 +94,4 @@ describe('Claim development', () => {
|
||||||
expect(worker).toEqual('deliveryNick');
|
expect(worker).toEqual('deliveryNick');
|
||||||
expect(redelivery).toEqual('Reparto');
|
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 redelivery = await nightmare
|
|
||||||
.waitToGetProperty(`${selectors.claimDevelopment.secondClaimRedeliveryAutocomplete} input`, 'value');
|
|
||||||
|
|
||||||
expect(reason).toEqual('Prisas');
|
|
||||||
expect(result).toEqual('Otros daños');
|
|
||||||
expect(responsible).toEqual('Compradores');
|
|
||||||
expect(redelivery).toEqual('Cliente');
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -118,5 +118,5 @@
|
||||||
"You should specify at least a start or end date": "Debes especificar al menos una fecha de inicio o de fín",
|
"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",
|
"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": "El Swift / BIC no puede quedar vacío"
|
"Swift / BIC can't be empty": "Swift / BIC no puede estar vacío"
|
||||||
}
|
}
|
|
@ -104,9 +104,6 @@ module.exports = Self => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
relation: 'claimDestination'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
relation: 'claimReason'
|
relation: 'claimReason'
|
||||||
},
|
},
|
||||||
|
|
|
@ -18,9 +18,6 @@
|
||||||
"claimResponsibleFk": {
|
"claimResponsibleFk": {
|
||||||
"required": true
|
"required": true
|
||||||
},
|
},
|
||||||
"workerFk": {
|
|
||||||
"required": true
|
|
||||||
},
|
|
||||||
"claimReasonFk": {
|
"claimReasonFk": {
|
||||||
"required": true
|
"required": true
|
||||||
},
|
},
|
||||||
|
@ -29,9 +26,6 @@
|
||||||
},
|
},
|
||||||
"claimRedeliveryFk": {
|
"claimRedeliveryFk": {
|
||||||
"required": true
|
"required": true
|
||||||
},
|
|
||||||
"claimDestinationFk": {
|
|
||||||
"required": true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"relations": {
|
"relations": {
|
||||||
|
@ -64,11 +58,6 @@
|
||||||
"type": "belongsTo",
|
"type": "belongsTo",
|
||||||
"model": "ClaimRedelivery",
|
"model": "ClaimRedelivery",
|
||||||
"foreignKey": "claimRedeliveryFk"
|
"foreignKey": "claimRedeliveryFk"
|
||||||
},
|
|
||||||
"claimDestination": {
|
|
||||||
"type": "belongsTo",
|
|
||||||
"model": "ClaimDestination",
|
|
||||||
"foreignKey": "claimDestinationFk"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue