<% if(!_.isEmpty(opportunityData)){ %> <% if(newOpportunityRow === true) { %> <% opportunityPercentage = '' %> <% if(opportunityData.get('opportunity_stage_id') != 0 && opportunityData.get('opportunity_stage_id') != '100') { %> <% opportunityPercentage = ' '+opportunityData.get('opportunity_stage_id')+ '%' %> <% } %> <%= opportunityData.get('opportunity_name') %> <%= expectedCloseDate %> <%= opportunityStages[opportunityData.get('opportunity_stage_id')] + opportunityPercentage %> <%= currencySymbol + parseInt(opportunityData.get('opportunity_value'), 10) %>
<% } %> <% if(!_.isEmpty(opportunityData.get('quote_id'))) { %> <%= opportunityData.get('title') %> <% createdAt = moment(opportunityData.get('created_at'), 'YYYY-MM-DD HH:mm:ss').format('DD MMMM YYYY') %> <%= (createdAt !== 'Invalid date') ? createdAt : '' %> <% expiredAt = moment(opportunityData.get('expired_at'), 'YYYY-MM-DD HH:mm:ss').format('DD MMMM YYYY') %> <%= (expiredAt !== 'Invalid date') ? expiredAt : '' %> <%= opportunityData.get('status') %> <%= accounting.formatMoney(opportunityData.get('cartTotal'), JSON.parse(moneyFormat)) %> <%= opportunityData.get('quoteOwnerName') %> <% } %> <% } %>