Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<%#
name: Subscriptions
snippet: false
template_inputs:
- name: Include custom products
required: false
input_type: user
options: "yes\r\nno"
advanced: false
model: ReportTemplate
%>
<%-
rh_only = (input('Include custom products').strip != 'yes')
rows = Katello::Pool.readable.map do |s|
next if rh_only && s.available < 0
report_row({
'ID': s.id,
'Name': s.name,
'Available': s.available,
'Quantity': s.quantity,
'SKU': s.product_id,
'Contract number': s.contract_number,
})
end
%>
<%= report_render -%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.