The FORM_DEFAULT_VALUES object defines the structure and default values for the invoice creation form. It includes sections for sender, receiver, and details (which contains items, currency, tax, discounts, shipping, and payment information).
export const FORM_DEFAULT_VALUES = {
sender: {
name: "",
address: "",
zipCode: "",
city: "",
country: "",
email: "",
phone: "",
customInputs: [],
},
receiver: {
name: "",
address: "",
zipCode: "",
city: "",
country: "",
email: "",
phone: "",
customInputs: [],
},
details: {
invoiceLogo: "",
invoiceNumber: "",
invoiceDate: "",
dueDate: "",
items: [
{
name: "",
description: "",
quantity: 0,
unitPrice: 0,
total: 0,
},
],
currency: "USD",
language: "English",
taxDetails: {
amount: 0,
amountType: "amount",
taxID: "",
},
discountDetails: {
amount: 0,
amountType: "amount",
},
shippingDetails: {
cost: 0,
costType: "amount",
},
paymentInformation: {
bankName: "",
accountName: "",
accountNumber: "",
},
additionalNotes: "",
paymentTerms: "",
totalAmountInWords: "",
pdfTemplate: 1,
},
};