From eb75b8102ec6f122f574baa1e80ecaefba155b5d Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Mon, 26 May 2025 09:23:37 +0330 Subject: [PATCH] original price --- src/pages/receipts/Detail.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pages/receipts/Detail.tsx b/src/pages/receipts/Detail.tsx index 0116485..01ca21d 100644 --- a/src/pages/receipts/Detail.tsx +++ b/src/pages/receipts/Detail.tsx @@ -157,6 +157,7 @@ const ReceiptsDetail: FC = () => { { getInvoce.data?.data?.invoice?.items?.map((item: ReceiptDetailItemType) => { + const originalPrice = Number(item.unitPrice) * Number(item.count) return (
@@ -164,7 +165,12 @@ const ReceiptsDetail: FC = () => { {item.count} عدد
-
+
+ { + originalPrice !== item.totalPrice && ( + <>{NumberFormat(originalPrice)} + ) + } {NumberFormat(item.totalPrice)} تومان