Commit 95b0dcd0 by ivan Lan

Add already_disable to snapshot & Improve template

parent 568590dd
json.extract! series, :id, :title, :original_price, :price,
:stock, :spec, :cover_image, :banners, :meta, :detail, :shotengai_product_id
\ No newline at end of file
:stock, :spec, :cover_image, :banners, :meta, :detail,
:shotengai_product_id
\ No newline at end of file
json.extract! series, :id, :title, :original_price, :price,
:stock, :spec, :cover_image, :meta, :shotengai_product_id
\ No newline at end of file
:stock, :spec, :cover_image, :meta, :shotengai_product_id
\ No newline at end of file
......@@ -2,4 +2,4 @@ json.extract! snapshot, :id, :title, :shotengai_series_id,
:original_price, :price, :count,
:product_status_zh, :order_status_zh, :product_status, :order_status,
:total_price, :total_original_price, :revised_amount,
:spec, :cover_image, :banners, :detail, :meta, :is_in_cart
\ No newline at end of file
:spec, :cover_image, :banners, :detail, :meta, :is_in_cart, :already_disable
\ No newline at end of file
......@@ -2,4 +2,4 @@ json.extract! snapshot, :id, :title, :shotengai_series_id,
:original_price, :price, :count, :title,
:product_status_zh, :order_status_zh, :product_status, :order_status,
:total_price, :total_original_price, :revised_amount,
:spec, :cover_image, :meta, :is_in_cart
\ No newline at end of file
:spec, :cover_image, :meta, :is_in_cart, :already_disable
\ No newline at end of file
......@@ -74,6 +74,10 @@ module Shotengai
read_attribute(:meta) || (series.product.meta || {} ).merge(series.meta || {})
end
def already_disable
series.deleted?
end
# 订单支付后 存储当时信息快照
def copy_info
# cut_stock
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment