This commit is contained in:
@@ -89,7 +89,7 @@ onMounted(load);
|
||||
<h2 id="acquisitions-title">Acquisition history</h2>
|
||||
<p v-if="!acquisitions.length" class="state state--empty">No acquisitions recorded yet.</p>
|
||||
<ul v-else>
|
||||
<li v-for="acquisition in acquisitions" :key="acquisition.id">
|
||||
<li v-for="acquisition in acquisitions" :key="acquisition.id" :aria-label="`Acquisition for inventory item ${acquisition.inventoryItemId}: ${acquisition.date ?? 'undated'}, ${acquisition.method}, cost $${(acquisition.costMinor / 100).toFixed(2)}, basis $${((acquisition.costBasisMinor ?? 0) / 100).toFixed(2)}`">
|
||||
<strong>{{ acquisition.inventoryItemId }}</strong>
|
||||
· {{ acquisition.date ?? "Undated" }} · {{ acquisition.method }} ·
|
||||
Cost ${{ (acquisition.costMinor / 100).toFixed(2) }} · Basis ${{ ((acquisition.costBasisMinor ?? 0) / 100).toFixed(2) }}
|
||||
|
||||
@@ -97,7 +97,7 @@ onMounted(load);
|
||||
<h2 id="sales-title">Sale history</h2>
|
||||
<p v-if="!sales.length" class="state state--empty">No sales recorded yet.</p>
|
||||
<ul v-else>
|
||||
<li v-for="sale in sales" :key="sale.id">
|
||||
<li v-for="sale in sales" :key="sale.id" :aria-label="`Sale for ${sale.productName ?? sale.saleItem.inventoryItemId}: ${sale.saleDate}, ${sale.status}, sold $${(sale.soldPriceMinor / 100).toFixed(2)}, profit $${(sale.profitMinor / 100).toFixed(2)}`">
|
||||
<strong>{{ sale.productName ?? sale.saleItem.inventoryItemId }}</strong>
|
||||
· {{ sale.saleDate }} · {{ sale.status }} · Sold ${{ (sale.soldPriceMinor / 100).toFixed(2) }}
|
||||
· Profit ${{ (sale.profitMinor / 100).toFixed(2) }}
|
||||
|
||||
Reference in New Issue
Block a user