feat: Hook up customer/company address to pdf templates

This commit is contained in:
Ahmed Bouhuolia
2024-09-29 22:59:14 +02:00
parent 776b69475c
commit 863c7ad99f
29 changed files with 242 additions and 152 deletions

View File

@@ -17,10 +17,9 @@ United States, <br />
ahmed@bigcapital.app
`;
export const DefaultPdfTemplateAddressBilledFrom = `131 Continental Dr Suite 305 Newark, <br />
Delaware 19713,<br />
United States, <br />
+1 762-339-5634, <br />
ahmed@bigcapital.app
`;
`;

View File

@@ -71,23 +71,27 @@ export function EstimatePaperTemplate({
primaryColor,
secondaryColor,
// # Company logo
showCompanyLogo = true,
companyLogoUri = '',
companyName,
// # Address
customerAddress = DefaultPdfTemplateAddressBilledTo,
// # Company address
companyAddress = DefaultPdfTemplateAddressBilledFrom,
showCompanyAddress = true,
// # Customer address
customerAddress = DefaultPdfTemplateAddressBilledTo,
showCustomerAddress = true,
billedToLabel = 'Billed To',
// #Total
// # Total
total = '$1000.00',
totalLabel = 'Total',
showTotal = true,
// # Subtotal
subtotal = '1000/00',
subtotalLabel = 'Subtotal',
showSubtotal = true,
@@ -111,14 +115,18 @@ export function EstimatePaperTemplate({
total: '$1000.00',
},
],
// Estimate number
showEstimateNumber = true,
estimateNumberLabel = 'Estimate Number',
estimateNumebr = '346D3D40-0001',
// Estimate date
estimateDate = 'September 3, 2024',
showEstimateDate = true,
estimateDateLabel = 'Estimate Date',
// Expiration date
expirationDateLabel = 'Expiration Date',
showExpirationDate = true,
expirationDate = 'September 3, 2024',

View File

@@ -23,10 +23,11 @@ export const initialValues = {
// Company name
companyName: 'Bigcapital Technology, Inc.',
// Addresses
// Customer address
showCustomerAddress: true,
// Company address
showCompanyAddress: true,
customerAddress: '',
companyAddress: '',
billedToLabel: 'Billed To',

View File

@@ -21,11 +21,12 @@ export const initialValues = {
// Company name
companyName: 'Bigcapital Technology, Inc.',
// Addresses
showCompanyAddress: true,
// Customer address
showCustomerAddress: true,
// Company address
companyAddress: '',
customerAddress: '',
showCompanyAddress: true,
billedToLabel: 'Billed To',
// Entries