From de3ce740f084bb9d5802f9f854aadb69693d6724 Mon Sep 17 00:00:00 2001 From: Fadli Date: Thu, 29 Dec 2022 16:30:58 +0700 Subject: [PATCH] - fix total profit b2b --- src/transaction/transaction.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/transaction/transaction.service.ts b/src/transaction/transaction.service.ts index d2211b4..53b4259 100644 --- a/src/transaction/transaction.service.ts +++ b/src/transaction/transaction.service.ts @@ -2390,7 +2390,8 @@ export class TransactionService { total_modal: parseInt(data.total_modal), total_amount: parseInt(data.total_amount), total_transaction: parseInt(data.total_transaction), - total_profit: parseInt(data.total_profit), + total_profit: data.total_amount - data.total_modal, + // total_profit: parseInt(data.total_profit), }; }