mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
feat: Assign default pdf template automatically
This commit is contained in:
@@ -90,7 +90,7 @@ function PaymentReceiveForm({
|
||||
}),
|
||||
deposit_account_id: defaultTo(preferredDepositAccount, ''),
|
||||
currency_code: base_currency,
|
||||
pdf_template_id: paymentReceivedState.defaultTemplateId,
|
||||
pdf_template_id: paymentReceivedState?.defaultTemplateId,
|
||||
}),
|
||||
};
|
||||
// Handle form submit.
|
||||
|
||||
@@ -137,7 +137,8 @@ function PaymentReceiveFormProvider({ query, paymentReceiveId, ...props }) {
|
||||
isPaymentLoading ||
|
||||
isAccountsLoading ||
|
||||
isCustomersLoading ||
|
||||
isBrandingTemplatesLoading;
|
||||
isBrandingTemplatesLoading ||
|
||||
isPaymentReceivedStateLoading;
|
||||
|
||||
return (
|
||||
<DashboardInsider loading={isLoading} name={'payment-receive-form'}>
|
||||
|
||||
Reference in New Issue
Block a user