{{-- «تراز روزانه» (slice 10; PRD پ۶, پ۱۰-۲; flow م۱۰): one Tehran day of the ledger — the trades of each product and side, the voids and the manual documents of that day, the total effect on the customers' balances, and the check that the total equals the ledger's own sum (App\Ledger\DailyBalance). a day typed wrong is refused with its reason and nothing is drawn; «روز قبل» / «روز بعد» are plain links. signs are the customer's view. --}} @extends('layouts.mz') @section('title', 'تراز روزانه') @section('credit', '1') @section('nav') @include('panel._nav') @endsection @section('content')

تراز روزانه

آنچه یک روز (از نیمه‌شب تا نیمه‌شب تهران) در دفتر مشتریان نوشته شد: معامله‌های هر کالا، ابطال‌ها و سندهای دستی همان روز، و جمع اثرشان روی ماندهٔ مشتریان. «خرید» و «فروش» از دید مشتری است؛ ابطال در روزی شمرده می‌شود که ابطال شد.

@if ($error !== null)

{{ $error }}

@endif

تاریخ شمسی به شکل سال/ماه/روز؛ خالی یعنی امروز.

@if ($balance !== null) روز قبل @if ($nextUrl !== null)روز بعد@endif خروجی اکسل @else امروز @endif
@if ($balance !== null)

{{ $dayWords }}

@if ($balance['rows'] === 0)

در این روز هیچ ردیفی در دفتر نوشته نشد.

سفارش‌ها
@else @if ($products !== [])

معامله‌ها

@foreach ($products as $p) @endforeach
کالا خرید مشتری مبلغ خرید فروش مشتری مبلغ فروش
{{ $p['title'] }} {{ $p['buy'] }} {{ $p['buyAmount'] }} {{ $p['sell'] }} {{ $p['sellAmount'] }}
@endif @if ($others !== [])

ابطال و سند دستی

@foreach ($others as $o) @endforeach
ردیف شمار اثر ریالی اثر فلزی
{{ $o['label'] }} {{ $o['count'] }} {{ $o['rial'] }} {{ $o['metal'] }}
@endif

اثر روز روی ماندهٔ مشتریان

@foreach ($totals as $t) @endforeach
دارایی جمع این صفحه جمع دفتر روز
{{ $t['label'] }} {{ $t['page'] }} {{ $t['ledger'] }}
@if ($balanced)

جمع این صفحه با جمع دفتر همان روز برابر است ({{ \App\Support\Display::number($balance['rows']) }} ردیف دفتر).

@else @endif
@endif @endif @endsection