Skip to content

Files

Latest commit

808116d · Jan 25, 2024

History

History
This branch is 550 commits behind frappe/books:master.

src

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Sep 22, 2023
Jan 25, 2024
Jan 8, 2024
May 23, 2022
Jul 10, 2023
Jun 22, 2023
May 30, 2023
Jan 8, 2024
Jul 17, 2023
May 26, 2022
Jul 10, 2023
Oct 9, 2023
Jun 23, 2023
Jun 23, 2023
Jul 10, 2023
Dec 4, 2023
Jul 10, 2023
Dec 8, 2022
Mar 18, 2022

src

This is where all the frontend code lives

Fyo Initialization

The initialization flows are different when the instance is new or is existing. All of them are triggered from src/App.vue.

New Instance

  1. Run Setup Wizard for init values (eg: country).
  2. Call setupInstance.ts/setupInstance using init values.

Existing Instance

  1. Connect to db.
  2. Check if Setup Wizard has been completed, if not, jump to New Instance
  3. Call initFyo/initializeInstance with dbPath and countryCode

Global Fyo

Global fyo is exported from initFyo.ts. Only code that isn't going to be unit tested using mocha should use this, i.e. code in src