Files
bigcapital/packages/webapp/src/containers/Sales/PaymentsReceived/PaymentReceivedCustomize/constants.ts
2024-10-03 17:12:12 +02:00

84 lines
1.7 KiB
TypeScript

export const initialValues = {
templateName: '',
// Colors
primaryColor: '#2c3dd8',
secondaryColor: '#2c3dd8',
// Company logo.
showCompanyLogo: true,
companyLogoUri: '',
companyLogoKey: '',
// Top details.
showPaymentReceivedNumber: true,
paymentReceivedNumberLabel: 'Payment number',
// Payment number
showPaymentReceivedDate: true,
paymentReceivedDateLabel: 'Date of Issue',
// Company name
companyName: 'Bigcapital Technology, Inc.',
// Customer address
showCompanyAddress: true,
companyAddress: '',
// Company address
showCustomerAddress: true,
billedToLabel: 'Billed To',
// Entries
itemNameLabel: 'Item',
itemDescriptionLabel: 'Description',
itemRateLabel: 'Rate',
itemTotalLabel: 'Total',
// Subtotal
showSubtotal: true,
subtotalLabel: 'Subtotal',
// Total
showTotal: true,
totalLabel: 'Total',
};
export const fieldsGroups = [
{
label: 'Header',
fields: [
{
labelKey: 'paymentReceivedNumberLabel',
enableKey: 'showPaymentReceivedNumber',
label: 'Payment No.',
},
{
labelKey: 'paymentReceivedDateLabel',
enableKey: 'showPaymentReceivedDate',
label: 'Payment Date',
},
{
enableKey: 'showCustomerAddress',
labelKey: 'billedToLabel',
label: 'Bill To',
},
{
enableKey: 'showCompanyAddress',
label: 'Billed From',
},
],
},
{
label: 'Totals',
fields: [
{
labelKey: 'subtotalLabel',
enableKey: 'showSubtotal',
label: 'Subtotal',
},
{ labelKey: 'totalLabel', enableKey: 'showTotal', label: 'Total' },
],
},
];