@if(Helper::widgetAccess('show_return_columns_in_operations')) @endif @if(Helper::widgetAccess('show_column_tax_amount')) @endif @php $totalQty = 0;$totalSales = 0; $totalNetTotal = 0; $totalTaxAmount = 0; $totalItemDiscount = 0; $totalOrderDiscount = 0; @endphp @if ($operationsData) @foreach ($operationsData as $key => $categoriesList) @php $catKey = explode('_', $key); $catId = $catKey[0]; $catName = $catKey[1]; // ROW TOTAL VARIABLES $rowTotalQuantity = 0; $rowSalesPrice = 0; $rowVoidRawQuantity = 0; $rowReturnRawQuantity = 0; $rowRawSalesPriceVoid = 0; $rowRawSalesPriceReturn = 0; $rowTax = 0; $rowItemDiscount = 0; $rowOrderDiscount = 0; $rowNetTotals = 0; @endphp @if(Helper::widgetAccess('show_return_columns_in_operations')) @endif @if(Helper::widgetAccess('show_column_tax_amount')) @endif @foreach ($categoriesList as $dList) @php //if ($dList['message']) //$void_message[$dList['message']][] = $dList['raw_sales_price_void']; $voidRawQuantity = ($dList['void_raw_quantity']) ? $dList['void_raw_quantity'] : '0'; $returnRawQuantity = ($dList['return_raw_quantity']) ? $dList['return_raw_quantity'] : '0'; $rawSalesPriceVoid = ($dList['raw_sales_price_void']) ? $dList['raw_sales_price_void'] : '0.00'; $rawSalesPriceReturn = ($dList['raw_sales_price_return']) ? $dList['raw_sales_price_return'] : '0.00'; // 5 DECIMAL POINTS $item_discount_total_5 = $dList['item_discount_total_5'] > 0 ? $dList['item_discount_total_5'] : '0'; $order_discount_amount_total_5 = $dList['order_discount_amount_total_5'] > 0 ? $dList['order_discount_amount_total_5'] : '0'; $tax_amount_5 = $dList['tax_amount_5'] > 0 ? $dList['tax_amount_5'] : '0'; $net_totals_5 = $dList['net_sales_price_5'] > 0 ? $dList['net_sales_price_5'] : '0'; $raw_sales_price_5 = $dList['raw_sales_price_5'] > 0 ? $dList['raw_sales_price_5'] : '0'; $rowTotalQuantity += $dList['raw_quantity']; $rowSalesPrice += $dList['raw_sales_price']; $rowVoidRawQuantity += $voidRawQuantity; $rowReturnRawQuantity += $returnRawQuantity; $rowRawSalesPriceVoid += $rawSalesPriceVoid; $rowRawSalesPriceReturn += $rawSalesPriceReturn; $rowTax += $dList['tax_amount']; $rowItemDiscount += $dList['item_discount_total']; $rowOrderDiscount += $dList['order_discount_amount_total']; $rowNetTotals += $dList['net_sales_price']; @endphp @if(Helper::widgetAccess('show_return_columns_in_operations')) @endif @if(Helper::widgetAccess('show_column_tax_amount')) @endif @php $totalQty += $dList['raw_quantity']; //5 DECIMAL POINTS $totalSales += $raw_sales_price_5; $totalTaxAmount += $tax_amount_5; $totalNetTotal += $net_totals_5; $totalItemDiscount += $item_discount_total_5; $totalOrderDiscount += $order_discount_amount_total_5; @endphp @endforeach @if(Helper::widgetAccess('show_return_columns_in_operations')) @endif @if(Helper::widgetAccess('show_column_tax_amount')) @endif @endforeach @else @endif @if(Helper::widgetAccess('show_return_columns_in_operations')) @endif @if(Helper::widgetAccess('show_column_tax_amount')) @endif
{{ __('lbl.product_name') }} {{ __('lbl.category') }} {{ __('lbl.locations') }} {{ __('lbl.unit_cost') }} {{ __('lbl.sales_price') }} {{ __('lbl.vendor_qty_received') }} {{ __('lbl.raw_qty') }} {{ __('lbl.raw_sales') }}{{ __('lbl.return_qty') }} {{ __('lbl.return_sales') }}{{ __('lbl.item_disc') }} {{ __('lbl.order_disc') }} {{ __('lbl.net_totals') }} {{ __('lbl.voids_qty') }} {{ __('lbl.voids_sales') }}{{ __('lbl.tax_amount') }}
{{ $catName }}
{{ $dList['product_name'] }} {{$dList['categorie_name'] }} {{$dList['establishment_name'] }} {{storecurrency().$dList['cost_of_goods'] }} {{storecurrency().$dList['sales_price'] }} {{$dList['vendor_qty_received'] }} {{$dList['raw_quantity'] }} {{storecurrency().number_format($dList['raw_sales_price'], 2) }}{{$returnRawQuantity }} {{storecurrency().number_format($rawSalesPriceReturn, 2) }}{{storecurrency().number_format($dList['item_discount_total'], 2) }} {{storecurrency().number_format($dList['order_discount_amount_total'], 2) }} {{storecurrency().number_format($dList['net_sales_price'], 2) }} {{$voidRawQuantity }} {{storecurrency().number_format($rawSalesPriceVoid, 2) }}{{storecurrency().number_format($dList['tax_amount'], 2) }}
{{$dList['categorie_name']}} {{$dList['establishment_name']}} {{storecurrency().$dList['cost_of_goods']}} {{storecurrency().$dList['sales_price']}} {{$dList['vendor_qty_received']}} {{$rowTotalQuantity}} {{storecurrency().number_format($rowSalesPrice, 2)}}{{$rowReturnRawQuantity}} {{storecurrency().number_format($rowRawSalesPriceReturn, 2)}}{{storecurrency().number_format($rowItemDiscount, 2)}} {{storecurrency().number_format($rowOrderDiscount, 2)}} {{storecurrency().number_format($rowNetTotals, 2)}} {{$rowVoidRawQuantity}} {{storecurrency().number_format($rowRawSalesPriceVoid, 2)}}{{storecurrency().number_format($rowTax, 2)}}
{{ __('lbl.no_record_found') }}
{{ __('lbl.total') }} {{ $totalQty }} {{storecurrency().number_format($totalSales, 2) }}{{storecurrency().number_format($totalItemDiscount, 2) }} {{storecurrency().number_format($totalOrderDiscount, 2) }} {{storecurrency().number_format($totalNetTotal, 2) }} {{storecurrency().number_format($totalTaxAmount, 2) }}