Javis OS
Javis OS is an Agentic AI that assists entrepreneurs in business tasks, helping them grow their work.
AI translation
案件の予算・実績を一元管理する社内システム
Translation pending
BusinessTypeScript · PLpgSQLGitHub @takumiinoue-beepOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗案件ごとの担当者・予算(目標売上)・実績(実際の売上)を一元管理し、一覧表とグラフで可視化する社内システムです。
authenticatedロールに明示的にGRANTしているため、OFFのままで問題なく動作する)anon public keyservice_role key(絶対にブラウザ側コードや公開リポジトリに含めないこと)Supabaseダッシュボードの「SQL Editor」で、supabase/migrations/ 配下のSQLを番号順に実行してください。
(supabase CLIをリンク済みであれば supabase db push でも可)
| ファイル | 内容 |
|---|---|
0001_init.sql | profiles(担当者マスタ兼ログインユーザー)/projects(案件)/actual_logs(実績更新履歴)/fixed_costs(固定費)とRLS、実績更新用RPC update_project_actual |
0002_project_budget_from_unit_price.sql | 予算(目標売上)を単価×件数の自動計算に変更 |
0003_actual_from_quantity.sql | 実績を単価×実績件数の自動計算に変更、RPC更新 |
0004_invoices.sql | 請求書発行機能(clients/company_bank_accounts/company_settings/invoices_issued/invoice_items)とRLS(管理者のみ) |
0005〜0014 | 料金表(案件ごと)・確定件数・案件獲得ログ・自社情報の郵便番号/建物名など(ファイル名の番号順に実行) |
0015_op_confirmed_quantities.sql | 有効件数をOPごとに保持(op_confirmed_quantities)、RPC set_op_confirmed_quantity |
0016_accounting.sql | 会計機能:members(人件費・インセンティブ設定)/expenses(経費)/vendor_invoices(取引先請求)/pl_plan_entries(PL計画)とRLS(管理者のみ)、RPC save_pl_plan |
.env.local.example を .env.local にコピーし、値を埋めてください。
cp .env.local.example .env.local
NEXT_PUBLIC_SUPABASE_URL=...
NEXT_PUBLIC_SUPABASE_ANON_KEY=...
SUPABASE_SERVICE_ROLE_KEY=...
このアプリには初期ユーザーが存在しないため、最初の1人だけは手動で作成します。
profiles テーブルに自動で行が追加されます(役割は初期値 staff)profiles テーブルで、そのユーザーの role を admin に変更以降の担当者アカウントは、アプリにログイン後「自社情報」画面内の「担当者管理」から管理者が発行できます。
npm install
npm run dev
http://localhost:3000 にアクセスし、作成した管理者アカウントでログインしてください。
NEXT_PUBLIC_SUPABASE_URL / NEXT_PUBLIC_SUPABASE_ANON_KEY / SUPABASE_SERVICE_ROLE_KEY)をVercelのプロジェクト設定に登録メンバーのインセンティブを売上の段階ごとの金額表(incentive_tiers)に変更。既存の「◯円ごとに◯円」設定は20段階に展開して引き継ぐ |
0018_expense_period.sql | 経費に期間(単月/開始月〜終了月/継続)を設定できるように(end_month・ongoing)。既存の経費は単月のまま |
0019_pl_actual_entries.sql | PLの結果を手入力できるように(pl_actual_entries、RPC save_pl_actual)。手入力した月は自動計算より優先 |
0020_profile_fk_set_null.sql | 担当者を削除できるように。登録者・更新者として参照している列は、削除時に空欄(null)にする |
0021_acquisition_target_month.sql | 案件獲得に計上月(target_month)を追加。来月のアポを今月のうちに登録して、来月のページ・PLに載せられる |
0022_acquisitions_batch_per_row.sql | 案件獲得の登録を、行ごとにOP・計上月を指定できるように(複数OPのまとめ登録) |
0023_link_acquisitions_to_project.sql | 新しい月の案件を登録・更新したとき、その月に計上する獲得(来月のアポなど)を同名の前の案件から付け替える(RPC link_acquisitions_to_project) |
0024_carry_over_projects.sql | 続く案件を毎月の案件として自動で作る(carry_over_project / carry_over_projects)。案件獲得の登録時に計上月の案件が無ければ自動作成。0023を含むので、この1本で動く |
0025_project_assignments.sql | 案件設定(月×メンバー×案件の目標件数・有効率):project_assignments、RPC save_project_assignments |
0026_project_effective_rate.sql | 案件一覧を「案件名・料金表・デフォルト単価・有効率・ステータス」だけに簡素化。projects.effective_rate(案件の標準の有効率)を追加。既存データは消さない |
0027_profile_member_no.sql | メンバー番号:profiles.member_no(既存メンバーには登録順に番号を振る)。案件設定は番号の小さい順に並ぶ |
0028_confirmed_quantities.sql | 有効件数:confirmed_quantities(月×OP×案件×単価ごとに、ダッシュボードで手入力する。確定金額=有効件数×単価) |
0029_update_acquisition.sql | 案件獲得の登録の修正:RPC update_acquisition(獲得日・計上月・件数。管理者のみ) |
0030_confirmed_totals.sql | 有効件数を月×案件×単価の合計で入力:confirmed_totals(OPごとの有効件数は獲得件数の比率で按分。0028 の confirmed_quantities は使わなくなったが残す) |
0031_project_client.sql | 案件の取引先:projects.client_id(任意)。請求書発行の一括追加で、選んだ取引先の案件だけを拾う |
0032_member_transport.sql | メンバーの月額交通費:members.monthly_transport(会計の販管費「旅費交通費」に自動計上。既存は0円) |