rails_finance 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +20 -0
  3. data/README.md +20 -0
  4. data/Rakefile +32 -0
  5. data/app/controllers/finance/admin/assessments_controller.rb +55 -0
  6. data/app/controllers/finance/admin/base_controller.rb +4 -0
  7. data/app/controllers/finance/admin/budgets_controller.rb +83 -0
  8. data/app/controllers/finance/admin/expense_members_controller.rb +59 -0
  9. data/app/controllers/finance/admin/expenses_controller.rb +71 -0
  10. data/app/controllers/finance/admin/financial_taxons_controller.rb +67 -0
  11. data/app/controllers/finance/admin/fund_incomes_controller.rb +59 -0
  12. data/app/controllers/finance/admin/funds_controller.rb +58 -0
  13. data/app/controllers/finance/admin/home_controller.rb +8 -0
  14. data/app/controllers/finance/admin/stocks_controller.rb +60 -0
  15. data/app/controllers/finance/me/base_controller.rb +4 -0
  16. data/app/controllers/finance/me/budgets_controller.rb +111 -0
  17. data/app/controllers/finance/me/expense_members_controller.rb +73 -0
  18. data/app/controllers/finance/me/expenses_controller.rb +129 -0
  19. data/app/controllers/finance_controller/me.rb +14 -0
  20. data/app/models/budget/finance/fund_budget.rb +5 -0
  21. data/app/models/budget/finance/stock_budget.rb +5 -0
  22. data/app/models/expense/finance/payable_expense.rb +5 -0
  23. data/app/models/expense/finance/prepay_expense.rb +5 -0
  24. data/app/models/finance/application_record.rb +5 -0
  25. data/app/models/finance/assessment.rb +5 -0
  26. data/app/models/finance/budget.rb +7 -0
  27. data/app/models/finance/expense.rb +7 -0
  28. data/app/models/finance/expense_item.rb +5 -0
  29. data/app/models/finance/expense_member.rb +6 -0
  30. data/app/models/finance/ext/financial.rb +24 -0
  31. data/app/models/finance/ext/member.rb +13 -0
  32. data/app/models/finance/financial_taxon.rb +7 -0
  33. data/app/models/finance/fund.rb +6 -0
  34. data/app/models/finance/fund_income.rb +5 -0
  35. data/app/models/finance/model/assessment.rb +26 -0
  36. data/app/models/finance/model/budget/fund_budget.rb +5 -0
  37. data/app/models/finance/model/budget/stock_budget.rb +10 -0
  38. data/app/models/finance/model/budget.rb +152 -0
  39. data/app/models/finance/model/expense/payable_expense.rb +5 -0
  40. data/app/models/finance/model/expense/prepay_expense.rb +5 -0
  41. data/app/models/finance/model/expense.rb +168 -0
  42. data/app/models/finance/model/expense_item.rb +36 -0
  43. data/app/models/finance/model/expense_member.rb +130 -0
  44. data/app/models/finance/model/financial_taxon.rb +27 -0
  45. data/app/models/finance/model/fund.rb +36 -0
  46. data/app/models/finance/model/fund_income.rb +30 -0
  47. data/app/models/finance/model/stock.rb +33 -0
  48. data/app/models/finance/stock.rb +5 -0
  49. data/app/models/finance.rb +12 -0
  50. data/app/pdfs/borrow_expense_pdf.rb +70 -0
  51. data/app/pdfs/payout_expense_pdf.rb +70 -0
  52. data/app/pdfs/prepay_expense_pdf.rb +70 -0
  53. data/app/records/borrow_expense_record.rb +10 -0
  54. data/app/records/prepay_expense_record.rb +16 -0
  55. data/app/views/admin/_finance_nav.html.erb +14 -0
  56. data/app/views/admin/_nav_expense.html.erb +4 -0
  57. data/app/views/finance/admin/assessments/_edit_form.html.erb +4 -0
  58. data/app/views/finance/admin/assessments/_filter_form.html.erb +9 -0
  59. data/app/views/finance/admin/assessments/_form.html.erb +2 -0
  60. data/app/views/finance/admin/assessments/_index_tbody.html.erb +2 -0
  61. data/app/views/finance/admin/assessments/_index_thead.html.erb +3 -0
  62. data/app/views/finance/admin/assessments/_index_tr.html.erb +19 -0
  63. data/app/views/finance/admin/assessments/_new_form.html.erb +4 -0
  64. data/app/views/finance/admin/assessments/_show_table.html.erb +4 -0
  65. data/app/views/finance/admin/assessments/index.html.erb +5 -0
  66. data/app/views/finance/admin/base/_nav.html.erb +3 -0
  67. data/app/views/finance/admin/budgets/_breadcrumb.html.erb +9 -0
  68. data/app/views/finance/admin/budgets/_edit_form.html.erb +4 -0
  69. data/app/views/finance/admin/budgets/_filter_form.html.erb +10 -0
  70. data/app/views/finance/admin/budgets/_filter_table.html.erb +11 -0
  71. data/app/views/finance/admin/budgets/_form.html.erb +7 -0
  72. data/app/views/finance/admin/budgets/_index_tbody.html.erb +13 -0
  73. data/app/views/finance/admin/budgets/_index_thead.html.erb +6 -0
  74. data/app/views/finance/admin/budgets/_item_form.html.erb +17 -0
  75. data/app/views/finance/admin/budgets/_items.html.erb +16 -0
  76. data/app/views/finance/admin/budgets/_new_form.html.erb +4 -0
  77. data/app/views/finance/admin/budgets/_show/_breadcrumb.html.erb +6 -0
  78. data/app/views/finance/admin/budgets/_show_table.html.erb +62 -0
  79. data/app/views/finance/admin/budgets/index.html.erb +5 -0
  80. data/app/views/finance/admin/budgets/next.turbo_stream.erb +1 -0
  81. data/app/views/finance/admin/budgets/show.htmlx.erb +35 -0
  82. data/app/views/finance/admin/budgets/trigger.js.erb +1 -0
  83. data/app/views/finance/admin/expense_members/_edit_form.html.erb +3 -0
  84. data/app/views/finance/admin/expense_members/_form.html.erb +5 -0
  85. data/app/views/finance/admin/expense_members/_index_tbody.html.erb +53 -0
  86. data/app/views/finance/admin/expense_members/_index_thead.html.erb +12 -0
  87. data/app/views/finance/admin/expense_members/index.html.erb +8 -0
  88. data/app/views/finance/admin/expenses/_breadcrumb.html.erb +9 -0
  89. data/app/views/finance/admin/expenses/_edit_form.html.erb +4 -0
  90. data/app/views/finance/admin/expenses/_filter_form.html.erb +10 -0
  91. data/app/views/finance/admin/expenses/_filter_table.html.erb +11 -0
  92. data/app/views/finance/admin/expenses/_form.html.erb +12 -0
  93. data/app/views/finance/admin/expenses/_index_tbody.html.erb +13 -0
  94. data/app/views/finance/admin/expenses/_index_thead.html.erb +6 -0
  95. data/app/views/finance/admin/expenses/_item_form.html.erb +18 -0
  96. data/app/views/finance/admin/expenses/_items.html.erb +20 -0
  97. data/app/views/finance/admin/expenses/_member_form.html.erb +16 -0
  98. data/app/views/finance/admin/expenses/_new_form.html.erb +4 -0
  99. data/app/views/finance/admin/expenses/index.html.erb +5 -0
  100. data/app/views/finance/admin/expenses/next.turbo_stream.erb +1 -0
  101. data/app/views/finance/admin/expenses/show.html.erb +121 -0
  102. data/app/views/finance/admin/expenses/trigger.turbo_stream.erb +1 -0
  103. data/app/views/finance/admin/financial_taxons/_edit_form.html.erb +4 -0
  104. data/app/views/finance/admin/financial_taxons/_filter_form.html.erb +10 -0
  105. data/app/views/finance/admin/financial_taxons/_form.html.erb +5 -0
  106. data/app/views/finance/admin/financial_taxons/_index_tbody.html.erb +36 -0
  107. data/app/views/finance/admin/financial_taxons/_index_thead.html.erb +5 -0
  108. data/app/views/finance/admin/financial_taxons/_index_tr.html.erb +13 -0
  109. data/app/views/finance/admin/financial_taxons/_new_form.html.erb +4 -0
  110. data/app/views/finance/admin/financial_taxons/index.html.erb +6 -0
  111. data/app/views/finance/admin/fund_incomes/_breadcrumb.html.erb +7 -0
  112. data/app/views/finance/admin/fund_incomes/_edit_form.html.erb +4 -0
  113. data/app/views/finance/admin/fund_incomes/_filter_form.html.erb +9 -0
  114. data/app/views/finance/admin/fund_incomes/_form.html.erb +4 -0
  115. data/app/views/finance/admin/fund_incomes/_index_tbody.html.erb +5 -0
  116. data/app/views/finance/admin/fund_incomes/_index_thead.html.erb +4 -0
  117. data/app/views/finance/admin/fund_incomes/_new_form.html.erb +4 -0
  118. data/app/views/finance/admin/fund_incomes/_show_table.html.erb +12 -0
  119. data/app/views/finance/admin/fund_incomes/index.html.erb +5 -0
  120. data/app/views/finance/admin/funds/_edit_form.html.erb +3 -0
  121. data/app/views/finance/admin/funds/_filter_form.html.erb +9 -0
  122. data/app/views/finance/admin/funds/_form.html.erb +5 -0
  123. data/app/views/finance/admin/funds/_index_tbody.html.erb +14 -0
  124. data/app/views/finance/admin/funds/_index_thead.html.erb +8 -0
  125. data/app/views/finance/admin/funds/_new_form.html.erb +3 -0
  126. data/app/views/finance/admin/funds/_show_table.html.erb +16 -0
  127. data/app/views/finance/admin/funds/index.html.erb +5 -0
  128. data/app/views/finance/admin/home/index.html.erb +6 -0
  129. data/app/views/finance/admin/stocks/_breadcrumb.html.erb +7 -0
  130. data/app/views/finance/admin/stocks/_edit_form.html.erb +4 -0
  131. data/app/views/finance/admin/stocks/_filter_form.html.erb +9 -0
  132. data/app/views/finance/admin/stocks/_form.html.erb +4 -0
  133. data/app/views/finance/admin/stocks/_index_tbody.html.erb +6 -0
  134. data/app/views/finance/admin/stocks/_index_thead.html.erb +7 -0
  135. data/app/views/finance/admin/stocks/_new_form.html.erb +4 -0
  136. data/app/views/finance/admin/stocks/_show_table.html.erb +16 -0
  137. data/app/views/finance/admin/stocks/index.html.erb +5 -0
  138. data/app/views/finance/me/budgets/_breadcrumb.html.erb +6 -0
  139. data/app/views/finance/me/budgets/_filter_form.html.erb +8 -0
  140. data/app/views/finance/me/budgets/_filter_table.html.erb +11 -0
  141. data/app/views/finance/me/budgets/_index_tbody.html.erb +23 -0
  142. data/app/views/finance/me/budgets/_index_thead.html.erb +4 -0
  143. data/app/views/finance/me/budgets/_items.html.erb +22 -0
  144. data/app/views/finance/me/budgets/_show/_breadcrumb.html.erb +6 -0
  145. data/app/views/finance/me/budgets/admin.html.erb +5 -0
  146. data/app/views/finance/me/budgets/financial_taxons.js.erb +7 -0
  147. data/app/views/finance/me/budgets/index.html.erb +5 -0
  148. data/app/views/finance/me/budgets/index.js +45 -0
  149. data/app/views/finance/me/budgets/submit.turbo_stream.erb +1 -0
  150. data/app/views/finance/me/budgets/transfer.turbo_stream.erb +1 -0
  151. data/app/views/finance/me/expense_members/_breadcrumb.html.erb +6 -0
  152. data/app/views/finance/me/expense_members/_button.html.erb +0 -0
  153. data/app/views/finance/me/expense_members/_filter_form.html.erb +10 -0
  154. data/app/views/finance/me/expense_members/_form.html.erb +9 -0
  155. data/app/views/finance/me/expense_members/_index_tbody.html.erb +8 -0
  156. data/app/views/finance/me/expense_members/_index_thead.html.erb +7 -0
  157. data/app/views/finance/me/expense_members/_show_items.html.erb +1 -0
  158. data/app/views/finance/me/expense_members/admin.html.erb +3 -0
  159. data/app/views/finance/me/expense_members/index.html.erb +6 -0
  160. data/app/views/finance/me/expense_members/items.js.erb +1 -0
  161. data/app/views/finance/me/expense_members/show.html.erb +62 -0
  162. data/app/views/finance/me/expenses/_breadcrumb.html.erb +7 -0
  163. data/app/views/finance/me/expenses/_edit_form.html.erb +3 -0
  164. data/app/views/finance/me/expenses/_filter_form.html.erb +8 -0
  165. data/app/views/finance/me/expenses/_filter_table.html.erb +11 -0
  166. data/app/views/finance/me/expenses/_index_tbody.html.erb +16 -0
  167. data/app/views/finance/me/expenses/_index_thead.html.erb +6 -0
  168. data/app/views/finance/me/expenses/_index_tr.html.erb +14 -0
  169. data/app/views/finance/me/expenses/_new_form.html.erb +4 -0
  170. data/app/views/finance/me/expenses/_show/_breadcrumb.html.erb +6 -0
  171. data/app/views/finance/me/expenses/_show_table.html.erb +124 -0
  172. data/app/views/finance/me/expenses/admin.html.erb +5 -0
  173. data/app/views/finance/me/expenses/confirm.html.erb +27 -0
  174. data/app/views/finance/me/expenses/financial_taxons.js.erb +44 -0
  175. data/app/views/finance/me/expenses/index.html.erb +5 -0
  176. data/app/views/finance/me/expenses/index.js +42 -0
  177. data/app/views/finance/me/expenses/show.html.erb +3 -0
  178. data/app/views/me/_finance_nav.html.erb +11 -0
  179. data/config/locales/en.attributes.yml +6 -0
  180. data/config/locales/en.controller.yml +21 -0
  181. data/config/locales/en.enum.yml +18 -0
  182. data/config/locales/zh.attributes.yml +65 -0
  183. data/config/locales/zh.controller.yml +57 -0
  184. data/config/locales/zh.enum.yml +38 -0
  185. data/config/routes.rb +63 -0
  186. data/lib/rails_finance/config.rb +11 -0
  187. data/lib/rails_finance/engine.rb +26 -0
  188. data/lib/rails_finance/version.rb +3 -0
  189. data/lib/rails_finance.rb +2 -0
  190. metadata +259 -0
