55 lines
1.5 KiB
TypeScript
55 lines
1.5 KiB
TypeScript
import {
|
|
FiInvoice,
|
|
InvoiceStatusEnum,
|
|
InvoiceTypeEnum,
|
|
PaymentStatusEnum,
|
|
} from "../types/fi";
|
|
import { mockCurrentAccounts } from "./mockCurrentAccounts";
|
|
|
|
export const mockInvoices: FiInvoice[] = [
|
|
{
|
|
id: "1",
|
|
invoiceNumber: "SAT-2024-001",
|
|
invoiceType: InvoiceTypeEnum.Sales,
|
|
currentAccountId: "1",
|
|
currentAccount: mockCurrentAccounts.find((acc) => acc.id === "1")!,
|
|
invoiceDate: new Date("2024-01-15"),
|
|
dueDate: new Date("2024-02-14"),
|
|
subtotal: 10000,
|
|
taxAmount: 1800,
|
|
discountAmount: 0,
|
|
totalAmount: 11800,
|
|
paidAmount: 5000,
|
|
remainingAmount: 6800,
|
|
currency: "TRY",
|
|
status: InvoiceStatusEnum.Sent,
|
|
paymentStatus: PaymentStatusEnum.PartiallyPaid,
|
|
items: [],
|
|
waybillNumber: "IRS-2024-001",
|
|
creationTime: new Date("2024-01-15"),
|
|
lastModificationTime: new Date("2024-01-20"),
|
|
},
|
|
{
|
|
id: "2",
|
|
invoiceNumber: "AL-2024-001",
|
|
invoiceType: InvoiceTypeEnum.Purchase,
|
|
currentAccountId: "2",
|
|
currentAccount: mockCurrentAccounts.find((acc) => acc.id === "2")!,
|
|
invoiceDate: new Date("2024-01-10"),
|
|
dueDate: new Date("2024-02-09"),
|
|
subtotal: 15000,
|
|
taxAmount: 2700,
|
|
discountAmount: 0,
|
|
totalAmount: 17700,
|
|
paidAmount: 17700,
|
|
remainingAmount: 0,
|
|
currency: "TRY",
|
|
status: InvoiceStatusEnum.Approved,
|
|
paymentStatus: PaymentStatusEnum.Paid,
|
|
items: [],
|
|
waybillNumber: "IRS-2024-002",
|
|
waybillDate: new Date("2024-01-10"),
|
|
creationTime: new Date("2024-01-10"),
|
|
lastModificationTime: new Date("2024-01-15"),
|
|
},
|
|
];
|