@extends('layouts.app') @section('style') @stop @section('content') @include("layouts.Cmodal")
  @lang('layout.SalesReceiptes')
{{Form::model($sale,['route' => ['sale.add_store',$sale->id],'method' => 'PATCH','class' => 'form-horizontal','id'=>'sales-form'])}} {{ csrf_field() }}
@lang('layout.Customer')
@lang('layout.Currency')
@lang('layout.Rate') @if(getCompanyTag() != 1) @endif
@lang('layout.Discount')
@{{selected_currency.symbol}} %
@if(getShwoPriceLevel()=="general") @endif @if(getShwoPriceLevel()=="general_percent") @endif @if(systemConfig()[20] == 1) @endif @if(getFactorPending()=="true") @endif
@lang('layout.OtherMemberName')
@lang('layout.PriceLevel')
@lang('layout.PriceLevel')
@lang('layout.Description')
@lang('layout.Contract')
@if(getActiveSale()=="true") @endif
@lang('layout.InvoiceNumber')
@lang('layout.ReferenceNumber') @{{msg}}
@lang('layout.Account')
@lang('layout.Date')
@lang('layout.Category')
@lang('layout.Total') : @{{ Number.parseFloat((subtotal - (discount*(subtotal - discountFiledRow)/100) - discountFiledRow)-payeds).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.Sub-Total'): @{{ subtotal.toFixed(precision())}} @{{selected_currency.symbol}}

@if(getSerailNumber() =="true") @endif @if(searchByCodeLocation()=="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(getSerailNumber() =="true") @endif @if(searchByCodeLocation()=="true") @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.SerialNum') @lang('layout.ItemName') @lang('layout.Location')@lang('layout.SiteName') @lang('layout.Description') @lang('layout.Description') :2 @lang('layout.Quantity') @lang('layout.OnHand') @lang('layout.OMeasureValue1') @lang('layout.OMeasureValue2') @lang('layout.Measure') @lang('layout.CostInInventory') @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}} @{{(!item.item)?null:item.item.number}} @{{myRound((item.item==null)?null:saleItemQuantity(item.item,item.item.quantity,0))}}
@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)? 0:myRound((item.item.LasCost * item.item.measure.measure_unit / item.item.measure_unit) *selected_currency.rate)}} @{{selected_currency.symbol}}
@{{selected_currency.symbol}}
@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}} %
@{{selected_currency.symbol}}

# @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}}
@{{selected_currency.symbol}}
@if(getDriverInfo()=="true")
@lang('layout.DriverInfo')
{{Form::text('transfer_code',$sale->transferCode,['class' => 'form-control','placeholder' => __('layout.TransferCode')])}}
{{Form::text('palce_of_weight',$sale->PlaceOfWeight,['class' => 'form-control','placeholder' => __('layout.PlaceOfWeight')])}}
{{Form::text('source_place',$sale->sourcePlace,['class' => 'form-control','placeholder' => __('layout.SourcePlace')])}}
{{Form::textarea('transfer_description',$sale->trDesription,['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(getPrintDescription()=="true")
@endif
@lang('layout.Cancel')
{!! Form::close() !!}

 

 

@endsection @push('scripts') @endpush