Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shotengai
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
shotengai
Commits
eb7f797e
Commit
eb7f797e
authored
Sep 27, 2017
by
ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change the merchant_remark of order into manager_remark
parent
9d81dd42
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
1_create_shotengai_products_and_orders.rb
db/migrate/1_create_shotengai_products_and_orders.rb
+1
-1
_merchant_order.json.jbuilder
...ators/templates/views/share/_merchant_order.json.jbuilder
+1
-1
_merchant_order_simple.json.jbuilder
...emplates/views/share/_merchant_order_simple.json.jbuilder
+1
-1
orders_controller.rb
lib/shotengai/controller/merchant/orders_controller.rb
+1
-1
No files found.
db/migrate/1_create_shotengai_products_and_orders.rb
View file @
eb7f797e
...
...
@@ -57,7 +57,7 @@ class CreateShotengaiProductsAndOrders < ActiveRecord::Migration[5.1]
t
.
datetime
:receipt_time
t
.
string
:delivery_way
t
.
integer
:delivery_cost
,
default:
0
t
.
text
:merchant
_remark
t
.
json
:manager
_remark
t
.
string
:mark
# merchant mark, like red, blue ..
t
.
text
:customer_remark
t
.
string
:status
...
...
lib/generators/templates/views/share/_merchant_order.json.jbuilder
View file @
eb7f797e
...
...
@@ -3,6 +3,6 @@ json.extract! order, :id, :seq, :address, :amount,
:total_price, :total_original_price,
:pay_time, :delivery_time, :receipt_time,
:delivery_way, :delivery_cost,
:m
erchant
_remark, :mark, :customer_remark,
:m
anager
_remark, :mark, :customer_remark,
:status, :status_zh, :meta, :created_at
json.snapshots order.snapshots, partial: 'shotengai/share/snapshot_simple', as: :snapshot
lib/generators/templates/views/share/_merchant_order_simple.json.jbuilder
View file @
eb7f797e
...
...
@@ -2,6 +2,6 @@ json.extract! order, :id, :seq, :address, :amount
:product_amount, :product_original_amount,
:pay_time, :delivery_time, :receipt_time,
:delivery_way, :delivery_cost,
:m
erchant
_remark, :mark, :customer_remark,
:m
anager
_remark, :mark, :customer_remark,
:status, :status_zh, :meta, :created_at
json.snapshots order.snapshots, partial: 'shotengai/share/snapshot_simple', as: :snapshot
lib/shotengai/controller/merchant/orders_controller.rb
View file @
eb7f797e
...
...
@@ -23,7 +23,7 @@ module Shotengai
private
def
resource_params
params
.
require
(
resource_key
).
permit
(
:m
erchant_remark
,
:mark
:m
ark
,
manager_remark:
[],
)
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment