mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
feat: Hook up customer/company address to pdf templates
This commit is contained in:
@@ -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
|
||||
`;
|
||||
`;
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user