Merge branch 'dev' into 8624-addActionCleanShelving
gitea/salix/pipeline/pr-dev This commit looks good
Details
gitea/salix/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
commit
5093393f3b
|
@ -24,7 +24,7 @@
|
|||
"relations": {
|
||||
"agency": {
|
||||
"type": "belongsTo",
|
||||
"model": "WorkCenter",
|
||||
"model": "Agency",
|
||||
"foreignKey": "agencyFk"
|
||||
},
|
||||
"workCenter": {
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
UPDATE vn.claimEnd ce
|
||||
JOIN(
|
||||
SELECT id
|
||||
FROM vn.claimEnd
|
||||
WHERE claimDestinationFk NOT IN
|
||||
(SELECT id FROM vn.claimDestination WHERE id IS NOT NULL)
|
||||
) s ON ce.id = s.id
|
||||
SET ce.claimDestinationFk = 1;
|
|
@ -0,0 +1,9 @@
|
|||
ALTER TABLE vn.claimEnd
|
||||
MODIFY COLUMN claimDestinationFk tinyint(3) unsigned NOT NULL DEFAULT 1;
|
||||
|
||||
ALTER TABLE vn.claimEnd
|
||||
ADD CONSTRAINT fk_claimEnd_claimDestination
|
||||
FOREIGN KEY (claimDestinationFk)
|
||||
REFERENCES claimDestination(id)
|
||||
ON UPDATE CASCADE
|
||||
ON DELETE RESTRICT;
|
|
@ -109,7 +109,7 @@ module.exports = Self => {
|
|||
);
|
||||
const newRefundTicket = await models.Ticket.create({
|
||||
clientFk: claim.ticket().clientFk,
|
||||
shipped: nextShipped,
|
||||
shipped: nextShipped.shipped,
|
||||
landed: null,
|
||||
nickname,
|
||||
warehouseFk,
|
||||
|
|
|
@ -19,7 +19,7 @@ describe('importToNewRefundTicket()', () => {
|
|||
});
|
||||
tx = await models.Entry.beginTransaction({});
|
||||
options = {transaction: tx};
|
||||
spyOn(models.Agency, 'getShipped').and.returnValue(Promise.resolve(expectedDate));
|
||||
spyOn(models.Agency, 'getShipped').and.returnValue(Promise.resolve({shipped: expectedDate}));
|
||||
});
|
||||
|
||||
afterEach(async() => {
|
||||
|
|
|
@ -33,6 +33,11 @@ module.exports = Self => {
|
|||
type: 'date',
|
||||
description: `The to date filter`
|
||||
},
|
||||
{
|
||||
arg: 'shipped',
|
||||
type: 'date',
|
||||
description: `The shipped date filter`
|
||||
},
|
||||
{
|
||||
arg: 'nickname',
|
||||
type: 'string',
|
||||
|
@ -201,6 +206,7 @@ module.exports = Self => {
|
|||
case 'clientFk':
|
||||
case 'agencyModeFk':
|
||||
case 'warehouseFk':
|
||||
case 'shipped':
|
||||
param = `t.${param}`;
|
||||
return {[param]: value};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue