@extends('layouts.app') @section('content') @include("layouts.Cmodal") @include("invoices.modal")
  @lang('layout.EditInvoice')
@if($paid_stamp!='') @endif
{{Form::model($invoice,['route' => ['invoice.add_store',$invoice->id],'method' => 'PATCH','class' => 'form-horizontal','id'=>'sales-form'])}} {{ csrf_field() }}
@if(getShwoPriceLevel()=="general")
@endif @if(getShwoPriceLevel()=="general_percent")
@endif @if(systemConfig()[13] != 0 )
@endif
@{{msg}}
@if(getFactorPending()=="true") @endif
@{{selected_currency.symbol}} %
@if(getTaxation()=="true")
@endif
@if(getSaleCommission()=="true")
@endif
@if(getSaleDiscountDate()=="true")
@endif @if(getChangeItem()=="true")
@endif @if(getTransportCompany()=="true")
@endif @if(getNegativeSale() == 'true')
@endif @if(getSaleToBase() == 'true')
@endif @if(oilSale() == 'true')
@endif @if(getSaleTaxation() == 'true')
%
@endif @if(getSaleByOtherMeasure() == "true")
@endif @if(getSaleByOtherMeasureRate() == "true")
@endif @if(ShowSaveTempItemToCustomer() == "true")
@endif

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

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

@lang('layout.Quantity')

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

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

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

@lang('layout.Total'): @{{(selected_itemes==null)?null:Number.parseFloat(selected_quantity * selected_price).toFixed(precision())}} @{{selected_currency.symbol}}
@if(getSaleTaxation() == 'true') @endif
@lang('layout.Total') : @{{ format_number(Number.parseFloat(((subtotal - (discount*(newSubTotal - newSubDiscountFiledRow)/100) - discountFiledRow) - saleTaxation)-payeds))}} @{{selected_currency.symbol}}
@lang('layout.Discount'): (@{{ Number.parseFloat(discount).toFixed(precision()) }}%) @{{ format_number(Number.parseFloat(discount*(newSubTotal - newSubDiscountFiledRow)/100)+Number.parseFloat(discountFiledRow)) }} @{{selected_currency.symbol}}
@lang('menu.Taxation'): (@{{ format_number(Number.parseFloat(sale_taxation)) }}%) @{{ format_number(Number.parseFloat(saleTaxation)) }} @{{selected_currency.symbol}}
@lang('layout.Payment'): @{{ payeds.toFixed(precision())}} @{{selected_currency.symbol}}
@lang('layout.GrandTotal'): @{{ subtotal.toFixed(precision())}} @{{selected_currency.symbol}}
@if(getTaxation() =="true")
@lang('layout.Total') @lang('layout.Tax') : @{{ myRound(totalTax)}} @{{selected_currency.symbol}}
@lang('layout.Sub-Total'): @{{ format_number(Number(checkedSubtotal))}} @{{selected_currency.symbol}}
@endif @if(getSaleCommission() =="true")
@lang('layout.Total') @lang('layout.Commission') : @{{ myRound(totalCommi)}} @{{selected_currency.symbol}}
@lang('layout.Sub-Total'): @{{ format_number(Number(checkedSubtotal))}} @{{selected_currency.symbol}}
@endif
@lang('layout.Currency') @lang('layout.Payable') @lang('layout.Receivable')
@{{ summ.currency }} @{{member_format_number(Number(summ.invoice)) }}
@if(getSubTotal() == 'true')
@lang('layout.Sub-Total')
@lang('layout.Discount'): (@{{ format_number(Number.parseFloat(discount)) }}%)
@lang('layout.Total')
@{{ format_number(Number(sub_Subtotal))}} @{{selected_currency.symbol}}
@{{ format_number(Number.parseFloat((sub_Subtotal - (sub_discount*(sub_Subtotal - subDiscountFiledRow)/100) - subDiscountFiledRow) - saleTaxation))}} @{{selected_currency.symbol}}
@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(getTaxation() =="true") @endif @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(getTaxation()=="true") @endif @if(getSubTotal() =="true") @endif @if(getTaxation() =="true") @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 @if(getTaxation()=="true") @endif @if(getSubTotal() =="true") @endif
# @lang('layout.Edit')@lang('layout.Tax')@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.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.Tax') @lang('layout.Percentage')%@lang('layout.Discount') @lang('layout.Total') @lang('layout.Subtotal')
@{{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}} %
@{{(item.item==null)? 0:getItemTotal(item.item,selected_currency.rate,discountIsAmount,item.item.discount,1,per_qty_check).result}} @{{selected_currency.symbol}} @{{(item.item==null)? 0:getItemTotalOil(item.item,selected_currency.rate,discountIsAmount,item.item.discount).result}} @{{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}}

# @lang('layout.Number') @lang('layout.SelectBank') @lang('layout.Amount') @lang('layout.Rate') @lang('layout.Currency') @lang('layout.Amount') @lang('layout.Total') @lang('layout.Description')
@{{index+1}} @{{(payment.item==null)?null:(payment.item.number)}} @{{myRound(Number((payment.item==null)?null:payment.item.balance)-Number((payment.item==null)?null:payment.item.amount))}}
@{{(payment.item==null)?null:payment.item.code}}
@{{selected_currency.symbol}}

@if(getInvoicePayment()== "true")
  @lang('layout.InvoicePayment') : (@lang('message.InvoicePaymetNote'))
# @lang('layout.Currency') * @lang('layout.Rate') * @lang('layout.Amount') * @lang('layout.Description') *
@{{index+1}}
@endif
@if(getDriverInfo()=="true")
@lang('layout.DriverInfo')
{{Form::text('transfer_code',$invoice->transferCode,['class' => 'form-control','placeholder' => __('layout.TransferCode')])}}
{{Form::text('palce_of_weight',$invoice->PlaceOfWeight,['class' => 'form-control','placeholder' => __('layout.PlaceOfWeight')])}}
{{Form::text('source_place',$invoice->sourcePlace,['class' => 'form-control','placeholder' => __('layout.SourcePlace')])}}
{{Form::textarea('transfer_description',$invoice->trDesription,['class' => 'form-control','rows' => '3','placeholder' => __('layout.Description')])}}
@endif @if(systemConfig()[16] != 0)
@lang('layout.FarmerContract')
@endif @if(systemConfig()[21] == 1)
@lang('layout.WashingForm')

@endif @if(getInvoiceTotal() == 'true')
@lang('layout.GrandTotal'): @{{ subtotal.toFixed(precision())}} @{{selected_currency.symbol}} @lang('layout.Payment'): @{{ payeds.toFixed(precision())}} @{{selected_currency.symbol}} @lang('layout.Discount'): (@{{ Number.parseFloat(discount).toFixed(precision()) }}%) @{{ format_number(Number.parseFloat(discount*(newSubTotal - newSubDiscountFiledRow)/100)+Number.parseFloat(discountFiledRow)) }} @{{selected_currency.symbol}} @lang('layout.Total') : @{{ format_number(Number.parseFloat(((subtotal - (discount*(newSubTotal - newSubDiscountFiledRow)/100) - discountFiledRow) - saleTaxation)-payeds))}} @{{selected_currency.symbol}}
@endif
@if(getPrintDescription()=="true")
@endif @if(getHesabSabeqa() =='true')
@endif
@lang('layout.Cancel')
{!! Form::close() !!}

 

 

@endsection @push('scripts') @endpush