@if( !empty($user_branch['letter_head']) ) @endif
របាយការណ៍លក់តាមវិក័យប័ត្រ
Sale Report By Invoice
{{ App\Helpers\StringHelper::dateTimeFormat($start_date) }}​ ~ {{ App\Helpers\StringHelper::dateTimeFormat($end_date) }}
warehouse / ឃ្លាំង: {{ $warehouse_name }}
customer / អតិថិជន: {{ $supplier_name }}
Product / ផលិតផល: {{ $product_name }}
Created By / អ្នកបង្កើត: {{ $created_by }}
Sale Agent / អ្នកទីផ្សារ: {{ $sale_agent }}
@if (env('CLIENT_ID') == 'yongtex') @endif @foreach ($data as $index => $item) @if (env('CLIENT_ID') == 'yongtex') @endif @endforeach
លេខរៀង
No
កាលបរិច្ឆេទ
Transaction Date
លេខយោង
Ref No
តុ
Table
អតិថិជន
Customer Name
អ្នកបង្កើត
Created By
អ្នកទីផ្សារ
Sale Agent
បរិមាណសរុប
Total Quantity
សរុបមុនបញ្ចុះតម្លៃ
Total Before Discount
បញ្ចុះតម្លៃ
Discount
សរុបក្រាយបញ្ចុះតម្លៃ
Total After Discount
ទូទាត់សរុប
Total Paid
ជំពាក់សរុប
Total Dept
{{ $index + 1}} {{ App\Helpers\StringHelper::dateTimeFormat($item->transaction_date) }} {{ $item->ref_no }} {{ $item->table_name }} {{ $item->customer_name == "" ? 'អតិថិជនទូទៅ' : $item->customer_name }} {{ $item->created_by }} {{ $item->sale_agency }} @foreach ($item['saleLists'] as $row) {{ floatval($row->total_qty)}} {{$row->unit_type_name}} @endforeach {{ $item->currency_symbol }} {{ App\Helpers\StringHelper::currency($item->total_payment + $item->discount_amount) }} @if($item->discount_value > 0) {{$item->currency_symbol}} {{ App\Helpers\StringHelper::currency($item->discount_amount) }} @if($item->discount_type == 0 && $item->discount_value > 0) (-{{ App\Helpers\StringHelper::currency($item->discount_value) }}%) @endif @endif {{ $item->currency_symbol }} {{ App\Helpers\StringHelper::currency($item->total_payment) }} {{$item->currency_symbol}} {{ App\Helpers\StringHelper::currency($item->total_paid) }} @if($item->total_payment - $item->total_paid != 0) {{ $item->currency_symbol }} {{ App\Helpers\StringHelper::currency($item->total_payment - $item->total_paid) }} @endif
@php if (env('CLIENT_ID') == 'yongtex') { $footer_colspan = 7; } else{ $footer_colspan = 6; } $footer_loop = 6; @endphp {{-- Total Amount quantity --}} @if (env('CLIENT_ID') == 'yongtex') @for($i=1; $i<=$footer_loop; $i++) @endfor @endif {{--Total Before Discount--}} @for($i=1; $i<=$footer_loop; $i++) @endfor {{--Total Discount--}} @for($i=1; $i<=$footer_loop; $i++) @endfor {{--Total After Discount--}} @for($i=1; $i<=$footer_loop; $i++) @endfor {{--Total paid --}} @for($i=1; $i<=$footer_loop; $i++) @endfor {{--Total Dept --}} @for($i=1; $i<=$footer_loop; $i++) @endfor
បរិមាណសរុប / Total Quantity :  {{ floatval($total_qty[0]['total_qty']) }} {{ $total_qty[0]['unit_type_name'] }}  
សរុបមុនបញ្ចុះតម្លៃ / Total Before Discount :   {{ $default }}   {{ App\Helpers\StringHelper::currency( $total_sale['total_price_default'] + $total_sale['total_discount_amount_default'] ) }}
បញ្ចុះតម្លៃសរុប / Total Discount :  {{ $default }} {{ App\Helpers\StringHelper::currency($total_sale['total_discount_amount_default']) }}
សរុបក្រាយបញ្ចុះតម្លៃ / Total After Discount :  {{ $default }} {{ App\Helpers\StringHelper::currency($total_sale['total_price_default']) }}  
ទូទាត់សរុប / Total Paid :  {{ $default }} {{ $total_paid }}  
ជំពាក់ / Total Dept :  {{ $default }} {{ $total_dept }}