I have updated the code below. **Specific Change:** I modified the `stockSummary` computed property. Instead of adding up the quantity (`log.qty`), it now simply increments the counter by 1 for every row found. * **Old Logic:** `totalIn += Number(log.qty)` (Sum of Cartons) * **New Logic:** `totalIn++` (Count of Rows/Transactions) Here is the complete updated file: ```html
Consolidating Data...
PO, Delivery & Stock Integration
Total PO
Pending Delivery
Total PO - Delivery Logs
Total Delivery Trips
Stock Logs (Count)
Period: {{ filters.startDate }} to {{ filters.endDate }}
Printed on: {{ new Date().toLocaleString() }}
| Date | PO ID | Customer | Channel | Sale Rep | Notes |
|---|---|---|---|---|---|
| {{ po.date }} |
{{ po.customerCode }}
{{ po.id }}
|
{{ po.shopName }}
{{ po.customerName }}
URGENT
|
{{ po.channel }} | {{ po.salesRep }} | {{ po.note }} |
| No POs found for this period. | |||||
| Date | Type | Product | Qty | Reference/Sale | Amount |
|---|---|---|---|---|---|
| {{ formatDate(log.date) }} | IN OUT | {{ log.product }} | {{ log.qty }} | {{ log.saleName || '-' }} | {{ log.totalAmount ? '$' + formatMoney(log.totalAmount) : '-' }} |
| No stock logs found. | |||||