Compare commits

..

No commits in common. "4fe385bca18d2a7d36461bfc011d0779bd411153" and "88cc9f4bc3c374e09c170cc6855a9beea93d059f" have entirely different histories.

3 changed files with 72 additions and 77 deletions

View File

@ -97,9 +97,9 @@ export class ChangeStatusBookingHandler
}, },
relations: ['items'], relations: ['items'],
}); });
console.log('change status', { dataID, couchData, booking });
mappingTransaction(booking); mappingTransaction(booking);
console.log('after mapping');
console.log('change status', { dataID, couchData, booking });
if (!couchData) { if (!couchData) {
console.log('save data to couch'); console.log('save data to couch');

View File

@ -32,7 +32,6 @@ export class PaymentTransactionHandler
const current_data = event.data.data; const current_data = event.data.data;
const data_id = current_data.transaction_id ?? event.data.id; const data_id = current_data.transaction_id ?? event.data.id;
const from_refund = event.data.module == TABLE_NAME.REFUND; const from_refund = event.data.module == TABLE_NAME.REFUND;
console.log('payment handlet', { data_id });
const payments = await this.paymentService.getManyByOptions({ const payments = await this.paymentService.getManyByOptions({
where: { where: {

View File

@ -5,7 +5,6 @@ import {
} from 'src/modules/transaction/transaction/constants'; } from 'src/modules/transaction/transaction/constants';
export function mappingTransaction(data, refundId?: string) { export function mappingTransaction(data, refundId?: string) {
try {
let payment_type_bank: any = null; let payment_type_bank: any = null;
const season_period = { const season_period = {
id: data.season_period_id, id: data.season_period_id,
@ -86,9 +85,6 @@ export function mappingTransaction(data, refundId?: string) {
delete data.payment_type_method_name; delete data.payment_type_method_name;
delete data.payment_type_method_number; delete data.payment_type_method_number;
delete data.payment_type_method_qr; delete data.payment_type_method_qr;
} catch (error) {
console.log('error mapping transactin', error);
}
} }
export function mappingRevertTransaction(data, type) { export function mappingRevertTransaction(data, type) {