Merge branch 'development' of ssh://git.eigen.co.id:2222/eigen/pos-be into development
continuous-integration/drone/tag Build is passing
Details
continuous-integration/drone/tag Build is passing
Details
commit
bd13f50bc0
|
@ -97,9 +97,9 @@ export class ChangeStatusBookingHandler
|
|||
},
|
||||
relations: ['items'],
|
||||
});
|
||||
mappingTransaction(booking);
|
||||
|
||||
console.log('change status', { dataID, couchData, booking });
|
||||
mappingTransaction(booking);
|
||||
console.log('after mapping');
|
||||
|
||||
if (!couchData) {
|
||||
console.log('save data to couch');
|
||||
|
|
|
@ -32,6 +32,7 @@ export class PaymentTransactionHandler
|
|||
const current_data = event.data.data;
|
||||
const data_id = current_data.transaction_id ?? event.data.id;
|
||||
const from_refund = event.data.module == TABLE_NAME.REFUND;
|
||||
console.log('payment handlet', { data_id });
|
||||
|
||||
const payments = await this.paymentService.getManyByOptions({
|
||||
where: {
|
||||
|
|
|
@ -5,6 +5,7 @@ import {
|
|||
} from 'src/modules/transaction/transaction/constants';
|
||||
|
||||
export function mappingTransaction(data, refundId?: string) {
|
||||
try {
|
||||
let payment_type_bank: any = null;
|
||||
const season_period = {
|
||||
id: data.season_period_id,
|
||||
|
@ -85,6 +86,9 @@ export function mappingTransaction(data, refundId?: string) {
|
|||
delete data.payment_type_method_name;
|
||||
delete data.payment_type_method_number;
|
||||
delete data.payment_type_method_qr;
|
||||
} catch (error) {
|
||||
console.log('error mapping transactin', error);
|
||||
}
|
||||
}
|
||||
|
||||
export function mappingRevertTransaction(data, type) {
|
||||
|
|
Loading…
Reference in New Issue