Class: ProductMovement

Inherits:
Ekylibre::Record::Base show all
Includes:
Taskable, TimeLineable
Defined in:
app/models/product_movement.rb

Overview

A product move is a movement of population

Instance Method Summary collapse

Methods included from Taskable

#ensure_originator_type

Methods included from TimeLineable

#any_followings?, #any_previous?, #following, #followings, #last_for_now?, #previous

Methods inherited from Ekylibre::Record::Base

#already_updated?, attr_readonly_with_conditions, #check_if_destroyable?, #check_if_updateable?, columns_definition, complex_scopes, customizable?, #customizable?, #customized?, #destroyable?, #editable?, has_picture, #human_attribute_name, human_attribute_name_with_id, nomenclature_reflections, #old_record, #others, refers_to, scope_with_registration, simple_scopes, #updateable?

Instance Method Details

#add_delta_on_followingsObject


73
74
75
# File 'app/models/product_movement.rb', line 73

def add_delta_on_followings
  impact_on_followings(delta)
end

#remove_delta_on_followingsObject


69
70
71
# File 'app/models/product_movement.rb', line 69

def remove_delta_on_followings
  impact_on_followings(-delta)
end