Compare commits
6 Commits
bca3682826
...
c65f0dc9dc
Author | SHA1 | Date |
---|---|---|
|
c65f0dc9dc | |
|
c98b8da9ba | |
|
11aeb44bac | |
|
07347c9244 | |
|
29cc6dfae6 | |
|
f9937d84ab |
|
@ -20,11 +20,11 @@ steps:
|
|||
urls: https://mattermost.eigen.co.id/api/v4/posts
|
||||
content_type: application/json
|
||||
headers:
|
||||
- Authorization=Bearer ca1se6wnojbw3kd48j14rpr1oo
|
||||
- Authorization=Bearer 5zubexudb38uuradfa36qy98ca
|
||||
template: |
|
||||
{
|
||||
"channel_id": "s1ekqde1c3du5p35g6budnuotc",
|
||||
"message": "Build POS backend sudah selesai"
|
||||
"message": "Build {{repo.name}} sudah selesai"
|
||||
}
|
||||
trigger:
|
||||
ref:
|
||||
|
|
|
@ -88,7 +88,7 @@ export class ChangeStatusBookingHandler
|
|||
async handle(event: TransactionChangeStatusEvent) {
|
||||
const data = event.data.data;
|
||||
|
||||
const dataID = data?.id;
|
||||
const dataID = data?.id ?? data?.order_id;
|
||||
|
||||
const couchData = await this.couchService.getDoc(dataID, 'booking');
|
||||
|
||||
|
|
|
@ -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, MoreThan, 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,8 @@ 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()),
|
||||
payment_total: MoreThan(0),
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue