Merge branch 'master' of https://gitlab.com/empatnusabangsa/ppob/ppob-backend into devops-production
This commit is contained in:
		| @@ -10,7 +10,11 @@ export class Transactions extends BaseModel { | ||||
|   @Column() | ||||
|   amount: number; | ||||
|  | ||||
|   @Column() | ||||
|   @Column({ | ||||
|     type: 'numeric', | ||||
|     precision: 20, | ||||
|     scale: 2, | ||||
|   }) | ||||
|   balance_remaining: number; | ||||
|  | ||||
|   @Column() | ||||
|   | ||||
| @@ -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}`, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user