fix: order transaction
This commit is contained in:
		| @@ -6,4 +6,6 @@ export class OrderTransactionDto { | |||||||
|  |  | ||||||
|   @IsNotEmpty() |   @IsNotEmpty() | ||||||
|   destination: string; |   destination: string; | ||||||
|  |  | ||||||
|  |   trx_id: string; | ||||||
| } | } | ||||||
|   | |||||||
| @@ -377,6 +377,7 @@ export class TransactionService { | |||||||
|         transactionData.type = typeTransaction.ORDER; |         transactionData.type = typeTransaction.ORDER; | ||||||
|         transactionData.product_price = product_price; |         transactionData.product_price = product_price; | ||||||
|         transactionData.destination = orderTransactionDto.destination; |         transactionData.destination = orderTransactionDto.destination; | ||||||
|  |         transactionData.partner_trx_id = orderTransactionDto.trx_id; | ||||||
|         await manager.insert(Transactions, transactionData); |         await manager.insert(Transactions, transactionData); | ||||||
|  |  | ||||||
|         await this.accountingTransaction({ |         await this.accountingTransaction({ | ||||||
| @@ -458,6 +459,7 @@ export class TransactionService { | |||||||
|     transactionData.type = typeTransaction.ORDER; |     transactionData.type = typeTransaction.ORDER; | ||||||
|     transactionData.product_price = product_price; |     transactionData.product_price = product_price; | ||||||
|     transactionData.destination = orderTransactionDto.destination; |     transactionData.destination = orderTransactionDto.destination; | ||||||
|  |     transactionData.partner_trx_id = orderTransactionDto.trx_id; | ||||||
|     transactionData.supplier_trx_id = trxId; |     transactionData.supplier_trx_id = trxId; | ||||||
|  |  | ||||||
|     if (!hitSupplier.success) { |     if (!hitSupplier.success) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user