educode_sales 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/educode_sales/businesses_controller.rb +1 -1
- data/app/controllers/educode_sales/invoices_controller.rb +219 -0
- data/app/controllers/educode_sales/money_plan_records_controller.rb +13 -0
- data/app/controllers/educode_sales/sale_trends_controller.rb +2 -2
- data/app/models/educode_sales/business.rb +4 -0
- data/app/models/educode_sales/invoice.rb +5 -0
- data/app/models/educode_sales/invoice_apply.rb +12 -0
- data/app/models/educode_sales/invoice_detail.rb +10 -0
- data/app/models/educode_sales/staff.rb +2 -0
- data/app/views/educode_sales/contracts/_list.html.erb +1 -1
- data/app/views/educode_sales/invoices/_apply_records.html.erb +276 -0
- data/app/views/educode_sales/invoices/apply.html.erb +443 -0
- data/app/views/educode_sales/invoices/apply_records.js.erb +1 -0
- data/app/views/educode_sales/invoices/apply_records.json.jbuilder +20 -0
- data/app/views/educode_sales/invoices/details.json.jbuilder +17 -0
- data/app/views/educode_sales/invoices/list.json.jbuilder +14 -0
- data/app/views/educode_sales/invoices/new.html.erb +177 -0
- data/app/views/educode_sales/invoices/sales_details.html.erb +88 -0
- data/app/views/educode_sales/invoices/sales_details.json.jbuilder +14 -0
- data/app/views/educode_sales/money_plan_records/_index.html.erb +35 -8
- data/app/views/educode_sales/money_plans/_index.html.erb +138 -169
- data/app/views/educode_sales/money_plans/list.html.erb +2 -1
- data/app/views/layouts/educode_sales/application.html.erb +245 -236
- data/config/routes.rb +16 -0
- data/db/migrate/20230531144834_create_educode_sales_invoice_applies.rb +25 -0
- data/db/migrate/20230601011835_create_educode_sales_invoices.rb +14 -0
- data/db/migrate/20230601011943_create_educode_sales_invoice_details.rb +20 -0
- data/lib/educode_sales/version.rb +1 -1
- metadata +19 -3
data/config/routes.rb
CHANGED
@@ -25,6 +25,21 @@ EducodeSales::Engine.routes.draw do
|
|
25
25
|
resources :sessions do
|
26
26
|
end
|
27
27
|
|
28
|
+
resources :invoices do
|
29
|
+
collection do
|
30
|
+
get :apply_records
|
31
|
+
get :apply
|
32
|
+
get :details
|
33
|
+
get :invoice_amount
|
34
|
+
post :create_apply
|
35
|
+
post :add_invoice
|
36
|
+
get :list
|
37
|
+
end
|
38
|
+
member do
|
39
|
+
get :sales_details
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
28
43
|
resources :sales_details do
|
29
44
|
collection do
|
30
45
|
post :upload
|
@@ -73,6 +88,7 @@ EducodeSales::Engine.routes.draw do
|
|
73
88
|
collection do
|
74
89
|
get :add
|
75
90
|
get :confirm_plan
|
91
|
+
post :upload
|
76
92
|
end
|
77
93
|
member do
|
78
94
|
post :confirm
|
@@ -0,0 +1,25 @@
|
|
1
|
+
class CreateEducodeSalesInvoiceApplies < ActiveRecord::Migration[5.2]
|
2
|
+
def change
|
3
|
+
create_table :educode_sales_invoice_applies do |t|
|
4
|
+
t.string :number, comment: "开票申请编号"
|
5
|
+
t.references :business
|
6
|
+
t.references :staff
|
7
|
+
t.float :amount, comment: "已开票金额"
|
8
|
+
t.integer :invoices_count, comment: "发票数量"
|
9
|
+
t.integer :delivery, comment: "送达方式"
|
10
|
+
t.date :ticket_at, comment: "出票需求时间"
|
11
|
+
t.date :passed_at, comment: "开票时间"
|
12
|
+
t.integer :state, comment: "开票状态"
|
13
|
+
t.integer :category, comment: "发票类型"
|
14
|
+
t.boolean :is_tax_rebate, default: false
|
15
|
+
t.string :name, comment: "开票信息名称"
|
16
|
+
t.string :taxpaper_number, comment: "纳税人标识号"
|
17
|
+
t.string :address, comment: "地址"
|
18
|
+
t.string :phone, comment: "电话"
|
19
|
+
t.string :bank_number, comment: "银行账号"
|
20
|
+
t.string :bank, comment: "开户行"
|
21
|
+
t.integer :take_ticket_id, comment: "领票人"
|
22
|
+
t.timestamps
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
class CreateEducodeSalesInvoices < ActiveRecord::Migration[5.2]
|
2
|
+
def change
|
3
|
+
create_table :educode_sales_invoices do |t|
|
4
|
+
t.string :number, comment: "发票号码"
|
5
|
+
t.float :no_tax_amount, comment: "未税金额"
|
6
|
+
t.float :taxt_amount, comment: "税额"
|
7
|
+
t.float :amount, comment: "发票金额"
|
8
|
+
t.date :date_at, comment: "开票日期"
|
9
|
+
t.references :invoice_apply
|
10
|
+
|
11
|
+
t.timestamps
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
class CreateEducodeSalesInvoiceDetails < ActiveRecord::Migration[5.2]
|
2
|
+
def change
|
3
|
+
create_table :educode_sales_invoice_details do |t|
|
4
|
+
t.references :invoice_apply
|
5
|
+
t.references :business
|
6
|
+
t.references :sale_detail
|
7
|
+
t.integer :num, comment: "数量"
|
8
|
+
t.string :specification, comment: "规格"
|
9
|
+
t.string :unit, comment: "单位"
|
10
|
+
t.float :price, comment: "单价"
|
11
|
+
t.integer :category, comment: "类别:软件,硬件"
|
12
|
+
t.string :name, comment: "名称"
|
13
|
+
t.float :amount, comment: "金额"
|
14
|
+
t.integer :state, comment: "开票状态:已开票"
|
15
|
+
|
16
|
+
t.timestamps
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: educode_sales
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- anke1460
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05
|
11
|
+
date: 2023-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -156,6 +156,7 @@ files:
|
|
156
156
|
- app/controllers/educode_sales/idea_recycles_controller.rb
|
157
157
|
- app/controllers/educode_sales/ideas_controller.rb
|
158
158
|
- app/controllers/educode_sales/import_teachers_controller.rb
|
159
|
+
- app/controllers/educode_sales/invoices_controller.rb
|
159
160
|
- app/controllers/educode_sales/key_person_controller.rb
|
160
161
|
- app/controllers/educode_sales/logs_controller.rb
|
161
162
|
- app/controllers/educode_sales/money_plan_records_controller.rb
|
@@ -224,6 +225,9 @@ files:
|
|
224
225
|
- app/models/educode_sales/idea.rb
|
225
226
|
- app/models/educode_sales/idea_follow.rb
|
226
227
|
- app/models/educode_sales/idea_history.rb
|
228
|
+
- app/models/educode_sales/invoice.rb
|
229
|
+
- app/models/educode_sales/invoice_apply.rb
|
230
|
+
- app/models/educode_sales/invoice_detail.rb
|
227
231
|
- app/models/educode_sales/key_person.rb
|
228
232
|
- app/models/educode_sales/login_history.rb
|
229
233
|
- app/models/educode_sales/market_area.rb
|
@@ -425,6 +429,15 @@ files:
|
|
425
429
|
- app/views/educode_sales/ideas/show_teachers.html.erb
|
426
430
|
- app/views/educode_sales/ideas/unfinish_plans.json.jbuilder
|
427
431
|
- app/views/educode_sales/ideas/upload_file.html.erb
|
432
|
+
- app/views/educode_sales/invoices/_apply_records.html.erb
|
433
|
+
- app/views/educode_sales/invoices/apply.html.erb
|
434
|
+
- app/views/educode_sales/invoices/apply_records.js.erb
|
435
|
+
- app/views/educode_sales/invoices/apply_records.json.jbuilder
|
436
|
+
- app/views/educode_sales/invoices/details.json.jbuilder
|
437
|
+
- app/views/educode_sales/invoices/list.json.jbuilder
|
438
|
+
- app/views/educode_sales/invoices/new.html.erb
|
439
|
+
- app/views/educode_sales/invoices/sales_details.html.erb
|
440
|
+
- app/views/educode_sales/invoices/sales_details.json.jbuilder
|
428
441
|
- app/views/educode_sales/logs/index.html.erb
|
429
442
|
- app/views/educode_sales/logs/index.json.jbuilder
|
430
443
|
- app/views/educode_sales/money_plan_records/_index.html.erb
|
@@ -700,6 +713,9 @@ files:
|
|
700
713
|
- db/migrate/20230527150102_add_category_to_educode_sales_money_plans.rb
|
701
714
|
- db/migrate/20230528115654_create_educode_sales_money_plan_records.rb
|
702
715
|
- db/migrate/20230529022020_create_educode_sales_money_plan_claims.rb
|
716
|
+
- db/migrate/20230531144834_create_educode_sales_invoice_applies.rb
|
717
|
+
- db/migrate/20230601011835_create_educode_sales_invoices.rb
|
718
|
+
- db/migrate/20230601011943_create_educode_sales_invoice_details.rb
|
703
719
|
- lib/educode_sales.rb
|
704
720
|
- lib/educode_sales/engine.rb
|
705
721
|
- lib/educode_sales/version.rb
|
@@ -723,7 +739,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
723
739
|
- !ruby/object:Gem::Version
|
724
740
|
version: '0'
|
725
741
|
requirements: []
|
726
|
-
rubygems_version: 3.0.
|
742
|
+
rubygems_version: 3.0.9
|
727
743
|
signing_key:
|
728
744
|
specification_version: 4
|
729
745
|
summary: Summary of EducodeSales.
|