@@ -0,0 +1,3 @@
1
+
2
+
3
+ <%= render 'show_table' %>
@@ -0,0 +1,11 @@
1
+ <div class="menu-label">
2
+ <span><%= t('finance.me.title') %></span>
3
+ <%= link_to({ controller: 'finance/admin/expenses' }, aria: { label: '管理' }) do %>
4
+ <i class="fas fa-cog"></i>
5
+ <% end %>
6
+ </div>
7
+ <div class="menu-list">
8
+ <%= link_to t('finance.me.expense_members.index.title'), { controller: 'finance/me/expense_members' }, class: active_helper(controllers: ['expense_members', 'payment_methods'], active: 'is-active') %>
9
+ <%= link_to t('finance.me.budgets.index.title'), { controller: 'finance/me/budgets' }, class: active_helper(controllers: ['budgets'], active: 'is-active') %>
10
+ <%= link_to t('finance.me.expenses.index.title'), { controller: 'finance/me/expenses' }, class: active_helper(controllers: ['expenses'], active: 'is-active') %>
11
+ </div>
@@ -0,0 +1,6 @@
1
+ en:
2
+ activerecord:
3
+ attributes:
4
+ expense:
5
+ amount: Total Amount
6
+ expense_members: Members
@@ -0,0 +1,21 @@
1
+ en:
2
+ finance:
3
+ admin:
4
+ title: 财务管理
5
+ finance_taxons:
6
+ index:
7
+ title: 类别
8
+ expenses:
9
+ index:
10
+ title: 支出
11
+ payouts:
12
+ index:
13
+ title: 支付
14
+ me:
15
+ title: 报销
16
+ expenses:
17
+ index:
18
+ title: Admin Expenses
19
+ expense_members:
20
+ index:
21
+ title: My Expenses
@@ -0,0 +1,18 @@
1
+ en:
2
+ activerecord:
3
+ enum:
4
+ expense:
5
+ type:
6
+ PrepayExpense: Prepay
7
+ PayableExpense: Payout
8
+ state:
9
+ init: Pending
10
+ rejected: Reject
11
+ payment_method:
12
+ type:
13
+ CashMethod: Cash
14
+ BankMethod: Bank Account
15
+ purchase:
16
+ type:
17
+ BulkPurchase: Bulk Purchase
18
+ PayoutPurchase: Payout
@@ -0,0 +1,65 @@
1
+ zh:
2
+ activerecord:
3
+ attributes:
4
+ finance/budget:
5
+ amount: 合计
6
+ expense_items: 条目
7
+ financial_taxon_id: 类别
8
+ invoices_count: 凭证数
9
+ subject: 预算内容
10
+ subject-like: 预算内容
11
+ state: 状态
12
+ finance/expense:
13
+ amount: 合计
14
+ expense_members: 责任人
15
+ expense_items: 条目
16
+ financial_taxon_id: 类别
17
+ invoices_count: 凭证数
18
+ subject: 支出内容
19
+ subject-like: 支出内容
20
+ state: 状态
21
+ finance/expense_item:
22
+ financial_taxon_id: 分类
23
+ budget_amount: 预算
24
+ amount: 金额
25
+ quantity: 数量
26
+ price: 单价
27
+ note: 内容
28
+ finance/expense_member:
29
+ advance: 借款
30
+ amount: 金额
31
+ state: 状态
32
+ payment_method_id: 支付方式
33
+ finance/financial_taxon:
34
+ individual: 个人
35
+ take_stock: 可盘点
36
+ verifiers: 审核人
37
+ finance/fund:
38
+ budget_amount: 预算
39
+ budget_detail: 预算汇总
40
+ amount: 实际到账
41
+ expense_amount: 已使用
42
+ expense_detail: 使用汇总
43
+ note: 备注
44
+ proof: 凭证
45
+ finance/fund_budget:
46
+ fund_id: 资金
47
+ amount: 预算金额
48
+ note: 备注
49
+ financial_type: 预算类型
50
+ financial_id: 预算条目
51
+ finance/fund_income:
52
+ amount: 金额
53
+ proof: 凭证
54
+ note: 备注
55
+ finance/fund_expense:
56
+ fund_id: 资金
57
+ amount: 实际支出
58
+ note: 备注
59
+ financial_type: 支出类型
60
+ financial_id: 支付条目
61
+ finance/assessment:
62
+ trustee_amount: 托管总额
63
+ finance/stock:
64
+ ratio: 比例
65
+ amount: 数额
@@ -0,0 +1,57 @@
1
+ zh:
2
+ finance:
3
+ title: 财务
4
+ admin:
5
+ title: 财务管理
6
+ assessments:
7
+ index:
8
+ title: 估值
9
+ stocks:
10
+ index:
11
+ title: 股权托管
12
+ financial_taxons:
13
+ index:
14
+ title: 类别
15
+ budgets:
16
+ index:
17
+ title: 预算
18
+ expenses:
19
+ index:
20
+ title: 支出
21
+ funds:
22
+ index:
23
+ title: 资金
24
+ fund_budgets:
25
+ index:
26
+ title: 资金预算
27
+ fund_incomes:
28
+ index:
29
+ title: 资金来源
30
+ fund_expenses:
31
+ index:
32
+ title: 资金使用
33
+ payment_methods:
34
+ index:
35
+ title: 支付方式
36
+ payouts:
37
+ index:
38
+ title: 支付
39
+ me:
40
+ title: 财务
41
+ budgets:
42
+ index:
43
+ title: 预算
44
+ admin:
45
+ title: 待审核
46
+ submit:
47
+ title: 提交
48
+ expenses:
49
+ index:
50
+ title: 支出列表
51
+ admin:
52
+ title: 待审核
53
+ expense_members:
54
+ index:
55
+ title: 我的支出
56
+ admin:
57
+ title: 待我审核
@@ -0,0 +1,38 @@
1
+ zh:
2
+ activerecord:
3
+ enum:
4
+ finance/budget:
5
+ state:
6
+ init: 申请
7
+ verifying: 审核中
8
+ finished: 已完结
9
+ rejected: 拒绝
10
+ type:
11
+ Finance::FundBudget: 资金预算
12
+ Finance::StockBudget: 股权预算
13
+ finance/expense:
14
+ type:
15
+ Finance::PrepayExpense: 借支/报销
16
+ Finance::PayableExpense: 对公支付
17
+ state:
18
+ init: 申请
19
+ verifying: 审核中
20
+ paying: 支付中
21
+ upload_invoice: 上传单据
22
+ invoice_verifying: 单据审核
23
+ finished: 已完结
24
+ rejected: 拒绝
25
+ finance/fund_budget:
26
+ financial_type:
27
+ Bench::Project: 项目
28
+ Bench::ProjectStage: 项目阶段
29
+ Bench::Taxon: 项目类型
30
+ finance/payment_method:
31
+ type:
32
+ Finance::CashMethod: 现金
33
+ Finance::BankMethod: 银行账号
34
+ finance/purchase:
35
+ type:
36
+ BulkPurchase: 采购
37
+ PayoutPurchase: 对公支付
38
+ finance/stock:
data/config/routes.rb ADDED
@@ -0,0 +1,63 @@
1
+ Rails.application.routes.draw do
2
+
3
+ scope :admin, module: 'finance/admin', as: :admin, defaults: { business: 'finance', namespace: 'admin' } do
4
+ resources :financial_taxons
5
+ resources :funds do
6
+ resources :fund_incomes
7
+ end
8
+ resources :assessments do
9
+ resources :stocks
10
+ end
11
+ resources :budgets do
12
+ member do
13
+ patch :transfer
14
+ end
15
+ end
16
+ resources :expenses do
17
+ member do
18
+ patch :next
19
+ patch :trigger
20
+ end
21
+ resources :expense_members, shallow: true do
22
+ member do
23
+ patch :to_pay
24
+ patch :to_advance_pay
25
+ end
26
+ end
27
+ end
28
+ end
29
+
30
+ scope :me, module: 'finance/me', as: :me, defaults: { business: 'finance', namespace: 'me' } do
31
+ resources :budgets do
32
+ collection do
33
+ match :financial_taxons, via: [:get, :post]
34
+ get :admin
35
+ end
36
+ member do
37
+ patch :transfer
38
+ patch :submit
39
+ end
40
+ end
41
+ resources :expenses do
42
+ collection do
43
+ get :financial_taxons
44
+ get :admin
45
+ end
46
+ member do
47
+ get :confirm
48
+ patch :requested
49
+ get :bill
50
+ end
51
+ end
52
+ resources :expense_members, only: [:index, :show, :edit, :update] do
53
+ collection do
54
+ get :admin
55
+ end
56
+ member do
57
+ get :bill
58
+ get :items
59
+ end
60
+ end
61
+ end
62
+
63
+ end
@@ -0,0 +1,11 @@
1
+ require 'active_support/configurable'
2
+
3
+ module RailsFinance #:nodoc:
4
+ include ActiveSupport::Configurable
5
+
6
+ configure do |config|
7
+ end
8
+
9
+ end
10
+
11
+
@@ -0,0 +1,26 @@
1
+ require 'rails_com'
2
+ module RailsFinance
3
+ class Engine < ::Rails::Engine
4
+
5
+ config.autoload_paths += Dir[
6
+ "#{config.root}/app/models/expense",
7
+ "#{config.root}/app/models/budget"
8
+ ]
9
+
10
+ config.generators do |g|
11
+ g.rails = {
12
+ assets: false,
13
+ stylesheets: false,
14
+ helper: false,
15
+ resource_route: false,
16
+ jbuilder: true
17
+ }
18
+ g.test_unit = {
19
+ fixture: true,
20
+ fixture_replacement: :factory_girl
21
+ }
22
+ g.templates.unshift File.expand_path('lib/templates', RailsCom::Engine.root)
23
+ end
24
+
25
+ end
26
+ end
@@ -0,0 +1,3 @@
1
+ module RailsFinance
2
+ VERSION = '0.1.0'
3
+ end
@@ -0,0 +1,2 @@
1
+ require 'rails_finance/config'
2
+ require 'rails_finance/engine'
metadata ADDED
@@ -0,0 +1,259 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails_finance
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - qinmingyuan
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-09-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails_com
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: prawn
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: Description of RailsDoc.
42
+ email:
43
+ - mingyuan0715@foxmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - LICENSE
49
+ - README.md
50
+ - Rakefile
51
+ - app/controllers/finance/admin/assessments_controller.rb
52
+ - app/controllers/finance/admin/base_controller.rb
53
+ - app/controllers/finance/admin/budgets_controller.rb
54
+ - app/controllers/finance/admin/expense_members_controller.rb
55
+ - app/controllers/finance/admin/expenses_controller.rb
56
+ - app/controllers/finance/admin/financial_taxons_controller.rb
57
+ - app/controllers/finance/admin/fund_incomes_controller.rb
58
+ - app/controllers/finance/admin/funds_controller.rb
59
+ - app/controllers/finance/admin/home_controller.rb
60
+ - app/controllers/finance/admin/stocks_controller.rb
61
+ - app/controllers/finance/me/base_controller.rb
62
+ - app/controllers/finance/me/budgets_controller.rb
63
+ - app/controllers/finance/me/expense_members_controller.rb
64
+ - app/controllers/finance/me/expenses_controller.rb
65
+ - app/controllers/finance_controller/me.rb
66
+ - app/models/budget/finance/fund_budget.rb
67
+ - app/models/budget/finance/stock_budget.rb
68
+ - app/models/expense/finance/payable_expense.rb
69
+ - app/models/expense/finance/prepay_expense.rb
70
+ - app/models/finance.rb
71
+ - app/models/finance/application_record.rb
72
+ - app/models/finance/assessment.rb
73
+ - app/models/finance/budget.rb
74
+ - app/models/finance/expense.rb
75
+ - app/models/finance/expense_item.rb
76
+ - app/models/finance/expense_member.rb
77
+ - app/models/finance/ext/financial.rb
78
+ - app/models/finance/ext/member.rb
79
+ - app/models/finance/financial_taxon.rb
80
+ - app/models/finance/fund.rb
81
+ - app/models/finance/fund_income.rb
82
+ - app/models/finance/model/assessment.rb
83
+ - app/models/finance/model/budget.rb
84
+ - app/models/finance/model/budget/fund_budget.rb
85
+ - app/models/finance/model/budget/stock_budget.rb
86
+ - app/models/finance/model/expense.rb
87
+ - app/models/finance/model/expense/payable_expense.rb
88
+ - app/models/finance/model/expense/prepay_expense.rb
89
+ - app/models/finance/model/expense_item.rb
90
+ - app/models/finance/model/expense_member.rb
91
+ - app/models/finance/model/financial_taxon.rb
92
+ - app/models/finance/model/fund.rb
93
+ - app/models/finance/model/fund_income.rb
94
+ - app/models/finance/model/stock.rb
95
+ - app/models/finance/stock.rb
96
+ - app/pdfs/borrow_expense_pdf.rb
97
+ - app/pdfs/payout_expense_pdf.rb
98
+ - app/pdfs/prepay_expense_pdf.rb
99
+ - app/records/borrow_expense_record.rb
100
+ - app/records/prepay_expense_record.rb
101
+ - app/views/admin/_finance_nav.html.erb
102
+ - app/views/admin/_nav_expense.html.erb
103
+ - app/views/finance/admin/assessments/_edit_form.html.erb
104
+ - app/views/finance/admin/assessments/_filter_form.html.erb
105
+ - app/views/finance/admin/assessments/_form.html.erb
106
+ - app/views/finance/admin/assessments/_index_tbody.html.erb
107
+ - app/views/finance/admin/assessments/_index_thead.html.erb
108
+ - app/views/finance/admin/assessments/_index_tr.html.erb
109
+ - app/views/finance/admin/assessments/_new_form.html.erb
110
+ - app/views/finance/admin/assessments/_show_table.html.erb
111
+ - app/views/finance/admin/assessments/index.html.erb
112
+ - app/views/finance/admin/base/_nav.html.erb
113
+ - app/views/finance/admin/budgets/_breadcrumb.html.erb
114
+ - app/views/finance/admin/budgets/_edit_form.html.erb
115
+ - app/views/finance/admin/budgets/_filter_form.html.erb
116
+ - app/views/finance/admin/budgets/_filter_table.html.erb
117
+ - app/views/finance/admin/budgets/_form.html.erb
118
+ - app/views/finance/admin/budgets/_index_tbody.html.erb
119
+ - app/views/finance/admin/budgets/_index_thead.html.erb
120
+ - app/views/finance/admin/budgets/_item_form.html.erb
121
+ - app/views/finance/admin/budgets/_items.html.erb
122
+ - app/views/finance/admin/budgets/_new_form.html.erb
123
+ - app/views/finance/admin/budgets/_show/_breadcrumb.html.erb
124
+ - app/views/finance/admin/budgets/_show_table.html.erb
125
+ - app/views/finance/admin/budgets/index.html.erb
126
+ - app/views/finance/admin/budgets/next.turbo_stream.erb
127
+ - app/views/finance/admin/budgets/show.htmlx.erb
128
+ - app/views/finance/admin/budgets/trigger.js.erb
129
+ - app/views/finance/admin/expense_members/_edit_form.html.erb
130
+ - app/views/finance/admin/expense_members/_form.html.erb
131
+ - app/views/finance/admin/expense_members/_index_tbody.html.erb
132
+ - app/views/finance/admin/expense_members/_index_thead.html.erb
133
+ - app/views/finance/admin/expense_members/index.html.erb
134
+ - app/views/finance/admin/expenses/_breadcrumb.html.erb
135
+ - app/views/finance/admin/expenses/_edit_form.html.erb
136
+ - app/views/finance/admin/expenses/_filter_form.html.erb
137
+ - app/views/finance/admin/expenses/_filter_table.html.erb
138
+ - app/views/finance/admin/expenses/_form.html.erb
139
+ - app/views/finance/admin/expenses/_index_tbody.html.erb
140
+ - app/views/finance/admin/expenses/_index_thead.html.erb
141
+ - app/views/finance/admin/expenses/_item_form.html.erb
142
+ - app/views/finance/admin/expenses/_items.html.erb
143
+ - app/views/finance/admin/expenses/_member_form.html.erb
144
+ - app/views/finance/admin/expenses/_new_form.html.erb
145
+ - app/views/finance/admin/expenses/index.html.erb
146
+ - app/views/finance/admin/expenses/next.turbo_stream.erb
147
+ - app/views/finance/admin/expenses/show.html.erb
148
+ - app/views/finance/admin/expenses/trigger.turbo_stream.erb
149
+ - app/views/finance/admin/financial_taxons/_edit_form.html.erb
150
+ - app/views/finance/admin/financial_taxons/_filter_form.html.erb
151
+ - app/views/finance/admin/financial_taxons/_form.html.erb
152
+ - app/views/finance/admin/financial_taxons/_index_tbody.html.erb
153
+ - app/views/finance/admin/financial_taxons/_index_thead.html.erb
154
+ - app/views/finance/admin/financial_taxons/_index_tr.html.erb
155
+ - app/views/finance/admin/financial_taxons/_new_form.html.erb
156
+ - app/views/finance/admin/financial_taxons/index.html.erb
157
+ - app/views/finance/admin/fund_incomes/_breadcrumb.html.erb
158
+ - app/views/finance/admin/fund_incomes/_edit_form.html.erb
159
+ - app/views/finance/admin/fund_incomes/_filter_form.html.erb
160
+ - app/views/finance/admin/fund_incomes/_form.html.erb
161
+ - app/views/finance/admin/fund_incomes/_index_tbody.html.erb
162
+ - app/views/finance/admin/fund_incomes/_index_thead.html.erb
163
+ - app/views/finance/admin/fund_incomes/_new_form.html.erb
164
+ - app/views/finance/admin/fund_incomes/_show_table.html.erb
165
+ - app/views/finance/admin/fund_incomes/index.html.erb
166
+ - app/views/finance/admin/funds/_edit_form.html.erb
167
+ - app/views/finance/admin/funds/_filter_form.html.erb
168
+ - app/views/finance/admin/funds/_form.html.erb
169
+ - app/views/finance/admin/funds/_index_tbody.html.erb
170
+ - app/views/finance/admin/funds/_index_thead.html.erb
171
+ - app/views/finance/admin/funds/_new_form.html.erb
172
+ - app/views/finance/admin/funds/_show_table.html.erb
173
+ - app/views/finance/admin/funds/index.html.erb
174
+ - app/views/finance/admin/home/index.html.erb
175
+ - app/views/finance/admin/stocks/_breadcrumb.html.erb
176
+ - app/views/finance/admin/stocks/_edit_form.html.erb
177
+ - app/views/finance/admin/stocks/_filter_form.html.erb
178
+ - app/views/finance/admin/stocks/_form.html.erb
179
+ - app/views/finance/admin/stocks/_index_tbody.html.erb
180
+ - app/views/finance/admin/stocks/_index_thead.html.erb
181
+ - app/views/finance/admin/stocks/_new_form.html.erb
182
+ - app/views/finance/admin/stocks/_show_table.html.erb
183
+ - app/views/finance/admin/stocks/index.html.erb
184
+ - app/views/finance/me/budgets/_breadcrumb.html.erb
185
+ - app/views/finance/me/budgets/_filter_form.html.erb
186
+ - app/views/finance/me/budgets/_filter_table.html.erb
187
+ - app/views/finance/me/budgets/_index_tbody.html.erb
188
+ - app/views/finance/me/budgets/_index_thead.html.erb
189
+ - app/views/finance/me/budgets/_items.html.erb
190
+ - app/views/finance/me/budgets/_show/_breadcrumb.html.erb
191
+ - app/views/finance/me/budgets/admin.html.erb
192
+ - app/views/finance/me/budgets/financial_taxons.js.erb
193
+ - app/views/finance/me/budgets/index.html.erb
194
+ - app/views/finance/me/budgets/index.js
195
+ - app/views/finance/me/budgets/submit.turbo_stream.erb
196
+ - app/views/finance/me/budgets/transfer.turbo_stream.erb
197
+ - app/views/finance/me/expense_members/_breadcrumb.html.erb
198
+ - app/views/finance/me/expense_members/_button.html.erb
199
+ - app/views/finance/me/expense_members/_filter_form.html.erb
200
+ - app/views/finance/me/expense_members/_form.html.erb
201
+ - app/views/finance/me/expense_members/_index_tbody.html.erb
202
+ - app/views/finance/me/expense_members/_index_thead.html.erb
203
+ - app/views/finance/me/expense_members/_show_items.html.erb
204
+ - app/views/finance/me/expense_members/admin.html.erb
205
+ - app/views/finance/me/expense_members/index.html.erb
206
+ - app/views/finance/me/expense_members/items.js.erb
207
+ - app/views/finance/me/expense_members/show.html.erb
208
+ - app/views/finance/me/expenses/_breadcrumb.html.erb
209
+ - app/views/finance/me/expenses/_edit_form.html.erb
210
+ - app/views/finance/me/expenses/_filter_form.html.erb
211
+ - app/views/finance/me/expenses/_filter_table.html.erb
212
+ - app/views/finance/me/expenses/_index_tbody.html.erb
213
+ - app/views/finance/me/expenses/_index_thead.html.erb
214
+ - app/views/finance/me/expenses/_index_tr.html.erb
215
+ - app/views/finance/me/expenses/_new_form.html.erb
216
+ - app/views/finance/me/expenses/_show/_breadcrumb.html.erb
217
+ - app/views/finance/me/expenses/_show_table.html.erb
218
+ - app/views/finance/me/expenses/admin.html.erb
219
+ - app/views/finance/me/expenses/confirm.html.erb
220
+ - app/views/finance/me/expenses/financial_taxons.js.erb
221
+ - app/views/finance/me/expenses/index.html.erb
222
+ - app/views/finance/me/expenses/index.js
223
+ - app/views/finance/me/expenses/show.html.erb
224
+ - app/views/me/_finance_nav.html.erb
225
+ - config/locales/en.attributes.yml
226
+ - config/locales/en.controller.yml
227
+ - config/locales/en.enum.yml
228
+ - config/locales/zh.attributes.yml
229
+ - config/locales/zh.controller.yml
230
+ - config/locales/zh.enum.yml
231
+ - config/routes.rb
232
+ - lib/rails_finance.rb
233
+ - lib/rails_finance/config.rb
234
+ - lib/rails_finance/engine.rb
235
+ - lib/rails_finance/version.rb
236
+ homepage: https://github.com/work-design/rails_finance
237
+ licenses:
238
+ - MIT
239
+ metadata: {}
240
+ post_install_message:
241
+ rdoc_options: []
242
+ require_paths:
243
+ - lib
244
+ required_ruby_version: !ruby/object:Gem::Requirement
245
+ requirements:
246
+ - - ">="
247
+ - !ruby/object:Gem::Version
248
+ version: '0'
249
+ required_rubygems_version: !ruby/object:Gem::Requirement
250
+ requirements:
251
+ - - ">="
252
+ - !ruby/object:Gem::Version
253
+ version: '0'
254
+ requirements: []
255
+ rubygems_version: 3.2.22
256
+ signing_key:
257
+ specification_version: 4
258
+ summary: Summary of Rails Finance
259
+ test_files: []