Merge branch 'development' of https://gitlab.com/empatnusabangsa/ppob/ppob-backend into devops-staging
This commit is contained in:
		| @@ -769,10 +769,9 @@ export class TransactionService { | |||||||
|           transactionData.partner_trx_id = orderTransactionDto.trx_id; |           transactionData.partner_trx_id = orderTransactionDto.trx_id; | ||||||
|           transactionData.supplier_trx_id = trxId; |           transactionData.supplier_trx_id = trxId; | ||||||
|           transactionData.check_bill = orderTransactionDto.bill_trx_id; |           transactionData.check_bill = orderTransactionDto.bill_trx_id; | ||||||
|           transactionData.balance_remaining = |  | ||||||
|               coaAccount.amount - product_price.mark_up_price - costInventory; |  | ||||||
|  |  | ||||||
|           if (!hitSupplier.success) { |           if (!hitSupplier.success) { | ||||||
|  |             transactionData.balance_remaining = coaAccount.amount; | ||||||
|             transactionData.status = statusTransaction.FAILED; |             transactionData.status = statusTransaction.FAILED; | ||||||
|             status = statusTransaction[transactionData.status]; |             status = statusTransaction[transactionData.status]; | ||||||
|             await this.transactionRepository.insert(transactionData); |             await this.transactionRepository.insert(transactionData); | ||||||
| @@ -784,6 +783,8 @@ export class TransactionService { | |||||||
|                 HttpStatus.INTERNAL_SERVER_ERROR, |                 HttpStatus.INTERNAL_SERVER_ERROR, | ||||||
|             ); |             ); | ||||||
|           } else { |           } else { | ||||||
|  |             transactionData.balance_remaining = | ||||||
|  |                 coaAccount.amount - product_price.mark_up_price - costInventory; | ||||||
|             if ( |             if ( | ||||||
|               hitSupplier.sn != null || |               hitSupplier.sn != null || | ||||||
|               hitSupplier.sn != '' || |               hitSupplier.sn != '' || | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user