-
Quote information
+
{t("quotes.list.resume.quote_information")}
+
+
-
+ {t("quotes.form_fields.reference.label")}
+
+ - {data.reference}
+
-
{t("quotes.form_fields.date.label")}
- - {new Date(data.date).toLocaleDateString()}
+ - {new Date(data.date).toLocaleDateString()}
-
-
-
- Phone
-
-
- +1 234 567 890
+
+
-
+ {t("quotes.form_fields.customer_reference.label")}
+
+ -
+ {data.customer_reference}
-
Customer Information
- Date: {new Date(data.date).toLocaleDateString()}
+
+ {t("quotes.list.resume.customer_information")}
+
{data.customer_information}
-
-
-
- Customer
- - Liam Johnson
-
-
-
-
- Order Details
+ {t("quotes.list.resume.price_information")}
-
- Glimmer Lamps x 2
+ {t("quotes.form_fields.subtotal_price.label")}
- $250.00
+ {totals.subtotal_price}
-
- Aqua Filters x 1
+ {t("quotes.form_fields.discount.label")}
- $49.00
-
-
-
-
- -
- Subtotal
- $299.00
-
- -
- Shipping
$5.00
-
- Tax
+
+ {t("quotes.form_fields.discount_price.label")}
+
$25.00
+
+ -
+
+ {t("quotes.form_fields.tax.label")}
+
+ $5.00
+
+ -
+
+ {t("quotes.form_fields.tax_price.label")}
+
+ $25.00
+
+
-
- Total
+
+ {t("quotes.form_fields.total_price.label")}
+
$329.00
-
-
-
-
Shipping Information
-
- Liam Johnson
- 1234 Main St.
- Anytown, CA 12345
-
-
-
-
Billing Information
-
Same as shipping address
-
-
-
-
-
-
Payment Information
-
-
-
-
-
- Visa
-
- - **** **** **** 4532
-
-
-
diff --git a/client/src/app/quotes/components/QuotesDataTable.tsx b/client/src/app/quotes/components/QuotesDataTable.tsx
index 66a7413..b54eb2c 100644
--- a/client/src/app/quotes/components/QuotesDataTable.tsx
+++ b/client/src/app/quotes/components/QuotesDataTable.tsx
@@ -88,7 +88,9 @@ export const QuotesDataTable = ({
accessorKey: "status",
header: () => <>{t("quotes.list.columns.status")}>,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
- cell: ({ row: { original } }) =>
,
+ cell: ({ row: { original } }) => (
+
+ ),
},
{
id: "date" as const,
@@ -282,7 +284,7 @@ export const QuotesDataTable = ({
{preview && (
-
+
{/**/}
diff --git a/client/src/app/quotes/components/editors/QuoteStatusEditor.tsx b/client/src/app/quotes/components/editors/QuoteStatusEditor.tsx
index d19247a..d5a8008 100644
--- a/client/src/app/quotes/components/editors/QuoteStatusEditor.tsx
+++ b/client/src/app/quotes/components/editors/QuoteStatusEditor.tsx
@@ -25,8 +25,8 @@ const quoteStatusTransitions: Record
= {
draft: ["draft", "ready", "archived"],
ready: ["ready", "delivered", "archived"],
delivered: ["delivered", "accepted", "rejected", "archived"],
- accepted: ["accepted", "archived"],
- rejected: ["rejected", "archived"],
+ accepted: ["accepted", "rejected", "archived"],
+ rejected: ["rejected", "accepted", "archived"],
archived: ["archived", "draft", "ready", "delivered", "accepted", "rejected"],
};
@@ -53,8 +53,6 @@ export const QuoteStatusEditor = ({
}
};
- console.log(newStatus);
-
return (