Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Dec 22, 2024
1 parent 15ea5dd commit 89e5765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/trade/model/item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ module Model::Item
)

after_initialize :init_uuid, if: :new_record?
after_initialize :sync_from_good, if: -> { new_record? && good_id.present? }
#after_initialize :sync_from_good, if: -> { new_record? && good_id.present? }
before_validation :sync_from_good, if: -> { good_id.present? && good_id_changed? }
before_validation :compute_amount, if: -> { (changes.keys & ['number', 'single_price']).present? }
before_validation :add_promotes, if: :new_record?
Expand Down

0 comments on commit 89e5765

Please sign in to comment.