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

@lang('menu.InventoryBrand') :

@{{ brand }}

@lang('layout.Location') :

@{{ location }}

@lang('layout.Cost') :

@{{ cost }}

@lang('layout.SerialNum') :

@{{ SNumber }}

@lang('layout.Gauge') :

@{{ SGauge }}

@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' => 'invoice_roll.store','method' => 'POST','class' => 'form-horizontal','id'=>'sales-form','files'=> true])}} {{ csrf_field() }}

@{{ errors.first('customer') }}
@{{ errors.first('number') }} @{{number_msg}}
@{{msg}}
@if(getSaleCommission()=="true")
@{{selected_currency.symbol}} %
@endif
@{{ errors.first('currency') }}
@{{ errors.first('currency_rate') }}
@{{selected_currency.symbol}} %
@if(getHourType() == 24) @else @endif
{{-- --}}
@if(getTransportCompany()=="true")
@endif @if(getSaleDiscountDate()=="true")
@endif @if(ShowQuantityByWing() == "true")
@endif @if(systemConfig()[37] == 1) @permission('Warranty-list')
@endpermission @endif @if(getSaleToBase() == 'true')
@endif @if(getNegativeSale() == 'true')
@endif @if(getWhatsApp() =='true')
@endif @if(getWhatsApp() =='true' && (getWhatsAppType() == 'direct' || getWhatsAppType() == 'simpleMessage'))
@endif @if(getSaleByOtherMeasureRate() == "true")
@endif @if(ShowQuantityByWing() == "true")
@endif @if(ImportEngineNumberByExcel()=="true")
@endif @if(getFactorPending()=="true")
@endif @if(getSaleSubMeasure()=="true")
@endif @if(systemConfig()[37] == 1)
@lang('layout.To')
@endif {{--
@{{ errors.first('currency') }}
@{{ errors.first('currency_rate') }}
@{{selected_currency.symbol}} %
--}} {{-- @if(getTelegramBot()=="true")
@endif --}}
@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.TotalQuantity') @{{ subtotalQty }}
@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))}}
{{--
--}} {{--
@{{ errors.first('customer') }}
@{{ errors.first('number') }} @{{number_msg}}
@{{msg}}
@{{ errors.first('currency') }}
@{{ errors.first('currency_rate') }}
@{{selected_currency.symbol}} %
@if(getHourType() == 24) @else @endif
--}} {{--
@if(getSaleToBase() == 'true')
@endif @if(getNegativeSale() == 'true')
@endif @if(getTelegramBot()=="true")
@endif @if(getSaleByOtherMeasureRate() == "true")
@endif @if(ShowQuantityByWing() == "true")
@endif @if(ShowQuantityByWing() == "true")
@endif @if(ImportEngineNumberByExcel()=="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}}
@lang('layout.TotalQuantity'): @{{ subtotalQty }}
--}} {{--
@lang('layout.Currency') @lang('layout.Payable') @lang('layout.Receivable')
@{{ summ.currency }} @{{format_number(Number(summ.invoice)) }}
--}}
@if(TabIndexInItemName() =="true")
@lang('layout.ItemNotFound')
@endif @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(systemConfig()[30] == 1) @else @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+']') }}
@{{ errors.first('main_inventory_quantity['+index+']') }} @{{myRound((item.item==null)?null:saleItemQuantity(item.item,item.item.quantity))}}
@{{(item.item==null)?null:item.item.o_measure_v}}
@{{(item.item==null)?null:item.item.o_measure_v1}}
@{{(item.item==null)?null: myRound((item.item.LasCost * item.item.measure.measure_unit / item.item.measure_unit) * selected_currency.static_rate / selected_currency.rate)}} @{{(item.item==null)?null: myRound((item.item.LasCost * item.item.measure.measure_unit / item.item.measure_unit) *selected_currency.rate)}} @{{ errors.first('main_inventory_price['+index+']') }} @lang('layout.SalesToTheDetriment')
@{{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 @if(TabIndexInItemName() =="true")
{{-- --}}
@lang('layout.ItemNotFound')
@endif

@lang('layout.ItemByCode')

@if(getSaleCommission()=="true") @endif @if(getCodeBrand()=="true") @endif @if(getCodeBrand()=="true" || searchByCodeLocation()=="true") @endif @if(searchByCodeLocation()=="true") @endif @if(getCodeBrand()!="true" && searchByCodeLocation()!="true") @endif @if(ImportEngineNumberByExcel()!="true") @endif @if(ImportEngineNumberByExcel()=="true") @endif @if(getCustomHouseLitter()=="true") @endif @if(systemConfig()[9] == 0 ) @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(getCodeBrand()=="true" || searchByCodeLocation()=="true") @endif @if(searchByCodeLocation()=="true") @endif @if(getCodeBrand()!="true" && searchByCodeLocation()!="true") @if(ImportEngineNumberByExcel()=="true") @endif @endif @if(ImportEngineNumberByExcel()!="true") @endif @if(ImportEngineNumberByExcel()=="true") @endif @if(getCustomHouseLitter()=="true") @endif @if(systemConfig()[9] == 0 ) @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(systemConfig()[30] == 1) @else @endif
#@lang('layout.Commission') @lang('layout.Category') @lang('layout.Brand')@lang('layout.PartNumber') @lang('layout.Location')@lang('layout.ItemName') @lang('layout.Gauge') @lang('layout.SiteName') @lang('layout.Code') @lang('layout.EngineNumber') @lang('layout.File')@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.QtyOrder') @lang('layout.BundlOrder') @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.Cost') ({{getHomeCurrency()['code']}}) @lang('layout.Cost') @lang('layout.NewCost') @lang('layout.Discount') @lang('layout.Total')
@{{index+1}}
@lang('layout.DuplicateData')
@if(searchByImage()=="true") @endif @lang('layout.DuplicateData')
@{{ errors.first('inventory_quantity['+index+']') }} @{{ errors.first('inventory_quantity['+index+']') }} @{{myRound((item.item==null)?null:((item.item==null)?null:item.item.quantity_temp))}} @{{myRound((item.item==null)?null:((item.item==null)?null:item.item.bundl))}} @{{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.code.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)}} @{{(item.item==null)?null: myRound((item.item.cost * item.item.measure.measure_unit / item.item.measure_unit))}} @{{(item.item==null)?null: myRound((item.item.cost * item.item.measure.measure_unit / item.item.measure_unit) * selected_currency.static_rate / selected_currency.rate)}} @{{(item.item==null)?null: myRound((item.item.cost * item.item.measure.measure_unit / item.item.measure_unit)*selected_currency.rate)}} @{{ errors.first('inventory_price['+index+']') }} @lang('layout.SalesToTheDetriment')
@{{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(getDriverInfo()=="true")
@lang('layout.DriverInfo')
{{Form::text('palce_of_weight',null,['class' => 'form-control'])}}
{{Form::text('source_place',null,['class' => 'form-control'])}}
@endif
@if(getInvoiceTotal() == 'true')
@lang('layout.Total') : @{{ Number.parseFloat((subtotal - (discount*subtotal/100))-payeds).toFixed(precision())}} @{{selected_currency.symbol}} @lang('layout.Discount'): (@{{ Number.parseFloat(discount).toFixed(precision()) }}%) @{{ Number.parseFloat(discount*subtotal/100).toFixed(precision()) }} @{{selected_currency.symbol}} @lang('layout.Payment'): @{{ payeds.toFixed(precision())}} @{{selected_currency.symbol}} @lang('layout.Sub-Total'): @{{ subtotal.toFixed(precision())}} @{{selected_currency.symbol}} @lang('layout.TotalQuantity'): @{{ subtotalQty }}
@endif
@if(getWhatsApp() =='true') @endif
@if(getInstallments()=="true")
@lang('layout.Installments')
# @lang('layout.Amount') @lang('layout.Currency') @lang('layout.DueDate') @lang('layout.Description')
@{{index+1}} {{Form::textarea('installment_description[]',null,['class' => 'form-control','rows' => '1','@click'=>"addNew('installment',index)",'@keyup'=>"addNew('installment',index)"])}}
@endif
@if(getHesabSabeqa() =='true')
@endif
@if(getInvoicTypeCode() == 6)
@endif
@lang('layout.Cancel')
{!! Form::close() !!}

 

 

@endsection @push('scripts') @endpush