diff --git a/app/models/repository_stock_value.rb b/app/models/repository_stock_value.rb index caf07a9a2..8cf32736f 100644 --- a/app/models/repository_stock_value.rb +++ b/app/models/repository_stock_value.rb @@ -16,6 +16,8 @@ class RepositoryStockValue < ApplicationRecord validates :repository_cell, presence: true after_create do + next if is_a?(RepositoryStockConsumptionValue) + repository_ledger_records.create!(user: created_by, amount: amount, balance: amount,