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' %> <% } %> <%= _.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 ) %>

<%= _.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') { %> <%= _.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'] %> <% } %> <%= _.isNull(real_order_id) ? _.isUndefined(i18n['Yes']) ? 'Yes':i18n['Yes']: _.isUndefined(i18n['No']) ? 'No':i18n['No']%>