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
|
urls: https://mattermost.eigen.co.id/api/v4/posts
|
||||||
content_type: application/json
|
content_type: application/json
|
||||||
headers:
|
headers:
|
||||||
- Authorization=Bearer ca1se6wnojbw3kd48j14rpr1oo
|
- Authorization=Bearer 5zubexudb38uuradfa36qy98ca
|
||||||
template: |
|
template: |
|
||||||
{
|
{
|
||||||
"channel_id": "s1ekqde1c3du5p35g6budnuotc",
|
"channel_id": "s1ekqde1c3du5p35g6budnuotc",
|
||||||
"message": "Build POS backend sudah selesai"
|
"message": "Build {{repo.name}} sudah selesai"
|
||||||
}
|
}
|
||||||
trigger:
|
trigger:
|
||||||
ref:
|
ref:
|
||||||
|
|
|
@ -88,7 +88,7 @@ export class ChangeStatusBookingHandler
|
||||||
async handle(event: TransactionChangeStatusEvent) {
|
async handle(event: TransactionChangeStatusEvent) {
|
||||||
const data = event.data.data;
|
const data = event.data.data;
|
||||||
|
|
||||||
const dataID = data?.id;
|
const dataID = data?.id ?? data?.order_id;
|
||||||
|
|
||||||
const couchData = await this.couchService.getDoc(dataID, 'booking');
|
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 { TransactionType } from 'src/modules/transaction/transaction/constants';
|
||||||
import { TransactionModel } from 'src/modules/transaction/transaction/data/models/transaction.model';
|
import { TransactionModel } from 'src/modules/transaction/transaction/data/models/transaction.model';
|
||||||
import { TransactionEntity } from 'src/modules/transaction/transaction/domain/entities/transaction.entity';
|
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 _ from 'lodash';
|
||||||
import * as moment from 'moment';
|
import * as moment from 'moment';
|
||||||
import { EMPTY_UUID, STATUS } from 'src/core/strings/constants/base.constants';
|
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,
|
payment_type: TransactionType.COUNTER,
|
||||||
status: STATUS.SETTLED,
|
status: STATUS.SETTLED,
|
||||||
created_at: Between(this.startOfDay, this.endOfDay),
|
created_at: Between(this.startOfDay, this.endOfDay),
|
||||||
|
payment_type_counter: Not(IsNull()),
|
||||||
|
payment_total: MoreThan(0),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue