@extends('layouts.app') @section('style') @stop @section('content') @include("layouts.Cmodal") @include("invoices.modal")
  @lang('layout.SalesReceiptes')

@lang('menu.InventoryBrand') :

@{{ brand }}

@lang('layout.Location') :

@{{ location }}

@lang('layout.ByAdvancePricing') :

@{{ AdvancePrice }}

@if(getShowMakeCartan()=="true")

@lang('layout.Width') :

@{{ width }}

@lang('layout.Height') :

@{{ height }}

@endif

@lang('layout.Cost') :

@{{ cost }}

@lang('layout.SerialNum') :

@{{ SNumber }}

@lang('layout.OnHand') :

@{{ on_hand }} @{{ measure_name }}

@if(getShowMakeCartan()=="true")

@lang('layout.Length') :

@{{ length }}

@endif
@if(ShowLastSale()=="true")

@lang('layout.ShowLastSales')

@lang('layout.CustomerName') @lang('layout.Measure') @lang('layout.Price')
@{{last_it.member}} @{{last_it.Measure}} @{{last_it.price}} @{{last_it.currency}}
@endif

@lang('layout.OtherInformations') @lang('layout.Item')

{{Form::open(['route' => 'sale.store','method' => 'POST','class' => 'form-horizontal','id'=>'sales-form'])}} {{ csrf_field() }}
@lang('layout.SaleArea')
@lang('layout.MemberClass')
@lang('layout.Customer')
@{{ errors.first('customer') }}
@lang('layout.Currency') @{{ errors.first('currency') }}
@lang('layout.Rate') @{{ errors.first('currency_rate') }}
@lang('layout.Discount')
@{{selected_currency.symbol}} %
@lang('layout.Description')
@if(getShwoPriceLevel()=="general") @endif @if(getShwoPriceLevel()=="general_percent") @endif @if(systemConfig()[20] == 1) @endif @if(getFactorPending()=="true") @endif @if(oilSale() == 'true') @endif @if(getActiveSale()=="true") @endif @if(getNegativeSale() == 'true') @endif
@lang('layout.OtherMemberName')
@lang('layout.PriceLevel')
@lang('layout.PriceLevel')
@lang('layout.InvoiceNumber') @{{ errors.first('number') }} @{{number_msg}}
@lang('layout.ReferenceNumber') @{{msg}}
@lang('layout.Date') @{{ errors.first('date') }}
@lang('layout.Hour')
@if(getHourType() == 24) @else @endif
@lang('layout.Contract')
@lang('layout.Factor') @lang('layout.Pending')
@lang('layout.Oil')
@lang('layout.FreeCardTimes') : @{{selected_customer.free_card_times}}      @lang('layout.Provided') : @{{provided_card}}
@lang('layout.NegativeSale')
@if(systemConfig()[27] == 1) @endif @if(getActiveSale()=="true") @endif
@lang('layout.Account') @{{ errors.first('bank_account') }}
@lang('menu.GasStation')
@lang('layout.OldCounter')
@lang('layout.NewCounter')
@lang('layout.Category')
@lang('layout.ReceivedAmount')
@if(TabIndexInItemName() =="true")
{{--
@lang('layout.ItemNotFound')
--}}
{{-- --}}
@lang('layout.ItemNotFound')
@endif
@if(systemConfig()[23] == 1)

@lang('layout.OnHand'):@{{(selected_item)?(Number.parseFloat(selected_item.on_hand * selected_item.measure_unit / selected_item.measure.measure_unit).toFixed(2)):''}} @{{(selected_item)?selected_item.measure.measure_name:''}}

@{{(selected_item && selected_iventory_site)?(Number.parseFloat(selected_iventory_site.OnHand * selected_item.measure_unit / selected_item.measure.measure_unit).toFixed(2)):''}} @{{(selected_item)?selected_item.measure.measure_name:''}}

@lang('layout.Quantity')

@lang('layout.ByAdvancePricing') : @{{ AdvancePrice }}

@if(systemConfig()[30] == 1)

@lang('layout.Price') : @{{(selected_item==null)?null:Number.parseFloat((AdvancePrice_cost * selected_item.measure.measure_unit / selected_item.measure_unit) * selected_currency.static_rate / selected_currency.rate).toFixed(3)}} @{{selected_currency.symbol}}

@else

@lang('layout.Price') : @{{(selected_item==null)?null:Number.parseFloat((AdvancePrice_cost * selected_item.measure.measure_unit / selected_item.measure_unit) * selected_currency.rate).toFixed(3)}} @{{selected_currency.symbol}}

@endif
@if(systemConfig()[30] == 1)

