Class: Eboshi::Adjustment

Inherits:
LineItem show all
Defined in:
app/models/eboshi/adjustment.rb

Instance Method Summary collapse

Methods inherited from LineItem

#<=>, #==, #checked?, #hours, #invoice_total, on_date, on_month, on_week, on_year, unbilled, #unbilled?, #user_name=

Instance Method Details

#no_dateObject



33
34
35
# File 'app/models/eboshi/adjustment.rb', line 33

def no_date
  start.nil? && !new_record?
end

#no_userObject



29
30
31
# File 'app/models/eboshi/adjustment.rb', line 29

def no_user
  user.nil? && !new_record?
end

#totalObject



21
22
23
# File 'app/models/eboshi/adjustment.rb', line 21

def total
  rate
end

#total=(value) ⇒ Object



25
26
27
# File 'app/models/eboshi/adjustment.rb', line 25

def total=(value)
  self.rate = value
end