Simplifiying balancing view part 2. Lets call it finished.
This commit is contained in:
parent
dc0d1b3e46
commit
af3c07f031
26 changed files with 185 additions and 219 deletions
|
|
@ -194,6 +194,12 @@ class Order < ActiveRecord::Base
|
|||
end
|
||||
end
|
||||
|
||||
# Close the order directly, without automaticly updating ordergroups account balances
|
||||
def close_direct!(user)
|
||||
raise "Bestellung wurde schon abgerechnet" if closed?
|
||||
update_attributes! state: 'closed', updated_by: user
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def starts_before_ends
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue