| {{ fundraise.pub.name }} | {{ shareholder.getInvestmentAmountForPub(fundraise.pub)|number_format }} | {{ (fundraise.pub.fundRaisePercent * shareholder.getInvestmentAmountForPub(fundraise.pub)) | number_format }}{% if fundRaiseContribution is not null %} | {{ (fundRaiseContribution.amount is not null) ? fundRaiseContribution.amount |number_format : 'Not subscribing' }}{# Allocated Standard Pref #} | {% set StandardPrefsAllocated = min(fundRaiseContribution.amount,ProRataPrefShares) %}
                            {{ (fundRaiseContribution.amount is not null) ? StandardPrefsAllocated|number_format : 'Not subscribing' }}{# Allocated Super Pref #} | {% set SuperPrefsAllocated = max((fundRaiseContribution.amount- ProRataPrefShares),0) %}
                            {{ (fundRaiseContribution.amount is not null) ? SuperPrefsAllocated|number_format : 'Not subscribing' }}{# Monies received #} | {% if fundRaiseContribution.paymentSent is not null %}
                                {{ fundRaiseContribution.paymentSent.format('d-M-Y') }}
                            {% endif %}{# Days Accrued #} | {% set differenceActual = date(fundraise.pub.prefShareAccrualEndDate).diff(date(fundRaiseContribution.paymentSent)) %}
                            {% set differenceDefault = date(fundraise.pub.prefShareAccrualEndDate).diff(date(fundraise.pub.prefShareDefaultMoniesReceivedDate)) %}
                            {% set DaysActual = differenceActual.days  %}
                            {% set DaysDefault = differenceDefault.days  %}
                            {% if fundRaiseContribution.amount <1 %}
                                -
                            {% else %}
                                {% if fundRaiseContribution.paymentSent is not null %}
{#                                     {{ DaysActual }}#}
                                     {{ DaysDefault }}
                                {% else %}
                                     {{ DaysDefault }}
                                {% endif %}
                            {% endif %}{# Standard Prefs Interest Accured #} | {% if fundRaiseContribution.paymentSent is not null %}
                                
{#                                    {{ (StandardPrefsAllocated * DaysActual * fundraise.pub.prefShareInterestRate /365) |number_format(2, '.', ',') }}#}
                                    {{ (StandardPrefsAllocated * DaysDefault * fundraise.pub.prefShareInterestRate /365) |number_format(2, '.', ',') }}
                                    
                            {% else %}
                                
                                {{ (StandardPrefsAllocated * DaysDefault * fundraise.pub.prefShareInterestRate /365) |number_format(2, '.', ',') }}
                            
                            {% endif %}{# Super Prefs Interest Accured #} | {% if fundRaiseContribution.paymentSent is not null %}
                                
{#                                    {{ (SuperPrefsAllocated * DaysActual * (fundraise.pub.prefShareInterestRate+0.03) /365) |number_format(2, '.', ',') }}#}
                                    {{ (SuperPrefsAllocated * DaysDefault * (fundraise.pub.prefShareInterestRate+0.03) /365) |number_format(2, '.', ',') }}
                                    
                            {% else %}
                                
                                {{ (SuperPrefsAllocated * DaysDefault * (fundraise.pub.prefShareInterestRate+0.03) /365) |number_format(2, '.', ',') }}
                            
                            {% endif %}{% if is_granted ('ROLE_SUPER_ADMIN') %} | >>{# | {{ (fundRaiseContribution.amount is not null) ? min(fundRaiseContribution.amount,ProRataPrefShares)|number_format : 'Not subscribing' }}#}
                            {# | {{ (fundRaiseContribution.amount is not null) ? MaxSuperPrefShares |number_format : 'Not subscribing' }}#}
                            {# | {{ (fundRaiseContribution.amount is not null) ? min(fundRaiseContribution.amount,(ProRataPrefShares+MaxSuperPrefShares))|number_format : 'Not subscribing' }}#} | Not
                                    Subscribing | Subscribe
                                    'Ask'amount exactly | Subscribe
                                    Bespoke/Additional | Money
                                    sent
                                Clear | {% if fundRaiseContribution.paymentSent is not null %}
                                    {{ fundRaiseContribution.paymentSent.format('d-M-Y') }}
                                {% endif %} | {{ fundRaiseContribution.moniesReceived |number_format }}{% endif %}
                    {% endif %} | 
            {% endif %}
        {% endfor %}