ref #5417 date filters added #1773
Labels
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#1773
Loading…
Reference in New Issue
No description provided.
Delete Branch "5417-fixCustomerPayments"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -31,0 +32,4 @@
{
arg: 'from',
type: 'date',
http: {source: 'query'}
http: {source: 'query'} es el tipo por defecto?
@ -49,1 +59,4 @@
if (ctx.args && args.to) {
const dateTo = args.to;
dateTo.setHours(23, 59, 0, 0);
.setHours(23, 59, 59, 999);
@ -57,1 +72,4 @@
return {'t.amount': (value * 100)};
case 'from':
return {'t.created': {gte: value}};
Aci hi ha un intro que sobra
@ -28,6 +28,14 @@ module.exports = Self => {
arg: 'amount',
type: 'number',
http: {source: 'query'}
http: {source: 'query'} es el tipo por defecto?
No, pero en este caso los datos llegan así.
@ -47,6 +55,11 @@ module.exports = Self => {
if (typeof options == 'object')
Object.assign(myOptions, options);
if (ctx.args && args.to) {
Parlarem en una reunio de salix, que no debiem gastar ctx.args. Si no definir dalt els parametros
https://docs.google.com/document/d/1vjyL64Rqi40kLxEpB9nISU_r3cndQfp3NdsnlPagzv4/edit
(el punt 2)
New commits pushed, approval review dismissed automatically according to repository settings
@ -66,0 +69,4 @@
try {
const options = {transaction: tx};
const ctx = {args: {from: '2000/12/31'}};
I aci no te falla? args
Sí, lo acabo de arreglar.