OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/spec/fixtures/cost_entries.yml

112 lines
2.5 KiB

---
example:
id: 1
user_id: 1
project_id: 1
cost_type_id: 1
issue_id: 1
units: 1
spent_on: <%= Date.today %>
tyear: <%= Time.now.year %>
tmonth: <%= Time.now.month %>
tweek: <%= Date.today.cweek %>
comments: "foo bar blah"
costs: 0.0
created_on: 2007-03-23 12:54:10 +01:00
updated_on: 2007-03-23 12:54:10 +01:00
example2:
id: 2
user_id: 1
project_id: 1
cost_type_id: 1
issue_id: 2
units: 1
spent_on: <%= Date.today %>
tyear: <%= Time.now.year %>
tmonth: <%= Time.now.month %>
tweek: <%= Date.today.cweek %>
comments: "foo bar blah2"
costs: 2.3
created_on: 2007-03-23 12:54:20 +01:00
updated_on: 2007-03-23 12:54:20 +01:00
example3:
id: 3
user_id: 1
project_id: 1
cost_type_id: 1
issue_id: 3
units: 1
spent_on: <%= Date.today %>
tyear: <%= Time.now.year %>
tmonth: <%= Time.now.month %>
tweek: <%= Date.today.cweek %>
comments: "foo bar blah2"
costs: 0.0
created_on: <%= Time.now.strftime("%Y-%m-%d %H:%M") %>
updated_on: <%= Time.now.strftime("%Y-%m-%d %H:%M") %>
example4:
id: 4
user_id: 2
project_id: 2
cost_type_id: 1
issue_id: 1
units: 2
spent_on: <%= Date.today %>
tyear: <%= Time.now.year %>
tmonth: <%= Time.now.month %>
tweek: <%= Date.today.cweek %>
comments: "foo bar blah2"
costs: 1.1
created_on: <%= Time.now.strftime("%Y-%m-%d %H:%M") %>
updated_on: <%= Time.now.strftime("%Y-%m-%d %H:%M") %>
example5:
id: 5
user_id: 3
project_id: 1
cost_type_id: 1
issue_id: 10
units: 1
spent_on: <%= Date.today %>
tyear: <%= Time.now.year %>
tmonth: <%= Time.now.month %>
tweek: <%= Date.today.cweek %>
comments: "foo bar blah2"
costs: 0.0
created_on: <%= Time.now.strftime("%Y-%m-%d %H:%M") %>
updated_on: <%= Time.now.strftime("%Y-%m-%d %H:%M") %>
example6:
id: 6
user_id: 1
project_id: 1
cost_type_id: 1
issue_id: 10
units: 1
spent_on: <%= Date.today %>
tyear: <%= Time.now.year %>
tmonth: <%= Time.now.month %>
tweek: <%= Date.today.cweek %>
comments: "foo bar blah2"
costs: 0.0
created_on: <%= Time.now.strftime("%Y-%m-%d %H:%M") %>
updated_on: <%= Time.now.strftime("%Y-%m-%d %H:%M") %>
example7:
id: 7
user_id: 2
project_id: 2
cost_type_id: 1
issue_id: 3
units: 2
spent_on: <%= 2.weeks.ago.to_date %>
tyear: <%= 2.weeks.ago.to_time.year %>
tmonth: <%= 2.weeks.ago.to_time.month %>
tweek: <%= 2.weeks.ago.to_date.cweek %>
comments: "foo bar blah2"
costs: 0.0
created_on: <%= 2.weeks.ago.to_time.strftime("%Y-%m-%d %H:%M") %>
updated_on: <%= Time.now.strftime("%Y-%m-%d %H:%M") %>