8355-testToMaster #3336
|
@ -25,7 +25,7 @@ BEGIN
|
||||||
DECLARE vIsInformativeExportation BOOL DEFAULT FALSE;
|
DECLARE vIsInformativeExportation BOOL DEFAULT FALSE;
|
||||||
|
|
||||||
DECLARE vCursor CURSOR FOR
|
DECLARE vCursor CURSOR FOR
|
||||||
SELECT it.taxableBase,
|
SELECT SUM(it.taxableBase),
|
||||||
CAST(SUM((( it.taxableBase / 100) * t.PorcentajeIva)) AS DECIMAL (10,2)),
|
CAST(SUM((( it.taxableBase / 100) * t.PorcentajeIva)) AS DECIMAL (10,2)),
|
||||||
t.PorcentajeIva,
|
t.PorcentajeIva,
|
||||||
it.transactionTypeSageFk,
|
it.transactionTypeSageFk,
|
||||||
|
|
|
@ -82,7 +82,7 @@ module.exports = Self => {
|
||||||
|
|
||||||
const message = $t('Changed sale quantity', {
|
const message = $t('Changed sale quantity', {
|
||||||
ticketId: sale.ticket().id,
|
ticketId: sale.ticket().id,
|
||||||
changes: change,
|
changes: JSON.stringify(change),
|
||||||
ticketUrl: `${url}ticket/${sale.ticket().id}/sale`,
|
ticketUrl: `${url}ticket/${sale.ticket().id}/sale`,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,11 @@ module.exports = Self => {
|
||||||
arg: 'myTeam',
|
arg: 'myTeam',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
description: `Team partners`
|
description: `Team partners`
|
||||||
|
},
|
||||||
|
{
|
||||||
|
arg: 'daysOnward',
|
||||||
|
type: 'number',
|
||||||
|
description: 'The days onward'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
returns: {
|
returns: {
|
||||||
|
@ -104,6 +109,9 @@ module.exports = Self => {
|
||||||
teamMembersId.push(userId);
|
teamMembersId.push(userId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const today = Date.vnNew();
|
||||||
|
const future = Date.vnNew();
|
||||||
|
|
||||||
let where = buildFilter(ctx.args, (param, value) => {
|
let where = buildFilter(ctx.args, (param, value) => {
|
||||||
switch (param) {
|
switch (param) {
|
||||||
case 'search':
|
case 'search':
|
||||||
|
@ -140,9 +148,13 @@ module.exports = Self => {
|
||||||
return {'tr.requesterFk': {inq: teamMembersId}};
|
return {'tr.requesterFk': {inq: teamMembersId}};
|
||||||
else
|
else
|
||||||
return {'tr.requesterFk': {nin: teamMembersId}};
|
return {'tr.requesterFk': {nin: teamMembersId}};
|
||||||
|
case 'daysOnward':
|
||||||
|
today.setHours(0, 0, 0, 0);
|
||||||
|
future.setDate(today.getDate() + value);
|
||||||
|
future.setHours(23, 59, 59, 999);
|
||||||
|
return {'t.shipped': {between: [today, future]}};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!where)
|
if (!where)
|
||||||
where = {};
|
where = {};
|
||||||
where['tw.ticketFk'] = null;
|
where['tw.ticketFk'] = null;
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
"type" : "number"
|
"type" : "number"
|
||||||
},
|
},
|
||||||
"isDependend": {
|
"isDependend": {
|
||||||
"type" : "number"
|
"type" : "boolean"
|
||||||
},
|
},
|
||||||
"familySituation": {
|
"familySituation": {
|
||||||
"type" : "number"
|
"type" : "number"
|
||||||
|
@ -35,15 +35,17 @@
|
||||||
"type" : "number"
|
"type" : "number"
|
||||||
},
|
},
|
||||||
"hasHousingPaymentBefore": {
|
"hasHousingPaymentBefore": {
|
||||||
"type" : "number"
|
"type" : "boolean"
|
||||||
},
|
},
|
||||||
"hasHousingPaymentAfter": {
|
"hasHousingPaymentAfter": {
|
||||||
"type" : "number"
|
"type" : "boolean"
|
||||||
},
|
},
|
||||||
"updated": {
|
"updated": {
|
||||||
"type" : "date"
|
"type" : "date"
|
||||||
|
},
|
||||||
|
"hasExtendedWorking": {
|
||||||
|
"type" : "boolean"
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
"relations": {
|
"relations": {
|
||||||
"disabilityGrade": {
|
"disabilityGrade": {
|
||||||
|
|
Loading…
Reference in New Issue