fix(SPG-848): exclude counter transaction with null payment type
parent
a14119719c
commit
f9937d84ab
|
@ -4,7 +4,7 @@ import { EventTopics } from 'src/core/strings/constants/interface.constants';
|
|||
import { TransactionType } from 'src/modules/transaction/transaction/constants';
|
||||
import { TransactionModel } from 'src/modules/transaction/transaction/data/models/transaction.model';
|
||||
import { TransactionEntity } from 'src/modules/transaction/transaction/domain/entities/transaction.entity';
|
||||
import { Between } from 'typeorm';
|
||||
import { Between, IsNull, Not } from 'typeorm';
|
||||
import * as _ from 'lodash';
|
||||
import * as moment from 'moment';
|
||||
import { EMPTY_UUID, STATUS } from 'src/core/strings/constants/base.constants';
|
||||
|
@ -38,6 +38,7 @@ export class RecapReconciliationManager extends BaseCustomManager<TransactionEnt
|
|||
payment_type: TransactionType.COUNTER,
|
||||
status: STATUS.SETTLED,
|
||||
created_at: Between(this.startOfDay, this.endOfDay),
|
||||
payment_type_counter: Not(IsNull()),
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue