mirror of
https://github.com/frappe/books.git
synced 2024-12-22 19:09:01 +00:00
fix: print button not visible on first start
This commit is contained in:
parent
2bf5d3c38a
commit
f6cc795184
@ -21,6 +21,7 @@ import {
|
||||
initializeInstance,
|
||||
setCurrencySymbols,
|
||||
} from 'src/utils/initialization';
|
||||
import { updatePrintTemplates } from 'src/utils/printTemplates';
|
||||
import { getRandomString } from 'utils';
|
||||
import { getDefaultLocations, getDefaultUOMs } from 'utils/defaults';
|
||||
import { getCountryCodeFromCountry, getCountryInfo } from 'utils/misc';
|
||||
@ -48,6 +49,7 @@ export default async function setupInstance(
|
||||
await createDefaultEntries(fyo);
|
||||
await createDefaultNumberSeries(fyo);
|
||||
await updateInventorySettings(fyo);
|
||||
await updatePrintTemplates(fyo);
|
||||
|
||||
await completeSetup(companyName, fyo);
|
||||
if (!Object.keys(fyo.currencySymbols).length) {
|
||||
|
@ -349,6 +349,7 @@ export function getFormRoute(
|
||||
return route;
|
||||
}
|
||||
|
||||
// Use `encodeURIComponent` if more name issues
|
||||
return `/edit/${schemaName}/${name.replaceAll('/', '%2F')}`;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user