{strip}
"{$i.reporting_rep_project|forcsv}"{chr(9)}{* Projekt *}
{if $show_project_details}
    "{$i.reporting_rep_project_name|forcsv}"{chr(9)}
    "{$i.reporting_rep_project_number|forcsv}"{chr(9)}
    "{$i.reporting_rep_cost_centre_name|forcsv}"{chr(9)}
    "{$i.reporting_rep_project_manager_name|forcsv}"{chr(9)}
    "{$i.reporting_rep_project_manager_abbreviation|forcsv}"{chr(9)}
    "{$i.reporting_rep_client_name|forcsv}"{chr(9)}
    "{$i.reporting_rep_office_in_charge_name|forcsv}"{chr(9)}
    "{$i.reporting_rep_project_phase_name|forcsv}"{chr(9)}
    "{$i.reporting_rep_start_date|forcsv}"{chr(9)}
    "{$i.reporting_rep_end_date|forcsv}"{chr(9)}
    "{$i.reporting_rep_project_category_name|forcsv}"{chr(9)}
    "{$i.reporting_rep_comment|forcsv}"{chr(9)}
{/if}
{if $show_project_addi_details}
    {foreach item=field from=$addi_fields}
        "{$field->field|forcsv}"{chr(9)}
    {/foreach}
{/if}
{if $has_right_costs}
    {if $show_all_datespan}{* Sollhonorar *}
        "{$i.reporting_rep_fee_costs|forcsv} {$date_prev}"{chr(9)}
    {/if}
    "{$i.reporting_rep_fee_costs|forcsv}"{chr(9)}
    {if $project_intern_extern}
        {if $show_all_datespan}{* Externes Sollhonorar *}
            "{$i.reporting_rep_fee_costs_external|forcsv} {$date_prev}"{chr(9)}
            "{$i.reporting_rep_fee_costs_externallist|forcsv} {$date_prev}"{chr(9)}
        {/if}
        "{$i.reporting_rep_fee_costs_external|forcsv}"{chr(9)}
        "{$i.reporting_rep_fee_costs_externallist|forcsv}"{chr(9)}
    {/if}
    {if $deduct_hon_decr_costs}{* Gepl. Honorar verm. Kosten *}
        {if $show_all_datespan}
            "{$i.reporting_rep_total_is_hon_decr|forcsv} {$date_prev}"{chr(9)}
        {/if}
        "{$i.reporting_rep_total_is_hon_decr|forcsv}"{chr(9)}
        {if $show_all_datespan}
            "{$i.reporting_rep_fee_internal|forcsv} {$date_prev}"{chr(9)}
        {/if}
        "{$i.reporting_rep_fee_internal|forcsv}"{chr(9)}
    {/if}
{/if}
{if $has_right_costs && $show_budget}
    "{$i.reporting_rep_x_fee_part|forcsv} %"{chr(9)}{* Anteil Soll *}
    "{$i.reporting_rep_budget_costs|forcsv}"{chr(9)}{* Sollbudget *}
    {if $project_intern_extern}
        "{$i.reporting_rep_budget_costs_external|forcsv}"{chr(9)}{* Externes Sollbudget *}
    {/if}
{/if}
{if $has_right_costs && $show_cost_details}
    {if $show_all_datespan}
        "{$i.reporting_rep_x_time_costs|forcsv} {$date_prev}"{chr(9)}
    {/if}
    "{$i.reporting_rep_x_time_costs|forcsv}"{chr(9)}
    {if $show_all_datespan}
        "{$i.reporting_rep_x_travel_costs|forcsv} {$date_prev}"{chr(9)}
    {/if}
    "{$i.reporting_rep_x_travel_costs|forcsv}"{chr(9)}
    {if $show_all_datespan}
        "{$i.reporting_rep_x_extra_costs|forcsv} {$date_prev}"{chr(9)}
    {/if}
    "{$i.reporting_rep_x_extra_costs|forcsv}"{chr(9)}
{/if}
{if $has_right_costs}
    {if $show_all_datespan}{* Interner Aufwand *}
        "{$i.reporting_rep_x_internal_expenses|forcsv} {$date_prev}"{chr(9)}
    {/if}
    "{$i.reporting_rep_x_internal_expenses|forcsv}"{chr(9)}
{/if}
{if $has_right_costs && $show_extexp_details}
    {if $show_all_datespan}{* Verr. Kosten (Extern) *}
        "{$i.reporting_rep_x_costs_charged|forcsv} {$date_prev}"{chr(9)}
    {/if}
    "{$i.reporting_rep_x_costs_charged|forcsv}"{chr(9)}
    {if $show_all_datespan}{* Kosten (Extern) *}
        "{$i.reporting_rep_x_costs|forcsv} {$date_prev}"{chr(9)}
    {/if}
    "{$i.reporting_rep_x_costs|forcsv}"{chr(9)}
    {if $show_all_datespan}{* Gepl. Kosten (Extern) *}
        "{$i.reporting_rep_x_costs_planned|forcsv} {$date_prev}"{chr(9)}
    {/if}
    "{$i.reporting_rep_x_costs_planned|forcsv}"{chr(9)}
    {if $show_categories}
        {foreach item=fee_category from=$fee_categories}
            "extexp_cat_{$fee_category->id}"{chr(9)}
        {/foreach}
        "extexp_sum"{chr(9)}
        "extexp_no_sum"{chr(9)}
    {/if}
{/if}
{if $has_right_costs}
    {if $show_all_datespan}{* Istkosten *}
        "{$i.reporting_rep_actual_costs|forcsv} {$date_prev}"{chr(9)}
    {/if}
    "{$i.reporting_rep_actual_costs|forcsv}"{chr(9)}
{/if}
{if $has_right_costs && $show_fees_diff}
    {if $show_all_datespan}{* Kosten Diff. *}
        "{$i.reporting_rep_cost_diff|forcsv} {$date_prev}"{chr(9)}
    {/if}
    "{$i.reporting_rep_cost_diff|forcsv}"{chr(9)}
    {if $show_all_datespan}{* Kosten Diff. *}
        "{$i.reporting_rep_cost_diff|forcsv} II {$date_prev}"{chr(9)}
    {/if}
    "{$i.reporting_rep_cost_diff|forcsv} II"{chr(9)}
{/if}
{if $show_hours}
    {if $show_all_datespan}
        "{$i.reporting_rep_fees_hours|forcsv} {$date_prev}"{chr(9)}{* Sollstunden Honorar *}
    {/if}
    "{$i.reporting_rep_fees_hours|forcsv}"{chr(9)}{* Sollstunden Honorar *}
    {if $show_all_datespan}
        "{$i.reporting_rep_budget_hours|forcsv} {$date_prev}"{chr(9)}{* Sollstunden Budget *}
    {/if}
    "{$i.reporting_rep_budget_hours|forcsv}"{chr(9)}{* Sollstunden Budget *}
    {if $show_all_datespan}
        "{$i.reporting_rep_fee_hours|forcsv} {$date_prev}"{chr(9)}{* Sollstunden - Double budget_plan_hours for old compatibility reasons *}
    {/if}
    "{$i.reporting_rep_fee_hours|forcsv}"{chr(9)}{* Sollstunden - Double budget_plan_hours for old compatibility reasons *}
    {if $show_all_datespan}
        "{$i.reporting_rep_total_hours|forcsv} {$date_prev}"{chr(9)}{* Iststunden *}
    {/if}
    "{$i.reporting_rep_total_hours|forcsv}"{chr(9)}{* Iststunden *}
    {if $show_calcexp}{* Aufwand - Abgerechnete Stunden *}
        {if $show_all_datespan}
            "{$i.reporting_rep_x_calcexp_hours_deducted|forcsv} {$date_prev}"{chr(9)}{*Abgerechnete Stunden *}
        {/if}
        "{$i.reporting_rep_x_calcexp_hours_deducted|forcsv}"{chr(9)}{*Abgerechnete Stunden *}
    {/if}
{/if}
{if $show_all_datespan}{* Fertigstellungsgrad *}
    "{$i.reporting_rep_completion_level|forcsv} {$date_prev} %"{chr(9)}
{/if}
"{$i.reporting_rep_completion_level|forcsv} %"{chr(9)}
{if $has_right_costs}
    {if $show_all_datespan}{* Gesamte erbrachte Leistung *}
        "{if $deduct_hon_decr_costs}{$i.reporting_rep_fee_internal_completed|forcsv}{else}{$i.reporting_rep_fee_internal_completed_all|forcsv}{/if} {$date_prev}"{chr(9)}
    {/if}
    "{if $deduct_hon_decr_costs}{$i.reporting_rep_fee_internal_completed|forcsv}{else}{$i.reporting_rep_fee_internal_completed_all|forcsv}{/if}"{chr(9)}
    "{if $deduct_hon_decr_costs}{$i.reporting_rep_fee_internal_completed_diff|forcsv}{else}{$i.reporting_rep_fee_internal_completed_all_diff|forcsv}{/if} {$date_prev}"{chr(9)}{* Gesamtergebnis *}
    "{if $deduct_hon_decr_costs}{$i.reporting_rep_fee_internal_completed_diff|forcsv}{else}{$i.reporting_rep_fee_internal_completed_all_diff|forcsv}{/if} {$date_main}"{chr(9)}
    "{$i.reporting_rep_x_prognosis_profit_loss|forcsv} {$date_prev}"{chr(9)}{* Prognose Erfolg / Verlust *}
    "{$i.reporting_rep_x_prognosis_profit_loss|forcsv} {$date_main}"{chr(9)}
{/if}
{if $has_right_costs && ($show_budget || $show_budget_completed) && $show_fees_diff}
    {if $show_all_datespan}
        "{$i.reporting_rep_budget_costs_s|forcsv} {$i.reporting_rep_cost_diff|forcsv} {$date_prev}"{chr(9)}
    {/if}
    "{$i.reporting_rep_budget_costs_s|forcsv} {$i.reporting_rep_cost_diff|forcsv}"{chr(9)}
{/if}
{if $has_right_costs && $show_budget_completed}
    {if $show_all_datespan}
        "{$i.reporting_rep_budget_costs_s|forcsv} {$i.reporting_rep_fee_internal_completed|forcsv} {$date_prev}"{chr(9)}
    {/if}
    "{$i.reporting_rep_budget_costs_s|forcsv} {$i.reporting_rep_fee_internal_completed|forcsv}"{chr(9)}
    "{$i.reporting_rep_budget_costs_s|forcsv} {$i.reporting_rep_fee_internal_completed_diff|forcsv} {$date_prev}"{chr(9)}
    "{$i.reporting_rep_budget_costs_s|forcsv} {$i.reporting_rep_fee_internal_completed_diff|forcsv} {$date_main}"{chr(9)}
    "{$i.reporting_rep_budget_costs_s|forcsv} {$i.reporting_rep_x_prognosis_profit_loss|forcsv} {$date_prev}"{chr(9)}
    "{$i.reporting_rep_budget_costs_s|forcsv} {$i.reporting_rep_x_prognosis_profit_loss|forcsv} {$date_main}"{chr(9)}
{/if}
{if $has_right_costs}
    {if $show_all_datespan}{* Arbeitsvorrat *}
        "{$i.reporting_rep_work_in_hand|forcsv} {$date_prev}"{chr(9)}
    {/if}
    "{$i.reporting_rep_work_in_hand|forcsv} {$date_main}"{chr(9)}
{/if}
{if $has_right_costs && $show_fees}
    {if $show_all_datespan}{* Honorar gestellt *}
        "{$i.reporting_rep_x_sum_fee_invoiced|forcsv} < {$date_prev}"{chr(9)}
    {/if}
    "{$i.reporting_rep_x_sum_fee_invoiced|forcsv} < {$date_main}"{chr(9)}
    {if $show_feehist}
        {if $show_all_datespan}
            "{$i.reporting_rep_x_sum_fee_invoiced} > {$date_prev}"{chr(9)}
        {/if}
        "{$i.reporting_rep_x_sum_fee_invoiced} > {$date_main}"{chr(9)}
    {/if}
    {if $show_fees_finally_invoiced}
        {if $show_all_datespan}
            "{$i.reporting_rep_x_sum_fee_finally_invoiced|forcsv} < {$date_prev}"{chr(9)}
        {/if}
        "{$i.reporting_rep_x_sum_fee_finally_invoiced|forcsv} < {$date_main}"{chr(9)}
        {if $show_all_datespan}
            "{$i.reporting_rep_x_sum_fee_finally_invoiced_not|forcsv} < {$date_prev}"{chr(9)}
        {/if}
        "{$i.reporting_rep_x_sum_fee_finally_invoiced_not|forcsv} < {$date_main}"{chr(9)}
    {/if}
    {if $show_feehist}{* Honorar geplant *}
        {if $show_all_datespan}
            "{$i.reporting_rep_x_sum_fee_planned} < {$date_prev}"{chr(9)}
        {/if}
        "{$i.reporting_rep_x_sum_fee_planned} < {$date_main}"{chr(9)}
    {/if}
    {if $show_all_datespan}
        "{$i.reporting_rep_x_sum_fee_planned|forcsv} > {$date_prev}"{chr(9)}
    {/if}
    "{$i.reporting_rep_x_sum_fee_planned|forcsv} > {$date_main}"{chr(9)}
    {if $show_all_datespan}{* Honorar bezahlt *}
        "{$i.reporting_rep_x_sum_fee_done|forcsv} < {$date_prev}"{chr(9)}
    {/if}
    "{$i.reporting_rep_x_sum_fee_done|forcsv} < {$date_main}"{chr(9)}
    {if $show_feehist}
        {if $show_all_datespan}
            "{$i.reporting_rep_x_sum_fee_done} > {$date_prev}"{chr(9)}
        {/if}
        "{$i.reporting_rep_x_sum_fee_done} > {$date_main}"{chr(9)}
        {if $show_all_datespan}{* Honorar Abzug *}
            "{$i.reporting_rep_x_sum_fee_deduction|forcsv} < {$date_prev}"{chr(9)}
        {/if}
        "{$i.reporting_rep_x_sum_fee_deduction|forcsv} < {$date_main}"{chr(9)}
    {/if}
    {if $show_all_datespan}{* Honorar offen *}
        "{$i.reporting_rep_x_sum_fee_open|forcsv} < {$date_prev}"{chr(9)}
    {/if}
    "{$i.reporting_rep_x_sum_fee_open|forcsv} < {$date_main}"{chr(9)}
    {if $show_feehist}
        {if $show_all_datespan}
            "{$i.reporting_rep_x_sum_fee_open} > {$date_prev}"{chr(9)}
        {/if}
        "{$i.reporting_rep_x_sum_fee_open} > {$date_main}"{chr(9)}
    {/if}
    {if $show_all_datespan}{* Angefangene Arbeiten *}
        "{$i.reporting_rep_work_in_progress|forcsv} {$date_prev}"{chr(9)}
    {/if}
    "{$i.reporting_rep_work_in_progress|forcsv} {$date_main}"{chr(9)}
    {if $show_fees_to_remit}
        {if $show_all_datespan}
            "{$i.reporting_rep_x_fee_value_not_remited|forcsv} {$date_prev}"{chr(9)}
        {/if}
        "{$i.reporting_rep_x_fee_value_not_remited|forcsv} {$date_main}"{chr(9)}
        {if $show_all_datespan}
            "{$i.reporting_rep_x_fee_value_to_remit|forcsv} {$date_prev}"{chr(9)}
        {/if}
        "{$i.reporting_rep_x_fee_value_to_remit|forcsv} {$date_main}"{chr(9)}
    {/if}
    {if $show_actualcosts_comp}
        "{$i.reporting_rep_times_costs_in_comparison|forcsv}"{chr(9)}
        "{$i.reporting_rep_travels_costs_in_comparison|forcsv}"{chr(9)}
        "{$i.reporting_rep_extras_costs_in_comparison|forcsv}"{chr(9)}
        "{$i.reporting_rep_externalexpenses_costs_in_comparison|forcsv}"{chr(9)}
        "{$i.reporting_rep_total_costs_in_comparison|forcsv}"{chr(9)}
    {/if}
    {if $show_categories}
        {foreach item=fee_category from=$fee_categories}
            "fee_cat_{$fee_category->id}"{chr(9)}
        {/foreach}
        "fee_sum"{chr(9)}
        "fee_no_sum"{chr(9)}
    {/if}
{/if}
{if $show_dates}
    "{$i.reporting_rep_last_times|forcsv}"{chr(9)}
    "{$i.reporting_rep_last_completion_level|forcsv}"{chr(9)}
{/if}
{if $show_calcexp}
    "{$i.reporting_rep_is_calc_from_expenses|forcsv}"{chr(9)}
    {if $show_project_details}
        "{$i.reporting_rep_times_rate|forcsv}"{chr(9)}
        "{$i.reporting_rep_areas_rate|forcsv}"{chr(9)}
        "{$i.reporting_rep_travels_rate|forcsv}"{chr(9)}
        "{$i.reporting_rep_extras_rate|forcsv}"{chr(9)}
    {/if}
    {* ---- Datum ---- ---- ---- ---- *}
    {if $show_all_datespan}
        "{$i.reporting_calcexp_type_date|forcsv} {$date_prev}"{chr(9)}
    {/if}
    "{$i.reporting_calcexp_type_date|forcsv}"{chr(9)}
    {if $show_all_datespan}
        "{$i.reporting_calcexp_loc_date|forcsv} {$date_prev}"{chr(9)}
    {/if}
    "{$i.reporting_calcexp_loc_date|forcsv}"{chr(9)}
    {if $show_all_datespan}
        "{$i.reporting_fees_invoiced_lastdate|forcsv} {$date_prev}"{chr(9)}
    {/if}
    "{$i.reporting_fees_invoiced_lastdate|forcsv}"{chr(9)}
    {if $has_right_costs}
        {* ---- Aufwand ---- ---- ---- ---- *}
        {if !$show_calcexp_woa}
            "{$i.reporting_calcexp_typeproj_open|forcsv}"{chr(9)}
        {else}
            "{$i.reporting_calcexp_typewoa_open|forcsv}"{chr(9)}
        {/if}
        {if !$show_calcexp_woa}
            {if $show_all_datespan}
                "{$i.reporting_calcexp_typeproj_open|forcsv} {$date_prev}"{chr(9)}
            {/if}
            "{$i.reporting_calcexp_typeproj_open|forcsv} {$date_main}"{chr(9)}
            {if $show_all_datespan}
                "{$i.reporting_calcexp_typeproj_done|forcsv} {$date_prev}"{chr(9)}
            {/if}
            "{$i.reporting_calcexp_typeproj_done|forcsv}"{chr(9)}
        {else}
            {if $show_all_datespan}
                "{$i.reporting_calcexp_typewoa_open|forcsv} {$date_prev}"{chr(9)}
            {/if}
            "{$i.reporting_calcexp_typewoa_open|forcsv} {$date_main}"{chr(9)}
            {if $show_all_datespan}
                "{$i.reporting_calcexp_typewoa_done|forcsv} {$date_prev}"{chr(9)}
            {/if}
            "{$i.reporting_calcexp_typewoa_done|forcsv}"{chr(9)}
        {/if}
        {* ---- Honorarabr. ---- ---- ---- ---- *}
        {if $show_all_datespan}
            "{$i.reporting_project_no_estim_offers|forcsv} {$date_prev}"{chr(9)}
        {/if}
        "{$i.reporting_project_no_estim_offers|forcsv}"{chr(9)}
        {if $show_all_datespan}
            "{$i.reporting_calcexp_loc_done|forcsv} {$date_prev}"{chr(9)}
        {/if}
        "{$i.reporting_calcexp_loc_done|forcsv}"{chr(9)}
        {* ---- Gesamt ---- ---- ---- ---- *}
        {if $show_all_datespan}
            "{$i.reporting_calcexp_done|forcsv} {$date_prev}"{chr(9)}
        {/if}
        "{$i.reporting_calcexp_done|forcsv}"{chr(9)}
    {/if}
{/if}
{if $has_right_costs && $show_costcentres}
    {foreach item=cost_centre from=$cost_centres_list}
        {if $show_all_datespan}
            "cost_centre_fee_costs_{$cost_centre->id}_prev"{chr(9)}
        {/if}
        "cost_centre_fee_costs_{$cost_centre->id}"{chr(9)}
        {if $show_all_datespan}
            "cost_centre_actual_costs_{$cost_centre->id}_prev"{chr(9)}
        {/if}
        "cost_centre_actual_costs_{$cost_centre->id}"{chr(9)}
    {/foreach}
    {if $cost_centre@total>=1}
        {* Not in assigned cost centres *}
        {if $show_all_datespan}
            "cost_centre_fee_costs_none_prev"{chr(9)}
        {/if}
        "cost_centre_fee_costs_none"{chr(9)}
        {if $show_all_datespan}
            "cost_centre_actual_costs_none_prev"{chr(9)}
        {/if}
        "cost_centre_actual_costs_none"{chr(9)}
    {/if}
{/if}
{if $has_right_costs && $show_offers}
    {if $show_all_datespan}
        "{$i.reporting_rep_offers_offered|forcsv} {$date_prev}"{chr(9)}
    {/if}
    "{$i.reporting_rep_offers_offered|forcsv}"{chr(9)}
    {if $show_all_datespan}
        "{$i.reporting_rep_offers_ordered|forcsv} {$date_prev}"{chr(9)}
    {/if}
    "{$i.reporting_rep_offers_ordered|forcsv}"{chr(9)}
{/if}
{/strip}