@extends('layouts.app') @section('content') @include("layouts.Cmodal") @include("invoices.modal")
@if($duplicate) @lang('layout.CreateNewInvoice') @else @lang('layout.EditInvoice') @endif
@if($duplicate) {{Form::model($invoice,['route' => ['invoice_roll.store',$invoice->id],'method' => 'post','class' => 'form-horizontal','id'=>'sales-form'])}} @else {{Form::model($invoice,['route' => ['invoice_roll.update',$invoice->id],'method' => 'PATCH','class' => 'form-horizontal','id'=>'sales-form'])}} @endif {{ csrf_field() }}
@if($duplicate) @else @endif
@{{msg}}
@if(getSaleCommission()=="true")
@{{selected_currency.symbol}} %
@endif
@{{selected_currency.symbol}} %
@if(getHourType() == 24) @else @endif
{{-- --}}
@if(getTransportCompany()=="true")
@endif @if(ShowQuantityByWing() == "true")
@endif @if(getSaleDiscountDate()=="true")
@endif @if(systemConfig()[37] == 1) @permission('Warranty-list')
@endpermission @endif @if(getSaleToBase() == 'true')
@endif @if(getNegativeSale() == 'true')
@endif @if(getSaleByOtherMeasureRate() == "true")
@endif @if(ShowQuantityByWing() == "true")
@endif @if(getFactorPending()=="true")
@endif @if(getSaleSubMeasure()=="true")
@endif @if(systemConfig()[37] == 1)
@lang('layout.To')
@endif {{--
@{{selected_currency.symbol}} %
--}}
@if(getSaleCommission() =="true") @endif
@lang('layout.Total') @{{ format_number(Number.parseFloat((subtotal - (discount*(subtotal - discountFiledRow)/100) - discountFiledRow)-payeds))}} @{{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') @{{ payeds.toFixed(precision())}} @{{selected_currency.symbol}}
@lang('layout.Sub-Total') @{{ subtotal.toFixed(precision())}} @{{selected_currency.symbol}}
@lang('layout.TotalCommission') @{{ myRound(Number.parseFloat(totalCommi) + Number.parseFloat(sum_commission))}}
@lang('layout.Currency') @lang('layout.Payable') @lang('layout.Receivable') @lang('layout.AverageRate')
@{{ summ.currency }} @{{ member_format_number(Number(summ.payment)) }} @{{member_format_number(Number(summ.invoice)) }} @{{member_format_number(Number(summ.rate))}}
{{--
--}} {{--
--}} {{--
@if($duplicate)
@else
@endif
@{{msg}}
--}} {{--
@{{selected_currency.symbol}} %
--}} {{--
@if(getHourType() == 24) @else @endif
--}} {{--
@if(getSaleToBase() == 'true')
@endif @if(getNegativeSale() == 'true')
@endif @if(getSaleByOtherMeasureRate() == "true")
@endif @if(ShowQuantityByWing() == "true")
@endif @if(ShowQuantityByWing() == "true")
@endif @if(getFactorPending()=="true")
@endif
--}} {{--
--}} {{-- @if(getTransportCompany()=="true")
@endif --}} {{-- @if(getSaleDiscountDate()=="true")
@endif --}} {{--
--}} {{--
--}} {{--
--}} {{--
@lang('layout.Total') : @{{ format_number(Number.parseFloat((subtotal - (discount*(subtotal - discountFiledRow)/100) - discountFiledRow)-payeds))}} @{{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'): @{{ payeds.toFixed(precision())}} @{{selected_currency.symbol}}
@lang('layout.Sub-Total'): @{{ subtotal.toFixed(precision())}} @{{selected_currency.symbol}}
--}} {{--
--}}
@if(saleMainItemInFactorCode()!="false")

@lang('layout.MainItem')

@if(getSaleCommission()=="true") @endif @if(getSerailNumber() =="true") @endif @if(getM2()!="") @if(getFactorMeasure2()=="true") @endif @endif @if(getM3()!="") @if(getFactorMeasure3()=="true") @endif @endif @if(getM4()!="") @if(getFactorMeasure4()=="true") @endif @endif @if(getSaleCommission()=="true") @endif @if(getSaleCommission() =="true") @endif @if(getSerailNumber() =="true") @endif @if(getM2()!="") @if(getFactorMeasure2()=="true") @endif @endif @if(getM3()!="") @if(getFactorMeasure3()=="true") @endif @endif @if(getM4()!="") @if(getFactorMeasure4()=="true") @endif @endif @if(getSaleCommission()=="true") @endif
#@lang('layout.Commission')@lang('layout.Category') @lang('layout.SerialNum') @lang('layout.ItemName') @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.Cost') @lang('layout.NewPrice') @lang('layout.Measure2') @lang('layout.Measure3') @lang('layout.Measure4') @lang('layout.Commission') @lang('layout.Amount') @lang('layout.Commission') @lang('layout.Percentage')%@lang('layout.Discount') @lang('layout.Total')
@{{index+1}}
@{{ errors.first('inventory_id['+index+']') }} @{{myRound((item.item==null)?null:saleItemQuantity(item.item,item.item.quantity,item.item.old_quantity))}}
@{{(item.item==null)?null:item.item.o_measure_v}}
@{{(item.item==null)?null:item.item.o_measure_v1}}
@if(systemConfig()[30] == 1)
@{{selected_currency.symbol}}
@else
@{{selected_currency.symbol}}
@endif
@{{selected_currency.symbol}} %
@{{selected_currency.symbol}} %
@{{(item.item==null)? 0:getItemTotal(item.item,selected_currency.rate,discountIsAmount,item.item.discount,selected_currency.hq_rate,per_qty_check, null, selected_currency.static_rate).result}} @{{selected_currency.symbol}}

@endif

@lang('layout.ItemByCode')

@if(getSaleCommission()=="true") @endif @if(getCodeBrand()=="true") @endif @if(searchByCodeLocation()=="true") @endif @if(ImportEngineNumberByExcel()!="true") @endif @if(ImportEngineNumberByExcel()=="true") @endif @if(getCustomHouseLitter()=="true") @endif @if(searchByCodeLocation()=="true") @if(getExpireDate()=="true") @endif @endif @if(systemConfig()[21] == 1 || getCubicMetereItems()=="true") @endif @if(getCubicMetereItems()=="true") @endif @if(getM2()!="") @if(getFactorMeasure2()=="true") @endif @endif @if(getM3()!="") @if(getFactorMeasure3()=="true") @endif @endif @if(getM4()!="") @if(getFactorMeasure4()=="true") @endif @endif @if(getSaleSubMeasure()=="true") @endif @if(getSaleCommission()=="true") @endif @if(showLocation()=="true" && searchByCodeLocation()!="true") @endif @if(getShowWing()!="false") @if(ShowQuantityByWing() == "true") @endif @endif @if(systemConfig()[21] == 1) @endif @if(getSaleCodePricePercentage() == 'true') @endif @if(getSaleCommission() =="true") @endif @if(getCodeBrand()=="true") @endif @if(searchByCodeLocation()=="true") @endif @if(ImportEngineNumberByExcel()!="true") @endif @if(ImportEngineNumberByExcel()=="true") @endif @if(getCustomHouseLitter()=="true") @endif @if(searchByCodeLocation()=="true") @if(getExpireDate()=="true") @endif @endif @if(systemConfig()[21] == 1 || getCubicMetereItems()=="true") @endif @if(getCubicMetereItems()=="true") @endif @if(getM2()!="") @if(getFactorMeasure2()=="true") @endif @endif @if(getM3()!="") @if(getFactorMeasure3()=="true") @endif @endif @if(getM4()!="") @if(getFactorMeasure4()=="true") @endif @endif @if(getSaleSubMeasure() =="true") @endif @if(getSaleCommission()=="true") @endif @if(showLocation()=="true" && searchByCodeLocation()!="true") @endif @if(getShowWing()!="false") @if(ShowQuantityByWing() == "true") @endif @endif @if(systemConfig()[21] == 1) @endif @if(getSaleCodePricePercentage() == 'true') @endif
#@lang('layout.Commission')@lang('layout.Category') @lang('layout.ItemName') @lang('layout.SiteName') @lang('layout.Brand')@lang('layout.Code') @lang('layout.Location')@lang('layout.Description') @lang('layout.Description') 2 @lang('layout.BatchDate')@lang('layout.DocumentReceived')@lang('layout.CustomHouseLitterNumber') @lang('layout.Province') @lang('layout.CustomHouseLitterDate') @lang('layout.Quantity') @lang('layout.Weight') @lang('layout.OnHand') @lang('layout.ExpireDate')@lang('layout.Width') @lang('layout.Length')@lang('layout.Gauge') @lang('layout.OMeasureValue1') @lang('layout.OMeasureValue2') @lang('layout.Measure') @lang('layout.Measure2') @lang('layout.Measure3') @lang('layout.Measure4') @lang('layout.EquivalentTo') @lang('layout.SubPrice') @lang('layout.Commission') @lang('layout.Amount') @lang('layout.Commission') @lang('layout.Percentage')%@lang('layout.Location') @lang('layout.Wing') @lang('layout.ApproxWeight') @lang('layout.Price') @lang('layout.Wing') @lang('layout.Bundl') @lang('layout.UnitPrice')@lang('layout.Percentage')%@lang('layout.NewCost') @lang('layout.Discount') @lang('layout.Total')
@{{index+1}}
@if(searchByImage()=="true") @endif
@{{myRound((item.item==null)?null:((item.item.code==null)?null:item.item.code.OnHand))}} @{{myRound((item.item==null)?null:saleItemQuantity(item.item,((item.item.code==null)?item.item.quantity:item.item.code.qut_temp)))}} @{{(item.item==null)?null:((item.item.code==null)?null:item.item.expire_date)}}
@{{myRound((item.item==null)?null:((item.item.code==null)?null:item.item.code.other_measure))}}
@{{myRound((item.item==null)?null:((item.item.code==null)?null:item.item.code.other_measure2))}}
@{{myRound((item.item==null)?null:subMQuantity(index,item.item,((item.item.code==null)?null:item.item.code.qut_temp)))}}
@{{selected_currency.symbol}}
@{{selected_currency.symbol}} %
@{{(item.item==null)?null:((item.item.code==null)?null:item.item.code.location)}}
@{{selected_currency.symbol}} %
@{{(item.item==null)? 0:getItemTotalRollRow(item,selected_currency.rate,per_qty_check,item.item.discount,discountIsAmount, selected_currency.static_rate)}} @{{selected_currency.symbol}}

@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}}
@{{selected_currency.symbol}}
@endif
@permission('receive-create')
# @lang('layout.SelectBank') @lang('layout.Amount') @lang('layout.Rate') @lang('layout.Currency') @lang('layout.Amount') @lang('layout.Total') @lang('layout.Description')
@{{index+1}} @{{myRound(Number((payment.item==null)?null:payment.item.balance)-Number((payment.item==null)?null:payment.item.amount))}}
@{{selected_currency.symbol}}
@endpermission
@if(getOnCredit()=="true")
@lang('layout.OnCredit')
# @lang('layout.SelectBank') @lang('layout.Rate') @lang('layout.Currency') @lang('layout.Amount') @lang('layout.Date') @lang('layout.Description')
@{{index+1}}

@lang('layout.OnCredit')
# @lang('layout.Currency') @lang('layout.Balance') @lang('layout.Rate') @lang('layout.Amount') @lang('layout.Total') @lang('layout.Date') @lang('layout.Description')
@{{index+1}}
@{{selected_currency.symbol}}
@endif
@if(getTransferRent()=="true")
@lang('layout.TransferRent')
@lang('layout.Type') @lang('layout.Transmitter') @lang('layout.SelectBank') @lang('layout.Currency') @lang('layout.Rate') @lang('layout.Amount') @lang('layout.Description')
@{{(transfer_rent_bank_selected==null)?null:transfer_rent_bank_selected.code}} @{{selected_currency.symbol}}

@endif @if(getInstallments()=="true")
@lang('layout.Installments')
# @lang('layout.Amount') @lang('layout.Currency') @lang('layout.DueDate') @lang('layout.Description')
@{{index+1}}
@endif @if(getDriverInfo()=="true")
@lang('layout.DriverInfo')
{{Form::text('transfer_code',$invoice->transferCode,['class' => 'form-control'])}}
{{Form::text('palce_of_weight',$invoice->PlaceOfWeight,['class' => 'form-control'])}}
{{Form::text('source_place',$invoice->sourcePlace,['class' => 'form-control'])}}
{{Form::textarea('transfer_description',$invoice->trDesription,['class' => 'form-control','rows' => '1'])}}
@endif
@if(getHesabSabeqa() =='true')
@endif
@if(getInvoicTypeCode() == 6)
@endif
@if(!$duplicate) @endif @lang('layout.Cancel')
{!! Form::close() !!}

 

 

@endsection @push('scripts') @endpush