mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 06:10:31 +00:00
fix: Invoice pdf customize
This commit is contained in:
@@ -76,7 +76,6 @@ export function EstimateCustomizeGeneralField() {
|
||||
name={'showCompanyLogo'}
|
||||
label={'Display company logo in the paper'}
|
||||
style={{ fontSize: 14 }}
|
||||
large
|
||||
fastField
|
||||
/>
|
||||
</FFormGroup>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Group, Stack } from '@/components';
|
||||
import { Stack } from '@/components';
|
||||
import {
|
||||
PaperTemplate,
|
||||
PaperTemplateProps,
|
||||
@@ -57,8 +57,10 @@ export interface EstimatePaperTemplateProps extends PaperTemplateProps {
|
||||
export function EstimatePaperTemplate({
|
||||
primaryColor,
|
||||
secondaryColor,
|
||||
|
||||
showCompanyLogo = true,
|
||||
companyLogo,
|
||||
companyLogoUri = '',
|
||||
|
||||
companyName,
|
||||
|
||||
billedToAddress = [
|
||||
@@ -122,7 +124,7 @@ export function EstimatePaperTemplate({
|
||||
primaryColor={primaryColor}
|
||||
secondaryColor={secondaryColor}
|
||||
showCompanyLogo={showCompanyLogo}
|
||||
companyLogo={companyLogo}
|
||||
companyLogoUri={companyLogoUri}
|
||||
bigtitle={'Estimate'}
|
||||
>
|
||||
<Stack spacing={24}>
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
export const initialValues = {
|
||||
templateName: '',
|
||||
|
||||
|
||||
// Colors
|
||||
primaryColor: '#2c3dd8',
|
||||
secondaryColor: '#2c3dd8',
|
||||
|
||||
// Company logo.
|
||||
showCompanyLogo: true,
|
||||
companyLogo:
|
||||
'https://cdn-development.mercury.com/demo-assets/avatars/mercury-demo-dark.png',
|
||||
companyLogoKey: '',
|
||||
companyLogoUri: '',
|
||||
|
||||
// Top details.
|
||||
showEstimateNumber: true,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BrandingTemplateValues } from "@/containers/BrandingTemplates/types";
|
||||
import { BrandingTemplateValues } from '@/containers/BrandingTemplates/types';
|
||||
|
||||
export interface EstimateCustomizeValues extends BrandingTemplateValues {
|
||||
// Colors
|
||||
@@ -7,7 +7,8 @@ export interface EstimateCustomizeValues extends BrandingTemplateValues {
|
||||
|
||||
// Company Logo
|
||||
showCompanyLogo?: boolean;
|
||||
companyLogo?: string;
|
||||
companyLogoKey?: string;
|
||||
companyLogoUri?: string;
|
||||
|
||||
// Top details.
|
||||
estimateNumberLabel?: string;
|
||||
|
||||
Reference in New Issue
Block a user