erp-platform/ui/src/mocks/mockPromissoryNotes.ts
2025-09-17 12:46:58 +03:00

40 lines
1.2 KiB
TypeScript

import { NoteStatusEnum, PromissoryNote, TypeEnum } from '../types/fi'
import { mockCurrentAccounts } from './mockCurrentAccounts'
export const mockPromissoryNotes: PromissoryNote[] = [
{
id: '1',
noteNumber: 'NOT-001',
type: TypeEnum.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: TypeEnum.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'),
},
]