mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
feat: Hook up company logo to server-side pdf templates
This commit is contained in:
@@ -8,7 +8,7 @@ export const initialValues = {
|
||||
// Company logo.
|
||||
showCompanyLogo: true,
|
||||
companyLogoUri: '',
|
||||
companyLogokey: '',
|
||||
companyLogoKey: '',
|
||||
|
||||
// Top details.
|
||||
showPaymentReceivedNumber: true,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useFormikContext } from 'formik';
|
||||
import { ElementCustomize } from '../../../ElementCustomize/ElementCustomize';
|
||||
import { ElementCustomize } from '@/containers/ElementCustomize/ElementCustomize';
|
||||
import { ReceiptCustomizeGeneralField } from './ReceiptCustomizeFieldsGeneral';
|
||||
import { ReceiptCustomizeFieldsContent } from './ReceiptCustomizeFieldsContent';
|
||||
import { ReceiptPaperTemplate } from './ReceiptPaperTemplate';
|
||||
@@ -20,10 +20,10 @@ export function ReceiptCustomizeContent() {
|
||||
|
||||
return (
|
||||
<BrandingTemplateForm<ReceiptCustomizeValues>
|
||||
templateId={templateId}
|
||||
initialValues={initialValues}
|
||||
onSuccess={handleFormSuccess}
|
||||
resource={'SaleReceipt'}
|
||||
templateId={templateId}
|
||||
defaultValues={initialValues}
|
||||
onSuccess={handleFormSuccess}
|
||||
>
|
||||
<ElementCustomize.PaperTemplate>
|
||||
<ReceiptPaperTemplateFormConnected />
|
||||
|
||||
Reference in New Issue
Block a user