{{#main-content}}
{{#grid-header dropdownMenu=false clear-search=true}}
{{#link-to 'customer.list.advanced-query' data-rel="tooltip" title='Advanced Query'}} {{/link-to}}
{{/grid-header}}
{{!-- 1 ID 2 Name 3 Sales(3Yrs) 4 Comment 5 Application 6 Status 7 Added 8 Year 9 Country 10 State 11 City 12 MS 13 Region 14 Slspsn --}} {{#if tableOptions.showId}} {{sortable-th name='id' text='ID'}} {{/if}} {{#if tableOptions.showName}} {{/if}} {{#if tableOptions.showYtdSale}} {{sortable-th name='sumYtdSales' text='Sales(3Yrs)' style='min-width: 126px;'}} {{/if}} {{#if tableOptions.showIssue1}} {{/if}} {{#if tableOptions.showIssue2}} {{/if}} {{#if tableOptions.showIssue3}} {{/if}} {{#if tableOptions.showApplication}} {{#sortable-th name='application' style='min-width: 138px;'}} {{th-filter name='application' text='Application' label='Application Filter' options=model.applicationList value-field='id' text-field='name'}} {{/sortable-th}} {{/if}} {{#if tableOptions.showStatus}} {{#sortable-th name='status' style='min-width: 96px;'}} {{th-filter name='status' text='Status' label='Status Filter' options=model.statusList value-field='id' text-field='name'}} {{/sortable-th}} {{/if}} {{#if tableOptions.showDateAdded}} {{#sortable-th name='dateAdded' style='min-width: 96px;'}} {{th-filter name='dateAdded' text='Added' label='Added Filter' options=model.dateAddedList}} {{/sortable-th}} {{/if}} {{#if tableOptions.showYears}} {{#sortable-th name='year' style='min-width: 86px'}} {{th-filter name='year' text='Year' label='Year Filter' options=model.latestYearList}} {{/sortable-th}} {{/if}} {{#if tableOptions.showCountryCode}} {{/if}} {{#if tableOptions.showState}} {{/if}} {{#if tableOptions.showCity}} {{/if}} {{#if tableOptions.showMs}} {{#sortable-th name='ms' style='min-width: 74px;'}} {{th-filter name='ms' text='MS' label='MS Filter' options=model.msList}} {{/sortable-th}} {{/if}} {{#if tableOptions.showRegion}} {{#sortable-th name='region' text='Region' style='min-width: 100px;'}} {{th-filter name='region' text='Region' label='Region Filter' options=model.regionList}} {{/sortable-th}} {{/if}} {{#if tableOptions.showSalesperson}} {{#sortable-th name='salesperson' style='min-width: 100px;'}} {{th-filter name='salesperson' text='Slspsn' label='Salesperson Filter' options=model.salespersonList}} {{/sortable-th}} {{/if}} {{#each model.data as |it|}} {{#if tableOptions.showId}} {{/if}} {{#if tableOptions.showName}} {{/if}} {{#if tableOptions.showYtdSale}} {{/if}} {{#if tableOptions.showIssue1}} {{/if}} {{#if tableOptions.showIssue2}} {{/if}} {{#if tableOptions.showIssue3}} {{/if}} {{#if tableOptions.showApplication}} {{/if}} {{#if tableOptions.showStatus}} {{/if}} {{#if tableOptions.showDateAdded}} {{/if}} {{#if tableOptions.showYears}} {{/if}} {{#if tableOptions.showCountryCode}} {{/if}} {{#if tableOptions.showState}} {{/if}} {{#if tableOptions.showCity}} {{/if}} {{#if tableOptions.showMs}} {{/if}} {{#if tableOptions.showRegion}} {{/if}} {{#if tableOptions.showSalesperson}} {{/if}} {{#if it.expand}} {{/if}} {{/each}}
Name {{th-filter name='issue' text='Comment' label='Comment Filter' options=model.issueOptions}} Comment 2Comment 3 {{th-filter name='countryCode' text='Country' label='Country Filter' options=model.countryCodeList}} {{th-filter name='state' text='State' label='State Filter' options=model.stateList}} {{th-filter name='city' text='City' label='City Filter' options=model.cityList}} Settings
{{#link-to 'customer.show' it.id title='Show Customer'}} {{it.id}} {{/link-to}} {{it.name}} {{#if it.countYtdSales}} {{#if it.expand}} {{else}} {{/if}} {{/if}} {{number-us it.sumYtdSales}} {{#if it.issue1}}
{{issue-cell issue=it.issue1.issue}}
{{moment-format (if it.issue1.dateUpdated it.issue1.dateUpdated it.issue1.dateCreated) 'M/D/YYYY H:mm:ss'}} {{#link-to 'customer-issue.edit' it.issue1.id data-rel='tooltip' title='Edit Comment'}} {{/link-to}} {{/if}}
{{#if it.issue2}}
{{issue-cell issue=it.issue2.issue}}
{{moment-format (if it.issue2.dateUpdated it.issue2.dateUpdated it.issue2.dateCreated) 'M/D/YYYY H:mm:ss'}} {{#link-to 'customer-issue.edit' it.issue2.id class="blue" data-rel='tooltip' title='Edit Comment'}} {{/link-to}} {{/if}}
{{#if it.issue3}}
{{issue-cell issue=it.issue3.issue}}
{{moment-format (if it.issue3.dateUpdated it.issue3.dateUpdated it.issue3.dateCreated) 'M/D/YYYY H:mm:ss'}} {{#link-to 'customer-issue.edit' it.issue3.id class="blue" data-rel='tooltip' title='Edit Comment'}} {{/link-to}} {{/if}}
{{#each (str-split it.applications) as |aId|}} {{#each model.applicationList as |app|}} {{#if (eq aId app.id)}} {{customer-application/preview-btn model=app}} {{/if}} {{/each}} {{!option-text model.applicationList a 'id' 'name'}} {{/each}} {{it.statusText}} {{date-cell value=it.dateAdded format='YYYY'}} {{!-- {{#if (eq it.years.length 1)}} {{it.years.firstObject}} {{else if (gt it.years.length 1)}} {{it.years.firstObject}}-{{it.years.lastObject}} {{/if}} --}} {{it.year}} {{it.countryCode}} {{it.state}} {{it.city}} {{it.ms}} {{it.region}} {{it.salesperson}}
{{#each it.ytdSales as |yearSale|}} {{/each}}
Year Sales
{{yearSale.year}} {{number-us yearSale.sale}}
{{pagination-bar}}
{{outlet}} {{/main-content}}