% // Pass in a type of 'sales', 'purchases' or 'cases' %> <% var type = ob.type || 'sales' %> <% var types = ['sales', 'purchases', 'cases']; if (types.indexOf(ob.type) === -1) { throw new Error('The type must be one of ${types}'); } %> <% if (ob.isFetching) { %>
<%= ob.polyT('transactions.transactionsTable.headers.orderId') %> | <%= ob.polyT('transactions.transactionsTable.headers.date') %> | <% if (ob.type !== 'cases') { %><%= ob.polyT('transactions.transactionsTable.headers.listing') %> | <% } %> <% if (ob.type === 'sales') { %><%= ob.polyT('transactions.transactionsTable.headers.buyer') %> | <% } else { %><%= ob.polyT('transactions.transactionsTable.headers.vendor') %> | <% } %> <% if (ob.type === 'cases') { %><%= ob.polyT('transactions.transactionsTable.headers.buyer') %> | <% } %><%= ob.polyT('transactions.transactionsTable.headers.total') %> | <%= ob.polyT('transactions.transactionsTable.headers.status') %> |
---|