239 lines
4.8 KiB
TypeScript
239 lines
4.8 KiB
TypeScript
import { InvoiceModel } from "../models/invoice";
|
|
|
|
export const invoice: InvoiceModel[] = [
|
|
{
|
|
id: 1,
|
|
invoiceNumber: "INV-0001",
|
|
companyId: 2,
|
|
dateIssued: new Date("2023-03-15"),
|
|
dueDate: new Date("2023-03-30"),
|
|
status: "paid",
|
|
amount: "100000",
|
|
currency: "₦",
|
|
services: [
|
|
{
|
|
description: "Custom Website Development",
|
|
service: 1,
|
|
unitPrice: 100000,
|
|
total: 100000,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
id: 2,
|
|
invoiceNumber: "INV-0002",
|
|
companyId: 3,
|
|
dateIssued: new Date("2023-03-20"),
|
|
dueDate: new Date("2023-04-10"),
|
|
status: "pending",
|
|
amount: "300000",
|
|
currency: "₦",
|
|
services: [
|
|
{
|
|
description: "Custom Mobile App Development",
|
|
service: 1,
|
|
unitPrice: 300000,
|
|
total: 300000,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
id: 3,
|
|
invoiceNumber: "INV-0003",
|
|
companyId: 1,
|
|
dateIssued: new Date("2023-03-25"),
|
|
dueDate: new Date("2023-04-15"),
|
|
status: "pending",
|
|
amount: "200000",
|
|
currency: "₦",
|
|
services: [
|
|
{
|
|
description: "E-commerce Website Development",
|
|
service: 1,
|
|
unitPrice: 200000,
|
|
total: 200000,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
id: 4,
|
|
invoiceNumber: "INV-0004",
|
|
companyId: 5,
|
|
dateIssued: new Date("2023-03-30"),
|
|
dueDate: new Date("2023-04-20"),
|
|
status: "paid",
|
|
amount: "500000",
|
|
currency: "₦",
|
|
services: [
|
|
{
|
|
description: "Website Redesign",
|
|
service: 1,
|
|
unitPrice: 500000,
|
|
total: 500000,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
id: 5,
|
|
invoiceNumber: "INV-0005",
|
|
companyId: 6,
|
|
dateIssued: new Date("2023-04-05"),
|
|
dueDate: new Date("2023-04-25"),
|
|
status: "overdue",
|
|
amount: "250000",
|
|
currency: "₦",
|
|
services: [
|
|
{
|
|
description: "Website Maintenance",
|
|
service: 1,
|
|
unitPrice: 250000,
|
|
total: 250000,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
id: 6,
|
|
invoiceNumber: "INV-0006",
|
|
companyId: 7,
|
|
dateIssued: new Date("2023-04-10"),
|
|
dueDate: new Date("2023-04-30"),
|
|
status: "paid",
|
|
amount: "100000",
|
|
currency: "₦",
|
|
services: [
|
|
{
|
|
description: "Website Hosting",
|
|
service: 1,
|
|
unitPrice: 100000,
|
|
total: 100000,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
id: 7,
|
|
invoiceNumber: "INV-0007",
|
|
companyId: 4,
|
|
dateIssued: new Date("2023-04-15"),
|
|
dueDate: new Date("2023-05-05"),
|
|
status: "paid",
|
|
amount: "200000",
|
|
currency: "₦",
|
|
services: [
|
|
{
|
|
description: "Custom Software Development",
|
|
service: 1,
|
|
unitPrice: 200000,
|
|
total: 200000,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
id: 8,
|
|
invoiceNumber: "INV-0008",
|
|
companyId: 8,
|
|
dateIssued: new Date("2023-04-15"),
|
|
dueDate: new Date("2023-05-05"),
|
|
status: "paid",
|
|
amount: "200000",
|
|
currency: "₦",
|
|
services: [
|
|
{
|
|
description: "Custom Software Development",
|
|
service: 1,
|
|
unitPrice: 200000,
|
|
total: 200000,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
id: 9,
|
|
invoiceNumber: "INV-0009",
|
|
companyId: 9,
|
|
dateIssued: new Date("2023-04-20"),
|
|
dueDate: new Date("2023-05-10"),
|
|
status: "paid",
|
|
amount: "300000",
|
|
currency: "₦",
|
|
services: [
|
|
{
|
|
description: "Website Security Audit",
|
|
service: 1,
|
|
unitPrice: 300000,
|
|
total: 300000,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
id: 10,
|
|
invoiceNumber: "INV-00010",
|
|
companyId: 10,
|
|
dateIssued: new Date("2023-04-20"),
|
|
dueDate: new Date("2023-05-10"),
|
|
status: "paid",
|
|
amount: "150000",
|
|
currency: "₦",
|
|
services: [
|
|
{
|
|
description: "Website Optimization",
|
|
service: 1,
|
|
unitPrice: 150000,
|
|
total: 150000,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
id: 11,
|
|
invoiceNumber: "INV-00011",
|
|
companyId: 1,
|
|
dateIssued: new Date("2023-03-10"),
|
|
dueDate: new Date("2023-06-15"),
|
|
status: "paid",
|
|
amount: "100000",
|
|
currency: "₦",
|
|
services: [
|
|
{
|
|
description: "Website Hosting",
|
|
service: 1,
|
|
unitPrice: 100000,
|
|
total: 100000,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
id: 12,
|
|
invoiceNumber: "INV-00012",
|
|
companyId: 1,
|
|
dateIssued: new Date("2023-05-05"),
|
|
dueDate: new Date("2024-07-15"),
|
|
status: "overdue",
|
|
amount: "250000",
|
|
currency: "₦",
|
|
services: [
|
|
{
|
|
description: "Website Maintenance",
|
|
service: 1,
|
|
unitPrice: 250000,
|
|
total: 250000,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
id: 13,
|
|
invoiceNumber: "INV-00013",
|
|
companyId: 1,
|
|
dateIssued: new Date("2023-03-21"),
|
|
dueDate: new Date("2023-05-15"),
|
|
status: "pending",
|
|
amount: "70000",
|
|
currency: "₦",
|
|
services: [
|
|
{
|
|
description: "Website Security Audit",
|
|
service: 1,
|
|
unitPrice: 70000,
|
|
total: 70000,
|
|
},
|
|
],
|
|
},
|
|
];
|