mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-05 16:24:21 +01:00
15 lines
437 B
Plaintext
15 lines
437 B
Plaintext
|
json.id plan.id
|
||
|
json.base_name plan.base_name
|
||
|
json.name plan.name
|
||
|
json.amount plan.amount ? (plan.amount / 100.0) : 0
|
||
|
json.interval plan.interval
|
||
|
json.interval_count plan.interval_count
|
||
|
json.training_credit_nb plan.training_credit_nb
|
||
|
json.training_credits plan.training_credits do |tc|
|
||
|
json.training_id tc.creditable_id
|
||
|
end
|
||
|
json.machine_credits plan.machine_credits do |mc|
|
||
|
json.machine_id mc.creditable_id
|
||
|
json.hours mc.hours
|
||
|
end
|