Whenever we add Ledger name of any company or firm we need to define its Ledger Group so that account details of that company saved correctly. So now…