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

221 lines
6.2 KiB
TypeScript
Raw Normal View History

2025-09-15 09:31:47 +00:00
import { FiWaybill, WaybillTypeEnum, WaybillStatusEnum } from "../types/fi";
import { mockCurrentAccounts } from "./mockCurrentAccounts";
export const mockWaybills: FiWaybill[] = [
{
id: "1",
waybillNumber: "IRS2024001",
waybillType: WaybillTypeEnum.Outgoing,
currentAccountId: "1",
currentAccount: mockCurrentAccounts.find((acc) => acc.id === "1"),
waybillDate: new Date("2024-01-15"),
deliveryDate: new Date("2024-01-16"),
subtotal: 50300,
taxAmount: 9054,
discountAmount: 0,
totalAmount: 59354,
currency: "TRY",
status: WaybillStatusEnum.Delivered,
isInvoiced: false,
items: [
{
id: "1",
waybillId: "1",
description: "Laptop Dell Inspiron 15",
quantity: 2,
unit: "Adet",
unitPrice: 25000,
lineTotal: 59000,
discountRate: 0,
discountAmount: 0,
taxRate: 18,
taxAmount: 9000,
netAmount: 50000,
},
{
id: "2",
waybillId: "1",
description: "Wireless Mouse",
quantity: 2,
unit: "Adet",
unitPrice: 150,
lineTotal: 354,
discountRate: 0,
discountAmount: 0,
taxRate: 18,
taxAmount: 54,
netAmount: 300,
},
],
deliveryAddress: "Ataşehir Mah. Barbaros Cad. No:15 Ataşehir/İstanbul",
receiverName: "Ahmet Yılmaz",
receiverPhone: "+90 212 555 0101",
carrierCompany: "MNG Kargo",
trackingNumber: "MNG123456789",
notes: "Dikkatli taşınması gerekiyor.",
creationTime: new Date("2024-01-15T08:00:00"),
lastModificationTime: new Date("2024-01-16T14:30:00"),
},
{
id: "2",
waybillNumber: "IRS2024002",
waybillType: WaybillTypeEnum.Outgoing,
currentAccountId: "2",
currentAccount: mockCurrentAccounts.find((acc) => acc.id === "2"),
waybillDate: new Date("2024-01-16"),
deliveryDate: new Date("2024-01-17"),
subtotal: 15000,
taxAmount: 2700,
discountAmount: 0,
totalAmount: 17700,
currency: "TRY",
status: WaybillStatusEnum.Delivered,
isInvoiced: false,
items: [
{
id: "3",
waybillId: "2",
2025-11-03 11:25:05 +00:00
description: "Yazılım Lisansı - Erp Modülü",
2025-09-15 09:31:47 +00:00
quantity: 1,
unit: "Adet",
unitPrice: 15000,
lineTotal: 17700,
discountRate: 0,
discountAmount: 0,
taxRate: 18,
taxAmount: 2700,
netAmount: 15000,
},
],
deliveryAddress: "Kadıköy Mah. Bağdat Cad. No:45 Kadıköy/İstanbul",
receiverName: "Mehmet Demir",
receiverPhone: "+90 216 444 0202",
carrierCompany: "Yurtiçi Kargo",
trackingNumber: "YK987654321",
notes: "Dijital teslimat yapılacak.",
creationTime: new Date("2024-01-16T09:30:00"),
lastModificationTime: new Date("2024-01-17T16:00:00"),
},
{
id: "3",
waybillNumber: "IRS2024003",
waybillType: WaybillTypeEnum.Outgoing,
currentAccountId: "1",
currentAccount: mockCurrentAccounts.find((acc) => acc.id === "1"),
waybillDate: new Date("2024-01-17"),
deliveryDate: new Date("2024-01-18"),
subtotal: 10500,
taxAmount: 1890,
discountAmount: 0,
totalAmount: 12390,
currency: "TRY",
status: WaybillStatusEnum.Delivered,
isInvoiced: true,
invoiceId: "1",
items: [
{
id: "4",
waybillId: "3",
description: "Monitor 24 inch LED",
quantity: 3,
unit: "Adet",
unitPrice: 3500,
lineTotal: 12390,
discountRate: 0,
discountAmount: 0,
taxRate: 18,
taxAmount: 1890,
netAmount: 10500,
},
],
deliveryAddress: "Ataşehir Mah. Barbaros Cad. No:15 Ataşehir/İstanbul",
receiverName: "Ahmet Yılmaz",
receiverPhone: "+90 212 555 0101",
carrierCompany: "PTT Kargo",
trackingNumber: "PTT555666777",
notes: "Fatura kesilmiş, faturalandırıldı.",
creationTime: new Date("2024-01-17T10:00:00"),
lastModificationTime: new Date("2024-01-18T11:30:00"),
},
{
id: "4",
waybillNumber: "IRS2024004",
waybillType: WaybillTypeEnum.Outgoing,
currentAccountId: "2",
currentAccount: mockCurrentAccounts.find((acc) => acc.id === "2"),
waybillDate: new Date("2024-01-18"),
deliveryDate: new Date("2024-01-19"),
subtotal: 35000,
taxAmount: 6300,
discountAmount: 1750,
totalAmount: 39550,
currency: "TRY",
status: WaybillStatusEnum.Delivered,
isInvoiced: false,
items: [
{
id: "5",
waybillId: "4",
description: "Tablet Samsung Galaxy Tab",
quantity: 10,
unit: "Adet",
unitPrice: 3500,
lineTotal: 39550,
discountRate: 5,
discountAmount: 1750,
taxRate: 18,
taxAmount: 6300,
netAmount: 33250,
},
],
deliveryAddress: "Şişli Mah. Mecidiyeköy Cad. No:100 Şişli/İstanbul",
receiverName: "Fatma Kaya",
receiverPhone: "+90 212 777 0303",
carrierCompany: "Aras Kargo",
trackingNumber: "ARS111222333",
notes: "Toplu teslimat, %5 indirim uygulandı.",
creationTime: new Date("2024-01-18T14:00:00"),
lastModificationTime: new Date("2024-01-19T10:15:00"),
},
{
id: "5",
waybillNumber: "IRS2024005",
waybillType: WaybillTypeEnum.Incoming,
currentAccountId: "4",
currentAccount: mockCurrentAccounts.find((acc) => acc.id === "4"),
waybillDate: new Date("2024-01-19"),
deliveryDate: new Date("2024-01-20"),
subtotal: 20000,
taxAmount: 3600,
discountAmount: 0,
totalAmount: 23600,
currency: "TRY",
status: WaybillStatusEnum.Delivered,
isInvoiced: false,
items: [
{
id: "6",
waybillId: "5",
description: "Klavye Mekanik Gaming",
quantity: 20,
unit: "Adet",
unitPrice: 1000,
lineTotal: 23600,
discountRate: 0,
discountAmount: 0,
taxRate: 18,
taxAmount: 3600,
netAmount: 20000,
},
],
deliveryAddress: "Merkez Depo - Ümraniye Sanayi Sitesi",
receiverName: "Depo Sorumlusu",
receiverPhone: "+90 216 555 0505",
carrierCompany: "Horoz Lojistik",
trackingNumber: "HRZ777888999",
notes: "Stok girişi yapıldı.",
creationTime: new Date("2024-01-19T11:00:00"),
lastModificationTime: new Date("2024-01-20T09:00:00"),
},
];