| # | Item | Unit | Book qty | Counted qty | Variance | Unit cost | Value |
|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $line->item?->name ?? '—' }} | {{ $line->item?->unit ?? '—' }} | {{ $fmt($line->book_qty) }} | {{ $line->counted_qty === null ? '—' : $fmt($line->counted_qty) }} | {{ $line->variance() === null ? '—' : \App\Support\Fmt::signed($line->variance()) }} | {{ $money($line->item?->weighted_avg_cost ?? 0) }} | {{ $money($valueAt($line)) }} |
| Totals | {{ $fmt($count->lines->sum('book_qty')) }} | {{ $fmt($count->lines->sum(fn ($l) => (float) ($l->counted_qty ?? 0))) }} | {{ \App\Support\Fmt::signed($count->lines->sum(fn ($l) => $l->variance() ?? 0)) }} | {{ $money($count->lines->sum($valueAt)) }} | |||
Differences posted on approval become Adjustment movements referencing {{ $count->stock_take_no }}.
@endif