{t}Company{/t}: |
{$cpnInfo.cpn_name|wash|default:" "} |
{t}Address{/t}: |
{$cpnInfo.cpn_address|wash|default:" "} |
{t}Address 2{/t}: |
{$cpnInfo.cpn_address2|wash|default:" "} |
{t}Location{/t}: |
{$cpnInfo.full_location|wash|default:" "} |
{t}Country{/t}: |
{$cpnInfo.ctr_name|wash|default:" "} |
{t}Category{/t}: |
{$cpnInfo.ccat_title|wash|default:" "} |
{t}Tax number{/t}: |
{$cpnInfo.cpn_taxnr|wash|default:" "} |
{t}Default term of payment{/t}: |
{$cpnInfo.cpn_defaultpayterm|wash|default:" "} |
{t}Phone{/t}: |
{$cpnInfo.cpn_phone|wash|default:" "} |
{t}Fax{/t}: |
{$cpnInfo.cpn_fax|wash|default:" "} |
{t}Url{/t}: |
{if strlen($cpnInfo.cpn_url)}{$cpnInfo.cpn_url|wash|phpaga_urlmodifier}{else} {/if} |
{t}Email{/t}: |
{if strlen($cpnInfo.cpn_email)}{$cpnInfo.cpn_email|wash}{else} {/if} |
{t}Record owner{/t}: |
{$cpnInfo.owner_pe_person|wash|default:" "} |
{if ($opcatresult && isset($opcats) && (count($opcats) > 0))}
{t}Task categories{/t} |
[ {if $opcat_byproject == 0}{t}Details{/t}{else}{t}Overall{/t}{/if} ] |
{if ($opcat_byproject == 0)}
{section name=opcdet loop=$opcats}
{$opcats[opcdet].opcat_title|wash}: |
{$opcats[opcdet].opcat_duration|phpaga_minutes2duration} |
{/section}
|
{t}Total duration{/t}: |
{$TOTAL_DURATION|phpaga_minutes2duration} |
|
 |
{else}
|
{foreach item=prj from=$opcats.projects}
{$prj.prj_title|wash} |
{/foreach}
|
{foreach key=opckey item=opc from=$opcats.opcats}
{$opc.opcat_title|wash} |
{foreach item=row from=$opcats.rows[$opckey]}
{if strlen($row.opcat_duration)}{$row.opcat_duration|phpaga_minutes2duration}{else} {/if} |
{/foreach}
{$opc.duration|phpaga_minutes2duration} |
{/foreach}
|
{foreach item=prj from=$opcats.projects}
{$prj.duration|phpaga_minutes2duration} |
{/foreach}
{$TOTAL_DURATION|phpaga_minutes2duration} |
{/if}
|
{/if}
{if (isset($cpnInfo.projects) && is_array($cpnInfo.projects) && (count($cpnInfo.projects) > 0))}
{t}Projects{/t} |
{t}Title{/t} |
{t}Status{/t} |
{t}Start date{/t} |
{t}Projected end{/t} |
{t}End date{/t} |
{t}Category{/t} |
{t}Hours{/t} |
{t}Actions{/t} |
{section name=prjs loop=$cpnInfo.projects}
{$cpnInfo.projects[prjs].prj_title|wash} |
{$cpnInfo.projects[prjs].prjstat_title|wash} |
{$cpnInfo.projects[prjs].prj_startdate|wash|date_format:$smarty.const.PHPAGA_DATEFORMAT_SHORT} |
{if strlen($cpnInfo.projects[prjs].prj_estimatedend)}
{$cpnInfo.projects[prjs].prj_estimatedend|wash|date_format:$smarty.const.PHPAGA_DATEFORMAT_SHORT}{else} {/if}
|
{if strlen($cpnInfo.projects[prjs].prj_enddate)}{$cpnInfo.projects[prjs].prj_enddate|wash|date_format:$smarty.const.PHPAGA_DATEFORMAT_SHORT}{else} {/if} |
{$cpnInfo.projects[prjs].prjcat_title|wash} |
{$cpnInfo.projects[prjs].prj_duration|phpaga_minutes2duration} |
{strip}
{/strip}
|
{/section}
|
{/if}
{if (isset($cpnInfo.billing_summary) && is_array($cpnInfo.billing_summary))}
{if (isset($cpnInfo.billing_summary.issued) && is_array($cpnInfo.billing_summary.issued) && (count(($cpnInfo.billing_summary.issued)) > 0))}
{t}Invoices issued{/t} |
{t}Nr. of invoices{/t} |
{t}Time frame{/t} |
{t}Total amount{/t} |
{t}Currency{/t} |
{section name=isum loop=$cpnInfo.billing_summary.issued}
{$cpnInfo.billing_summary.issued[isum].count|default:" "} |
{$cpnInfo.billing_summary.issued[isum].min_date|wash|default:" "} - {$cpnInfo.billing_summary.issued[isum].max_date|default:" "} |
{$cpnInfo.billing_summary.issued[isum].amount|phpaga_formatamount|default:" "} |
{$cpnInfo.billing_summary.issued[isum].curr_name|wash|default:" "} |
{/section}
|
{/if}
{if (isset($cpnInfo.billing_summary.outstanding) && is_array($cpnInfo.billing_summary.outstanding) && (count(($cpnInfo.billing_summary.outstanding)) > 0))}
{t}Outstanding invoices{/t} |
{t}Nr. of invoices{/t} |
{t}Time frame{/t} |
{t}Total amount{/t} |
{t}Currency{/t} |
{section name=isum loop=$cpnInfo.billing_summary.outstanding}
{$cpnInfo.billing_summary.outstanding[isum].count|default:" "} |
{$cpnInfo.billing_summary.outstanding[isum].min_date|wash|default:" "} - {$cpnInfo.billing_summary.outstanding[isum].max_date|default:" "} |
{$cpnInfo.billing_summary.outstanding[isum].amount|phpaga_formatamount|default:" "} |
{$cpnInfo.billing_summary.outstanding[isum].curr_name|wash|default:" "} |
{/section}
|
{/if}
{/if}
{if (isset($cpnInfo.bills) && is_array($cpnInfo.bills) && (count($cpnInfo.bills) > 0))}
{t}Invoices{/t} |
|
{/if}
{if (isset($cpnInfo.quotations) && is_array($cpnInfo.quotations) && (count($cpnInfo.quotations) > 0))}
{t}Quotations{/t} |
|
{/if}
{if (isset($persons) && is_array($persons) && (count($persons) > 0))}
{t}Employees{/t} |
{t}Name{/t} |
{t}Address{/t} |
{t}City{/t} |
{t}Country{/t} |
{t}Work phone{/t}: |
{t}Email{/t} |
{section name=idx loop=$persons}
{$persons[idx].pe_person|wash} |
{$persons[idx].pe_address|wash|default:" "} |
{$persons[idx].pe_location|wash|default:" "} |
{$persons[idx].ctr_name|wash|default:" "} |
{$persons[idx].pe_phonework|wash|default:" "} |
{if (isset($persons[idx].pe_email) && strlen($persons[idx].pe_email))}{$persons[idx].pe_email|wash}{else} {/if} |
{/section}
|
{/if}