Skip to content

Commit

Permalink
dif
Browse files Browse the repository at this point in the history
  • Loading branch information
yigefaxian committed Sep 8, 2024
1 parent cd5b8a8 commit 7ce60bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/factory/model/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def compute_min_max_price

def compute_cost_price
_cost_price = production_parts.includes(:part).sum(&->(i){ i.part.price * i.number }) # price 可由系统提前设定,未设定则通过零件自动计算
self.cost_price = product.base_price.to_d + compute_cost_price
self.cost_price = product.base_price.to_d + _cost_price
end

def compute_profit_price
Expand Down

0 comments on commit 7ce60bc

Please sign in to comment.