Skip to content

Commit 3679983

Browse files
committed
fix: missing product name and number during PDF print
1 parent 0abe28b commit 3679983

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Presentation/ASPNET/FrontEnd/Pages/PurchaseOrders/PurchaseOrderPdf.cshtml

+5-5
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@
8282
</thead>
8383
<tbody>
8484
<tr v-for="item in state.items" :key="item.productNumber">
85-
<td>{{ item.productNumber }}</td>
86-
<td>{{ item.productName }}</td>
87-
<td>{{ item.unitPrice }}</td>
88-
<td>{{ item.quantity }}</td>
89-
<td>{{ item.total }}</td>
85+
<td>{{ item?.product?.number }}</td>
86+
<td>{{ item?.product?.name }}</td>
87+
<td>{{ item?.unitPrice }}</td>
88+
<td>{{ item?.quantity }}</td>
89+
<td>{{ item?.total }}</td>
9090
</tr>
9191
</tbody>
9292
</table>

Presentation/ASPNET/FrontEnd/Pages/SalesOrders/SalesOrderPdf.cshtml

+5-5
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@
8282
</thead>
8383
<tbody>
8484
<tr v-for="item in state.items" :key="item.productNumber">
85-
<td>{{ item.productNumber }}</td>
86-
<td>{{ item.productName }}</td>
87-
<td>{{ item.unitPrice }}</td>
88-
<td>{{ item.quantity }}</td>
89-
<td>{{ item.total }}</td>
85+
<td>{{ item?.product?.number }}</td>
86+
<td>{{ item?.product?.name }}</td>
87+
<td>{{ item?.unitPrice }}</td>
88+
<td>{{ item?.quantity }}</td>
89+
<td>{{ item?.total }}</td>
9090
</tr>
9191
</tbody>
9292
</table>

0 commit comments

Comments
 (0)