Sorry for the stupid question.
My result set looks like this
{%Epos.Sales.Transaction{
__meta__: #Ecto.Schema.Metadata<:loaded, "transactions">,
amount_paid: 0.0,
bill_amount: 0.0,
comments: nil,
created_by: "shan",
customer_id: "shan",
customers: #Ecto.Association.NotLoaded<association :customers is not loaded>,
discount_on_items: 0.0,
discount_on_total: 0.0,
inserted_at: #DateTime<2019-01-30 08:46:21Z>,
is_active: true,
net_amount: 0.0,
sale_date: #DateTime<2019-01-30 08:46:21Z>,
sales_type: "COUNTER_SALE",
tax: 0.0,
tax_percentage: "0%",
transaction_status: "PENDING",
transactions_id: 1548837981076,
updated_at: #DateTime<2019-01-30 08:46:21Z>,
updated_by: "shan"
},
%Epos.Sales.TransactionDetail{
__meta__: #Ecto.Schema.Metadata<:loaded, "transaction_details">,
cost_price: 100.0,
created_by: "shan",
discount: 4.4,
inserted_at: #DateTime<2019-01-30 08:46:32Z>,
price: 1306.0,
product_id: "A3",
qty: 10,
selling_price: 135.0,
transaction_details_id: 1548837981076,
transactions: #Ecto.Association.NotLoaded<association :transactions is not loaded>,
updated_at: #DateTime<2019-01-30 08:46:40Z>,
updated_by: "shan"
}}
Please guide me how to access the values from this?