InvoiceLineItem
Domain · InvoiceTable row for a single invoice line item with description, quantity, unit price, and total.
| # | Description | Qty | Unit Price | Total |
|---|---|---|---|---|
| 1 | Web Application Development | 1 | ₺45,000 | ₺45,000 |
| 2 | UI/UX Design Services | 40 | ₺750 | ₺30,000 |
<% lineItems.forEach(function(item, i) { %>
<%- include('../../../modules/domain/invoice/InvoiceLineItem', { item: item, index: i, currency: 'TRY' }) %>
<% }); %>
<%
var _item = locals.item || {};
var _currency = locals.currency || 'TRY';
var _index = locals.index || 0;
var _isEven = _index % 2 === 0;
var symbol = _currency === 'TRY' ? '₺' : _currency === 'USD' ? '$' : _currency === 'EUR' ? '€' : _currency;
%>
<tr class="<%= _isEven ? 'bg-surface-base' : 'bg-surface-raised' %>">
<td class="px-4 py-2.5 text-xs text-text-secondary w-8"><%= _index + 1 %></td>
<td class="px-4 py-2.5 text-sm text-text-primary"><%= _item.description || '—' %></td>
<% if (_item.unit) { %>
<td class="px-4 py-2.5 text-xs text-text-secondary text-center"><%= _item.unit %></td>
<% } %>
<td class="px-4 py-2.5 text-sm text-text-primary text-center"><%= _item.quantity || 1 %></td>
<td class="px-4 py-2.5 text-sm text-text-primary text-right font-mono"><%= symbol %><%= (_item.unitPrice || 0).toLocaleString('tr-TR') %></td>
<td class="px-4 py-2.5 text-sm font-semibold text-text-primary text-right font-mono"><%= symbol %><%= (_item.total || 0).toLocaleString('tr-TR') %></td>
</tr>