- fix balance_remaining transaction table callback gagal
This commit is contained in:
parent
5d203ef8b0
commit
03f3c1b7fb
|
@ -1395,7 +1395,7 @@ export class TransactionService {
|
|||
dataTransaction.callback_json = callback;
|
||||
dataTransaction.failed_reason = `Trx ${product.code} ke ${dataTransaction.destination} gagal`;
|
||||
dataTransaction.balance_remaining =
|
||||
coaAccount.amount + dataTransaction.amount;
|
||||
Math.floor(coaAccount.amount) + dataTransaction.amount;
|
||||
|
||||
const coaInventory = await this.coaService.findByName(
|
||||
`${coaType[coaType.INVENTORY]}-${product.supplier.code}`,
|
||||
|
|
Loading…
Reference in New Issue
Block a user