mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
feat(clearance): preview charge documents before and after upload
This commit is contained in:
@@ -13,7 +13,7 @@ import {
|
|||||||
Text,
|
Text,
|
||||||
} from "@mantine/core";
|
} from "@mantine/core";
|
||||||
import {
|
import {
|
||||||
Check,
|
// Check,
|
||||||
CheckCircle2,
|
CheckCircle2,
|
||||||
Download,
|
Download,
|
||||||
Eye,
|
Eye,
|
||||||
@@ -41,28 +41,28 @@ import { downloadStoredFile } from "@/services/files.service";
|
|||||||
import { CardTitle, SectionCard } from "./layout";
|
import { CardTitle, SectionCard } from "./layout";
|
||||||
|
|
||||||
// Customer-facing labels for an invoice status (Freight.InvoiceStatus).
|
// Customer-facing labels for an invoice status (Freight.InvoiceStatus).
|
||||||
const INVOICE_STATUS_LABELS: Record<string, string> = {
|
// const INVOICE_STATUS_LABELS: Record<string, string> = {
|
||||||
DRAFT: "Draft",
|
// DRAFT: "Draft",
|
||||||
ISSUED: "Issued",
|
// ISSUED: "Issued",
|
||||||
PENDING: "Due",
|
// PENDING: "Due",
|
||||||
PAYMENT_PROCESSING: "Payment processing",
|
// PAYMENT_PROCESSING: "Payment processing",
|
||||||
PARTIALLY_PAID: "Partially paid",
|
// PARTIALLY_PAID: "Partially paid",
|
||||||
PAID: "Paid",
|
// PAID: "Paid",
|
||||||
OVERDUE: "Overdue",
|
// OVERDUE: "Overdue",
|
||||||
CANCELLED: "Cancelled",
|
// CANCELLED: "Cancelled",
|
||||||
REFUNDED: "Refunded",
|
// REFUNDED: "Refunded",
|
||||||
EXPIRED: "Expired",
|
// EXPIRED: "Expired",
|
||||||
};
|
// };
|
||||||
|
|
||||||
function invoiceStatusLabel(status: string): string {
|
// function invoiceStatusLabel(status: string): string {
|
||||||
return (
|
// return (
|
||||||
INVOICE_STATUS_LABELS[status] ??
|
// INVOICE_STATUS_LABELS[status] ??
|
||||||
status
|
// status
|
||||||
.replace(/_/g, " ")
|
// .replace(/_/g, " ")
|
||||||
.toLowerCase()
|
// .toLowerCase()
|
||||||
.replace(/\b\w/g, (m) => m.toUpperCase())
|
// .replace(/\b\w/g, (m) => m.toUpperCase())
|
||||||
);
|
// );
|
||||||
}
|
// }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Customs payments on a phased (customs) booking — duty / tax, the post-arrival
|
* Customs payments on a phased (customs) booking — duty / tax, the post-arrival
|
||||||
|
|||||||
Reference in New Issue
Block a user