From 22138e7d2baecded261c38904d028962558951a4 Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Tue, 13 Aug 2024 15:10:01 +0700 Subject: update bug grand total --- src/lib/transaction/components/Transaction.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/transaction/components') diff --git a/src/lib/transaction/components/Transaction.jsx b/src/lib/transaction/components/Transaction.jsx index 85f6163b..4d401037 100644 --- a/src/lib/transaction/components/Transaction.jsx +++ b/src/lib/transaction/components/Transaction.jsx @@ -853,8 +853,8 @@ const Transaction = ({ id }) => { )} - {transaction?.data?.products?.map((product) => ( -
+ {transaction?.data?.products?.length > 0 && ( +
Subtotal
@@ -879,7 +879,7 @@ const Transaction = ({ id }) => {
- ))} + )} {transaction?.data?.productsRejectLine.length > 0 && (
-- cgit v1.2.3