@lang('layout.CostInInventory'): @{{(selected_item==null)?null:Number.parseFloat((selected_item.LasCost * selected_item.measure.measure_unit / selected_item.measure_unit) * selected_currency.static_rate / selected_currency.rate).toFixed(3)}} @{{selected_currency.symbol}}

@else

@lang('layout.CostInInventory'): @{{(selected_item==null)?null:Number.parseFloat((selected_item.LasCost * selected_item.measure.measure_unit / selected_item.measure_unit) * selected_currency.rate).toFixed(3)}} @{{selected_currency.symbol}}

@endif
@lang('layout.Total'): @{{(selected_item==null)?null:Number.parseFloat(selected_quantity * selected_price).toFixed(precision())}} @{{selected_currency.symbol}}
@endif
@lang('layout.Total') : @{{ format_number(Number.parseFloat((subtotal - (discount*(subtotal - discountFiledRow)/100) - discountFiledRow)-Number.parseFloat(receivedAmount)))}} @{{selected_currency.symbol}}
@lang('layout.Discount'): (@{{ Number.parseFloat(discount).toFixed(precision()) }}%) @{{ format_number(Number.parseFloat(discount*(subtotal - discountFiledRow)/100)+Number.parseFloat(discountFiledRow)) }} @{{selected_currency.symbol}}
@lang('layout.Payment'): @{{ format_number(Number.parseFloat(receivedAmount)) }} @{{selected_currency.symbol}}
@lang('layout.Sub-Total'): @{{ format_number(Number.parseFloat(subtotal))}} @{{selected_currency.symbol}}
@if(getSubMeasure()=="true")
@lang('layout.Total') @{{format_number(this.total_qty_amount)}}
@endif @if(ShowLastSale()=="true")
@lang('layout.CustomerName') @lang('layout.Measure') @lang('layout.SalePrice')
@{{last_it.member}} @{{last_it.Measure}} @{{myRound(last_it.price)}} @{{last_it.currency}}
@lang('layout.Vendor') @lang('layout.Measure') @lang('layout.Cost')
@{{last_it.member}} @{{last_it.Measure}} @{{myRound(last_it.cost)}} @{{last_it.currency}}
@endif

