- fix balance_remaining transaction table callback gagal

This commit is contained in:
Fadli 2023-01-06 16:11:41 +07:00
parent 5d203ef8b0
commit 03f3c1b7fb

View File

@ -1395,7 +1395,7 @@ export class TransactionService {
dataTransaction.callback_json = callback; dataTransaction.callback_json = callback;
dataTransaction.failed_reason = `Trx ${product.code} ke ${dataTransaction.destination} gagal`; dataTransaction.failed_reason = `Trx ${product.code} ke ${dataTransaction.destination} gagal`;
dataTransaction.balance_remaining = dataTransaction.balance_remaining =
coaAccount.amount + dataTransaction.amount; Math.floor(coaAccount.amount) + dataTransaction.amount;
const coaInventory = await this.coaService.findByName( const coaInventory = await this.coaService.findByName(
`${coaType[coaType.INVENTORY]}-${product.supplier.code}`, `${coaType[coaType.INVENTORY]}-${product.supplier.code}`,