erp-platform/ui/src/mocks/mockPromissoryNotes.ts

41 lines
1.2 KiB
TypeScript
Raw Normal View History

2025-09-15 09:31:47 +00:00
import { NoteStatusEnum, NoteTypeEnum, PromissoryNote } from "../types/fi";
import { mockCurrentAccounts } from "./mockCurrentAccounts";
export const mockPromissoryNotes: PromissoryNote[] = [
{
id: "1",
noteNumber: "NOT-001",
type: NoteTypeEnum.Received,
drawerName: "Müşteri A.Ş.",
payeeName: "ABC Şirket",
issueDate: new Date("2024-01-20"),
dueDate: new Date("2024-03-20"),
amount: 50000,
currency: "TRY",
status: NoteStatusEnum.InHand,
location: "Ana Kasa",
currentAccountId: "1",
currentAccount: mockCurrentAccounts.find((acc) => acc.id === "1"),
creationTime: new Date("2024-01-20"),
lastModificationTime: new Date("2024-01-20"),
},
{
id: "2",
noteNumber: "NOT-002",
type: NoteTypeEnum.Issued,
drawerName: "ABC Şirket",
payeeName: "Kefil A.Ş.",
issueDate: new Date("2024-01-05"),
dueDate: new Date("2024-03-05"),
amount: 30000,
currency: "TRY",
status: NoteStatusEnum.Collected,
location: "Banka",
collectionDate: new Date("2024-01-25"),
currentAccountId: "2",
currentAccount: mockCurrentAccounts.find((acc) => acc.id === "2"),
creationTime: new Date("2024-01-05"),
lastModificationTime: new Date("2024-01-25"),
},
];