@if(systemConfig()[23] == 1) @if(searchByCodeLocation()=="true") @endif @if(getSerailNumber() =="true") @endif @if(getShwoPriceLevel()=="per_item") @endif @if(getShwoPriceLevel()=="general_percent_per_item") @endif @if(getM2()!="") @if(getFactorMeasure2()=="true") @endif @endif @if(getSubMeasure()=="true") @endif @if(getM3()!="" && getSubMeasure()!="true") @if(getFactorMeasure3()=="true") @endif @endif @if(getM4()!="") @if(getFactorMeasure4()=="true") @endif @endif @if(searchByCodeLocation()=="true") @endif @if(getSerailNumber() =="true") @endif @if(systemConfig()[30] == 1) @else @endif @if(systemConfig()[30] == 1) @else @endif @if(getShwoPriceLevel()=="per_item") @endif @if(getShwoPriceLevel()=="general_percent_per_item") @endif @if(getM2()!="" && getSubMeasure()!="true") @if(getFactorMeasure2()=="true") @endif @endif @if(getM3()!="") @if(getFactorMeasure3()=="true") @endif @endif @if(getSubMeasure() =="true") @endif @if(getM4()!="") @if(getFactorMeasure4()=="true") @endif @endif
# @lang('layout.Category') @lang('layout.Brand') @lang('layout.Site') @lang('layout.ItemName') @lang('layout.Location')@lang('layout.SerialNum') @lang('layout.SiteName') @lang('layout.Description1') @lang('layout.Description') :2 @lang('layout.Quantity') @lang('layout.OnHand') @lang('layout.Measure') @lang('layout.OMeasureValue1') @lang('layout.OMeasureValue2') @lang('layout.CostInInventory') ({{getHomeCurrency()['code']}}) @lang('layout.CostInInventory') @lang('layout.OilCostInInventory') @lang('layout.Density') @lang('layout.OilQuantity') @lang('layout.Measure') @lang('layout.PriceLevel') @lang('layout.PriceLevel') @lang('layout.NewPrice') @lang('layout.Measure2') @lang('layout.EquivalentTo') @lang('layout.Measure3') @lang('layout.Measure4') @lang('layout.Discount') @lang('layout.Total')
@{{index+1}}
@{{ errors.first('inventory_id['+index+']') }}
@{{(!item.item)?null:item.item.number}} {{-- --}} @{{ errors.first('inventory_quantity['+index+']') }} @lang('layout.LowOnHand') @{{myRound((item.item==null)?null:saleItemQuantity(item.item,item.item.quantity))}}
@if(getCalQuantityOfOtherMeasure() == 'avgMethod') @{{myRound((item.item==null)?null:((item.item.site==null)?null:(item.item.site.OnHand / item.item.site.per_qty)))}} @elseif(getCalQuantityOfOtherMeasure() == 'simpleMethod') @{{myRound((item.item==null)?null:((item.item.site==null)?null:item.item.site.other_measure))}} @else @{{(item.item==null)?null:item.item.o_measure_v}} @endif
@if(getCalQuantityOfOtherMeasure() == 'avgMethod') @{{myRound((item.item==null)?null:((item.item.site==null)?null:(item.item.site.OnHand / item.item.site.per_qty2)))}} @elseif(getCalQuantityOfOtherMeasure() == 'simpleMethod') @{{myRound((item.item==null)?null:((item.item.site==null)?null:item.item.site.other_measure2))}} @else @{{(item.item==null)?null:item.item.o_measure_v1}} @endif
@{{(item.item==null)?null:myRound((item.item.LasCost * item.item.measure.measure_unit / item.item.measure_unit))}} @{{(item.item==null)? 0:myRound((item.item.LasCost * item.item.measure.measure_unit / item.item.measure_unit) *selected_currency.static_rate / selected_currency.rate)}} @{{selected_currency.symbol}} @{{(item.item==null)? 0:myRound((item.item.LasCost * item.item.measure.measure_unit / item.item.measure_unit) *selected_currency.rate)}} @{{selected_currency.symbol}} @{{(item.item==null)?null:((item.item.density)?myRound(((item.item.LasCost * item.item.measure.measure_unit / item.item.measure_unit) * item.item.density) * selected_currency.static_rate / selected_currency.rate):null)}} @{{(item.item==null)?null:((item.item.density)?myRound(((item.item.LasCost * item.item.measure.measure_unit / item.item.measure_unit) * item.item.density) * selected_currency.rate):null)}} @lang('layout.SalesToTheDetriment')
@if(getSaleAmountSecondMeasure()=="true") @{{myRound((item.item==null)?null:secoundMeasurQuantity(item.item,item.item.quantity))}} @endif
@{{myRound((item.item==null)?null:subMQuantity(item.item,item.item.quantity))}}
@{{selected_currency.symbol}} %
{{-- @{{(item.item==null)? 0:getItemTotal(item.item,selected_currency.rate,discountIsAmount,item.item.discount,selected_currency.hq_rate).result}} @{{selected_currency.symbol}} --}} {{-- @{{(item.item==null)? 0:getItemTotalOil(item.item,selected_currency.rate,discountIsAmount,item.item.discount,selected_currency.hq_rate).result}} @{{selected_currency.symbol}} --}}
@endif
@if(systemConfig()[26] == 1)
# @lang('layout.ServiceName') @lang('layout.Description') @lang('layout.Description') :2 @lang('layout.Quantity') @lang('layout.Measure') @lang('layout.Price') @lang('layout.Total')
@{{index+1}}
@{{selected_currency.symbol}}
@{{ (service.item==null)?null:getItemTotalService(service.item,selected_currency.rate,selected_currency.hq_rate, selected_currency.static_rate).result }} @{{selected_currency.symbol}}
@endif
@if(getDriverInfo()=="true")
@lang('layout.DriverInfo')
{{Form::text('transfer_code',null,['class' => 'form-control','placeholder' => __('layout.TransferCode')])}}
{{Form::text('palce_of_weight',null,['class' => 'form-control','placeholder' => __('layout.PlaceOfWeight')])}}
{{Form::text('source_place',null,['class' => 'form-control','placeholder' => __('layout.SourcePlace')])}}
{{Form::textarea('transfer_description',null,['class' => 'form-control','rows' => '3','placeholder' => __('layout.Description')])}}
@endif @if(getInvoiceTotal() == 'true')
@lang('layout.Sub-Total'): @{{ subtotal.toFixed(precision())}} @{{selected_currency.symbol}} @lang('layout.Discount'): (@{{ Number.parseFloat(discount).toFixed(precision()) }}%) @{{ format_number(Number.parseFloat(discount*(subtotal - discountFiledRow)/100)+Number.parseFloat(discountFiledRow)) }} @{{selected_currency.symbol}} @lang('layout.Total') : @{{ Number.parseFloat((subtotal - (discount*(subtotal - discountFiledRow)/100) - discountFiledRow)-payeds).toFixed(precision())}} @{{selected_currency.symbol}}
@endif
@if(searchByCodeLocation()=="true")
@endif
{{-- @if(getWhatsApp() =='true')
@endif --}} @if(getPrintDescription()=="true")
@endif