@extends('layouts.app') @section('title', 'Restore Stock for Past Sales') @section('content')
Mark sales as "Record Only" and restore wrongly deducted stock back to inventory.
{{ session('success') }}
{{ session('error') }}
Use this tool to fix sales that were recorded for reference but shouldn't have deducted stock (e.g., sales already processed in Dashboard/Marketing). This will restore the stock back to inventory and mark the sale as "Record Only".
These sales have stock movements recorded. Select ones that should be "Record Only".
| Invoice | Date | Customer | Total | Items | Notes | Status | Action |
|---|---|---|---|---|---|---|---|
| {{ $sale->invoice_number }} | {{ \Carbon\Carbon::parse($sale->invoice_date)->format('d M Y') }} | {{ $sale->customer_name ?? 'N/A' }} | RM {{ number_format($sale->total, 2) }} |
{{ $sale->items_count }} items
{{ $sale->total_qty }} units |
{{ $sale->notes ?? '-' }} | @if($sale->record_only) Record Only @elseif($sale->stock_restored) Stock Restored @else Stock Deducted @endif | @if(!$sale->record_only && !$sale->stock_restored) @else - @endif |
| No sales found. | |||||||