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(aggregatedPurchasedOn.replace(/\-/g, '/')))) %> <% translatedStatus = 'cs_'+status %> <% if (gateway == 'Quote' && status == 'pending'){ %> <% translatedStatus = 'New quote' %> <% } %> <% if (gateway == 'Quote' && status == 'not_verified'){ %> <% translatedStatus = 'Quote Signed (Signature only 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 if(status === 'partial') {%> <%= _.isUndefined(i18n[''+translatedStatus+''])?status:i18n[''+translatedStatus+''] %> <% if (typeof partial_notification_date !== 'undefined' && partial_notification_date && partial_notification_date !== null) { %>

<%= !_.isUndefined(i18n['Last request sent on'])?i18n['Last request sent on']:'Last request sent on' %>: <%= $.datepicker.formatDate('dd-M-yy', new Date(Date.parse(partial_notification_date.replace(/\-/g, '/')))) %>

<% } %> <% } else if(status === 'error') {%> <%= _.isUndefined(i18n[''+translatedStatus+''])?status:i18n[''+translatedStatus+''] %> <% } else {%> <%= _.isUndefined(i18n[''+translatedStatus+''])?status:i18n[''+translatedStatus+''] %> <% } %> <%= total_products %> <%= accounting.formatMoney(total, moneyFormat) %> <% if(status === 'partial') { %> (<%= partial_paid_amount %>) <% } %> <%= _.isNull(shipping_price) ? '--' : accounting.formatMoney(shipping_price, moneyFormat) %>

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

<% if(_.isNull(recurring_id)) {%> <% if (shipping_service !== "pickup") { %>

<%= _.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) || shipping_tracking_id == '') ? addButton : editButton %> ] <% if(!_.isNull(shipping_tracking_id) && shipping_tracking_id != '') { %>

<%= _.isUndefined(i18n['Where is my order?']) ? 'Where is my order?':i18n['Where is my order?'] %>

<% } %> <% } %>

<% } else { %> <% if (status == 'completed' || status == 'shipped') { %> <% if (is_pickup_notification_sent == '1') { %> <%= $.datepicker.formatDate('dd-M-yy', new Date(Date.parse(pickup_notification_sent_on.replace(/\-/g, '/')))) %> <%= _.isUndefined(i18n['Notify again']) ? 'Notify again':i18n['Notify again'] %> <% } else { %> <%= _.isUndefined(i18n['Ready for pickup']) ? 'Ready for pickup':i18n['Ready for pickup'] %> <% } %> <% } %> <% } %> <% } %>
<%= _.isUndefined(i18n['view']) ? 'view':i18n['view'] %> <% if(useInvoice == 'enabled') { %> <% if(_.isNull(recurring_id)) { %> <%= _.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((status == 'completed' || status == 'shipped') && !_.isNull(shipping_availability_days) && !_.isEmpty(shipping_availability_days)) { %> <% } %> <% if(!_.isNull(shipping_label_link) || !_.isEmpty(shipping_label_link)) { %> <% shippingLabelEl = '' %> <% shippingLabelLink = shipping_label_link %> <% } else { %> <% shippingLabelEl = 'hidden' %> <% shippingLabelLink = 'javascript:;' %> <% } %> <%= _.isUndefined(i18n['Download shipping label']) ? 'Download shipping label':i18n['Download shipping label'] %> <% if((status == 'completed' || status == 'shipped') && !_.isNull(shipping_service_info)) { %> <% shipmentServiceInfo = JSON.parse(shipping_service_info) %> <% if (typeof shipmentServiceInfo.shipment_reference !== 'undefined') { %> <% } %> <% } %> <% } %> <% } %> <% if(!_.isNull(real_order_id)) { %> <%= _.isUndefined(i18n['Imported']) ? 'Imported':i18n['Imported'] %> <% } else if(!_.isNull(recurring_id)) { %> <%= _.isUndefined(i18n['Recurring']) ? 'Recurring':i18n['Recurring'] %> <% } else if(!_.isNull(order_subtype) && order_subtype !== '') { %> <%= _.isUndefined(i18n[order_subtype]) ? order_subtype :i18n[order_subtype] %> <% } else { %> <%= _.isUndefined(i18n['Regular']) ? 'Regular':i18n['Regular'] %> <% } %>