Class: Eboshi::Adjustment
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_date ⇒ Object
33
34
35
|
# File 'app/models/eboshi/adjustment.rb', line 33
def no_date
start.nil? && !new_record?
end
|
#no_user ⇒ Object
29
30
31
|
# File 'app/models/eboshi/adjustment.rb', line 29
def no_user
user.nil? && !new_record?
end
|
#total ⇒ Object
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
|