feat: Hook up company logo to server-side pdf templates

This commit is contained in:
Ahmed Bouhuolia
2024-09-26 18:33:21 +02:00
parent e4044ef563
commit 46a145ae58
12 changed files with 51 additions and 25 deletions

View File

@@ -68,10 +68,16 @@ export const DEFAULT_VIEWS = [
];
export const defaultCreditNoteBrandingAttributes = {
// # Colors
primaryColor: '',
secondaryColor: '',
// # Company logo
showCompanyLogo: true,
companyLogo: '',
companyLogoKey: '',
companyLogoUri: '',
// # Company name
companyName: 'Bigcapital Technology, Inc.',
// Address

View File

@@ -177,8 +177,12 @@ export const SaleEstimatesSampleData = [
export const defaultEstimatePdfBrandingAttributes = {
primaryColor: '#000',
secondaryColor: '#000',
// # Company logo
showCompanyLogo: true,
companyLogo: '',
companyLogoUri: '',
companyLogoKey: '',
companyName: '',
billedToAddress: [

View File

@@ -170,7 +170,8 @@ export const defaultInvoicePdfTemplateAttributes = {
companyName: 'Bigcapital Technology, Inc.',
showCompanyLogo: true,
companyLogo: '',
companyLogoKey: '',
companyLogoUri: '',
dueDateLabel: 'Date due',
showDueDate: true,

View File

@@ -47,12 +47,18 @@ export const PaymentsReceiveSampleData = [
];
export const defaultPaymentReceivedPdfTemplateAttributes = {
// # Colors
primaryColor: '#000',
secondaryColor: '#000',
// # Company logo
showCompanyLogo: true,
companyLogo: '',
companyLogoUri: '',
// # Company name
companyName: 'Bigcapital Technology, Inc.',
// Address
billedToAddress: [
'Bigcapital Technology, Inc.',
'131 Continental Dr Suite 305 Newark,',
@@ -72,10 +78,12 @@ export const defaultPaymentReceivedPdfTemplateAttributes = {
showBillingToAddress: true,
billedToLabel: 'Billed To',
// Total
total: '$1000.00',
totalLabel: 'Total',
showTotal: true,
// Subtotal
subtotal: '1000/00',
subtotalLabel: 'Subtotal',
showSubtotal: true,
@@ -87,10 +95,12 @@ export const defaultPaymentReceivedPdfTemplateAttributes = {
paidAmount: '$1000.00',
},
],
// Payment received number
showPaymentReceivedNumber: true,
paymentReceivedNumberLabel: 'Payment Number',
paymentReceivedNumebr: '346D3D40-0001',
// Payment date.
paymentReceivedDate: 'September 3, 2024',
showPaymentReceivedDate: true,
paymentReceivedDateLabel: 'Payment Date',

View File

@@ -69,10 +69,13 @@ export const SaleReceiptsSampleData = [
export const defaultSaleReceiptBrandingAttributes = {
primaryColor: '',
secondaryColor: '',
showCompanyLogo: true,
companyLogo: '',
companyName: 'Bigcapital Technology, Inc.',
// # Company logo
showCompanyLogo: true,
companyLogoUri: '',
companyLogoKey: '',
// # Address
billedToAddress: [
'Bigcapital Technology, Inc.',