Merge branch 'development' into 'devops-staging'

fix: confirm deposit return

See merge request empatnusabangsa/ppob/ppob-backend!54
This commit is contained in:
ilham dwi pratama 2021-12-22 17:36:15 +00:00
commit 498c1f9eab

View File

@ -446,23 +446,23 @@ export class TransactionService {
const transactionData = await this.findApprovalDepositReturn(id);
const coaSenderWallet = await this.coaService.findByUser(
transactionData.user_destination,
transactionData.user,
coaType.WALLET,
);
const coaAP = await this.coaService.findByUserWithRelated(
transactionData.user_destination,
transactionData.user,
userData.userId,
coaType.ACCOUNT_PAYABLE,
);
const coaReceiverWallet = await this.coaService.findByUser(
transactionData.user_destination,
transactionData.user,
coaType.WALLET,
);
const coaAR = await this.coaService.findByUserWithRelated(
transactionData.user_destination,
transactionData.user,
userData.userId,
coaType.ACCOUNT_RECEIVABLE,
);