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.supplier_trx_id = trxId; | ||||
|           transactionData.check_bill = orderTransactionDto.bill_trx_id; | ||||
|           transactionData.balance_remaining = | ||||
|               coaAccount.amount - product_price.mark_up_price - costInventory; | ||||
|  | ||||
|           if (!hitSupplier.success) { | ||||
|             transactionData.balance_remaining = coaAccount.amount; | ||||
|             transactionData.status = statusTransaction.FAILED; | ||||
|             status = statusTransaction[transactionData.status]; | ||||
|             await this.transactionRepository.insert(transactionData); | ||||
| @@ -784,6 +783,8 @@ export class TransactionService { | ||||
|                 HttpStatus.INTERNAL_SERVER_ERROR, | ||||
|             ); | ||||
|           } else { | ||||
|             transactionData.balance_remaining = | ||||
|                 coaAccount.amount - product_price.mark_up_price - costInventory; | ||||
|             if ( | ||||
|               hitSupplier.sn != null || | ||||
|               hitSupplier.sn != '' || | ||||
|   | ||||
		Reference in New Issue
	
	Block a user