{% load base_extras %} {% load humanize %} {# {% for a in analysis %}#} {# {% endfor %}#}
Deal Analysis
{# #} {% for i in x %} {# #} {% endfor %}
Commodity Amount For Farmers Maximum COB to break even BonusTotal Profit Share
{% with com=i.commodity|load_json %}{{ com.commodity.name }}{% endwith %} {{ i.value|floatformat:1 }} {{ i.max_cob_even|floatformat:1 }} {{ i.bonus|floatformat:1 }}{% total_bonus i.value i.max_cob_even i.bonus as f %}{{ f|intcomma }}
{# Working Capital #} {# COB Price Calculation (UGX)#} {% if analy.profit > 0 %} {% endif %} {# Agent Commissions #}
Working Capital{{ seller_currency|floatformat:1 }}
Total COB Paid to Farmers{{ analy.total_cob_paid_to_farmers|floatformat:1 }}
Total Middle Costs {{ analy.total_middle_costs|floatformat:1 }}
TruTrade Advance Required {{ analy.advance|floatformat:1 }}
Trade Finance Fee {{ trade_and_insurance_fee }} % {{ analy.trade_and_finance|floatformat:1 }}
Contingency ( {{ contingency }}% of total middle costs){{ analy.contingency|floatformat:1 }}
Total Investment{{ analy.advance|add:analy.trade_and_finance|add:analy.contingency|floatformat:1 }}
COB Price Calculation{{ seller_currency|floatformat:1 }}
Amount for Full Deal{{ analy.total_on_deal|floatformat:1 }}
Total Side Incomes{{ analy.total_side_income|floatformat:1 }}
Total Deal Value{{ analy.total_deal_value|floatformat:1 }}
Trade Finance Fee + Middle Costs{{ analy.total_middle_costs|floatformat:1 }}
Commission is Calculated From{{ analy.calc_commissions_from|floatformat:1 }}
Total Commissions %{{ analy.total_commission_percentage|floatformat:1 }} %
Actual Amount for Commissions{{ analy.total_commissions.actual_commission|floatformat:1 }}
Available Amount for Commissions{{ analy.total_commissions.available_commission|floatformat:1 }}
{% if analy.profit > 0 %}Total Profit share{% else %}Loss{% endif %} {% if analy.profit > 0 %}{{ analy.profit|floatformat:1 }}{% else %}{{ analy.loss|floatformat:1 }}{% endif %}
Bonus to Farmers (50% of Profit Share) {% total_bonus_share analy.profit as profit %} {{ profit|intcomma|floatformat:1 }}
TruTrade Profit (50% of Profit Share) {% total_bonus_share analy.profit as proft %}{{ profit|intcomma|floatformat:1 }}
Agent Commissions{{ seller_currency }}
TTS Agents ({% role agent_commissions 'agent' 'perc' %} %) {% role agent_commissions 'agent' 'tt' as ag %}{{ ag|intcomma }}
Sourcing Coordinator ({% role agent_commissions 'NM' 'perc' %} %){% role agent_commissions 'NM' 'tt' as sc %}{{ sc|intcomma }}
TruTrade ({% role agent_commissions 'TruTrade' 'perc' %} %){% role agent_commissions 'TruTrade' 'tt' as trutrade %}{{ trutrade|intcomma }}