checked="checked"<% }%> title=""/> <%= id %> <%= _.isNull(billing_address_id) ? shipping_firstname+' '+shipping_lastname : billing_firstname+' '+billing_lastname %> <%= _.isNull(billing_address_id) ? shipping_email : billing_email%> <%= $.datepicker.formatDate('dd-M-yy', new Date(Date.parse(created_at.replace(/\-/g, '/')))) %> <% translatedStatus = 'cs_'+status %> <% if (gateway == 'Quote' && status == 'pending'){ %> <% translatedStatus = 'New quote' %> <% } %> <% if (gateway == 'Quote' && status == 'processing'){ %> <% translatedStatus = 'Quote Sent' %> <% } %> <% if (gateway == 'Quote' && status == 'canceled'){ %> <% translatedStatus = 'Lost opportunity' %> <% } %> <% if (status === 'refunded') { %> <%= _.isUndefined(i18n[''+translatedStatus+''])?status:i18n[''+translatedStatus+''] %> <% } else {%> <%= _.isUndefined(i18n[''+translatedStatus+''])?status:i18n[''+translatedStatus+''] %> <% } %> <%= total_products %> <%= total %> <%= _.isNull(shipping_price) ? '--' : shipping_price %>

<%= _.isNull(shipping_service) ? 'n/a' : shipping_service+( _.isNull(shipping_type) ? '' : ': '+shipping_type ) %>

<% if(_.isNull(recurring_id)) {%>

<%= _.isUndefined(i18n['Tracking ID']) ? 'Tracking ID':i18n['Tracking ID'] %>: <%= _.isNull(shipping_tracking_id) ? '' : shipping_tracking_id %> <% if (status == 'completed' || status == 'shipped') { %> <% addButton = 'add' %> <% editButton = 'edit' %> <% if (!_.isUndefined(i18n['add'])){ %> <% addButton = i18n['add'] %> <% } %> <% if (!_.isUndefined(i18n['edit'])){ %> <% editButton = i18n['edit'] %> <% } %> [ <%= _.isNull(shipping_tracking_id) ? addButton : editButton %> ] <% } %>

<% } %> <%= _.isUndefined(i18n['view']) ? 'view':i18n['view'] %> <% if(useInvoice == 'enabled') { %> <% if(_.isNull(recurring_id)) { %> Send / <%= _.isUndefined(i18n['View invoice']) ? 'View invoice':i18n['View invoice'] %> / <%= _.isUndefined(i18n['Download invoice']) ? 'Download invoice':i18n['Download invoice'] %> <%= _.isUndefined(i18n['View packing slip']) ? 'View packing slip':i18n['View packing slip'] %> / <%= _.isUndefined(i18n['Download packing slip']) ? 'Download packing slip':i18n['Download packing slip'] %> <% } %> <% } %> <% if(!_.isNull(real_order_id)) { %> <%= _.isUndefined(i18n['Imported']) ? 'Imported':i18n['Imported'] %> <% } else if(!_.isNull(recurring_id)) { %> <%= _.isUndefined(i18n['Recurring']) ? 'Recurring':i18n['Recurring'] %> <% } else { %> <%= _.isUndefined(i18n['Regular']) ? 'Regular':i18n['Regular'] %> <% } %>