違算発生のお知らせ

販売管理システム - 自動通知
{{ $discrepancies->first()->salesUser->user_name ?? 'ご担当者' }}様
違算が発生しています

販売管理システムより、違算発生の通知をお送りします。
内容をご確認の上、必要な対応をお願いいたします。

請求情報

@if($billing->billing_date) @endif
請求コード {{ $billing->billing_number ?? '未設定' }}
得意先コード {{ $billing->customer?->customer_code ?? '未設定' }}
得意先名 {{ $billing->customer?->customer_name ?? '未設定' }}
請求締め日 {{ \Carbon\Carbon::parse($billing->billing_date)->format('Y年m月d日') }}
@foreach($discrepancies as $discrepancy)

違算明細 {{ $loop->iteration }}

@if($discrepancy->salesDetail?->sales?->sales_date) @endif @if($discrepancy->salesDetail?->product_code) @endif @if($discrepancy->salesDetail?->product_name) @endif
発生日 {{ $discrepancy->occurred_date ? \Carbon\Carbon::parse($discrepancy->occurred_date)->format('Y年m月d日') : '未設定' }}
売上日 {{ \Carbon\Carbon::parse($discrepancy->salesDetail->sales->sales_date)->format('Y年m月d日') }}
商品コード {{ $discrepancy->salesDetail->product_code }}
商品名 {{ $discrepancy->salesDetail->product_name }}
売上額 {{ number_format($discrepancy->salesDetail?->amount ?? 0) }}円
入金額 {{ number_format($discrepancy->payment_amount ?? 0) }}円
差額 {{ number_format($discrepancy->discrepancy_amount ?? 0) }}円
理由種別 {{ Enum::name('ReasonType', $discrepancy->reason_type) }}
コメント {{ $discrepancy->reason_note }}
@endforeach

違算画面はこちらからアクセスしてください:
{{ route('discrepancies.index') }}