+
@@ -209,6 +220,7 @@ export default function PromotionsList() {
variant="ghost"
size="icon"
className="text-red-500 hover:text-red-600"
+ title="Delete Promotion"
>
@@ -285,6 +297,12 @@ export default function PromotionsList() {
+
+ {/* Promotion Details Modal */}
+
setViewingPromotion(null)}
+ />
>
);
}
\ No newline at end of file
diff --git a/components/tables/order-table.tsx b/components/tables/order-table.tsx
index fba0ee9..da2b047 100644
--- a/components/tables/order-table.tsx
+++ b/components/tables/order-table.tsx
@@ -28,7 +28,9 @@ import {
ArrowUpDown,
Truck,
MessageCircle,
- AlertTriangle
+ AlertTriangle,
+ Tag,
+ Percent
} from "lucide-react";
import Link from "next/link";
import { clientFetch } from '@/lib/api';
@@ -60,6 +62,11 @@ interface Order {
underpaymentAmount?: number;
lastBalanceReceived?: number;
cryptoTotal?: number;
+ // Promotion fields
+ promotion?: string;
+ promotionCode?: string;
+ discountAmount?: number;
+ subtotalBeforeDiscount?: number;
}
type SortableColumns = "orderId" | "totalPrice" | "status" | "orderDate" | "paidAt";
@@ -430,6 +437,7 @@ export default function OrderTable() {
handleSort("totalPrice")}>
Total
+ Promotion
handleSort("status")}>
Status
@@ -468,6 +476,29 @@ export default function OrderTable() {
)}