const componentSettings = {
general: {},
approvalPolicies: {
pageSizeOptions: [20, 50, 100]
},
approvalRequests: {
pageSizeOptions: [20, 50, 100]
},
counterparts: {
pageSizeOptions: [20, 50, 100],
customerTypes: ["customer", "vendor"]
},
payables: {
pageSizeOptions: [20, 50, 100],
isShowingSummaryCards: true,
fieldOrder: ["document_id", "counterpart_id", "created_at", "due_date", "status", "amount", "amount_paid", "pay"],
summaryCardFilters: {
"Overdue Invoices": {
status__in: ["waiting_to_be_paid"],
overdue: true
},
"High-Value Invoices": {
amount__gte: 10000
}
},
requiredColumns: ["document_id"],
optionalFields: {
invoiceDate: true,
tags: true
},
ocrRequiredFields: {
currency: true,
invoiceDate: true,
counterpart: true,
invoiceNumber: true,
counterpartBankAccount: true,
document_issued_at_date: true,
dueDate: true,
tags: true,
counterpartName: true,
contactPerson: true,
issueDate: true,
amount: true,
appliedPolicy: true,
addedByUser: true,
addedOn: true,
updatedOn: true
},
ocrMismatchFields: {
amount_to_pay: true,
counterpart_bank_account_id: true
},
isTagsDisabled: false
},
products: {
pageSizeOptions: [20, 50, 100]
},
receivables: {
pageSizeOptions: [20, 50, 100],
tab: 0,
tabs: [
{
label: "Invoices",
query: { type: "invoice" },
filters: ["document_id__contains", "counterpart_id", "due_date__lte"]
},
{
label: "Quotes",
query: { type: "quote" }
},
{
label: "Credit notes",
query: { type: "credit_note" }
},
{
label: "Financing",
query: { type: "financing" }
}
],
onCreate: (receivableId) => {},
onUpdate: (receivableId, invoice) => {},
onDelete: (receivableId) => {},
onInvoiceSent: (invoiceId) => {},
enableEntityBankAccount: false,
bankAccountCountries: ["US", "DE", "GB"],
bankAccountCurrencies: ["USD", "EUR", "GBP"]
},
tags: {
pageSizeOptions: [20, 50, 100]
},
userRoles: {
pageSizeOptions: [20, 50, 100]
},
onboarding: {
footerLogoUrl: "https://example.com/logo.png",
footerWebsiteUrl: "https://example.com",
hideFooter: false,
showContinueButton: false,
allowedCurrencies: ["USD", "EUR", "GBP"],
allowedCountries: ["US", "DE", "GB"],
onComplete: () => {},
onContinue: () => {},
onWorkingCapitalOnboardingComplete: (entityId) => {}
},
financing: {
enableFinanceWidgetButton: true
}
};