Class: Cats::Core::TransportRequisitionItem

Inherits:
ApplicationRecord show all
Defined in:
app/models/cats/core/transport_requisition_item.rb

Instance Method Summary collapse

Instance Method Details

#commodity_nameObject



15
16
17
# File 'app/models/cats/core/transport_requisition_item.rb', line 15

def commodity_name
  dispatch_plan_item.commodity.name
end

#fdpObject



19
20
21
# File 'app/models/cats/core/transport_requisition_item.rb', line 19

def fdp
  dispatch_plan_item.destination.name
end

#regionObject



31
32
33
# File 'app/models/cats/core/transport_requisition_item.rb', line 31

def region
  dispatch_plan_item.destination.root.name
end

#woredaObject



23
24
25
# File 'app/models/cats/core/transport_requisition_item.rb', line 23

def woreda
  dispatch_plan_item.destination.parent.name
end

#zoneObject



27
28
29
# File 'app/models/cats/core/transport_requisition_item.rb', line 27

def zone
  dispatch_plan_item.destination.parent.parent.name
end