From 7958231883c753a50338df75903b6d3b8512c4cd Mon Sep 17 00:00:00 2001 From: Fadli Date: Wed, 12 Oct 2022 11:50:16 +0700 Subject: [PATCH] - fix total commision query --- src/transaction/transaction.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transaction/transaction.service.ts b/src/transaction/transaction.service.ts index 668e42a..59f38d8 100644 --- a/src/transaction/transaction.service.ts +++ b/src/transaction/transaction.service.ts @@ -2121,7 +2121,7 @@ export class TransactionService { total_transaction: parseInt(data.total_transaction), total_modal: parseInt(data.total_modal), total_profit: parseInt(data.total_profit), - total_commission: parseInt(total_expense) - parseInt(data.total_profit), + total_commission: parseInt(data.total_profit) - parseInt(total_expense), }; }