@extends('layouts.app') @section('content') @include("layouts.Cmodal") @include("invoices.modal")
@lang('layout.CreateNewInvoice')
{{Form::open(['route' => 'projectInvoice.store','method' => 'POST','class' => 'form-horizontal','id'=>'sales-form','files'=> true])}} {{ csrf_field() }}

@lang('layout.SOmsg')

@if(getShwoPriceLevel()=="general")
@endif @if(getShwoPriceLevel()=="general_percent")
@endif
{{-- --}}
@{{ errors.first('customer') }}
@{{ errors.first('number') }} @{{number_msg}}
@{{msg}} {{-- @{{ errors.first('customer') }} --}}
@{{ errors.first('currency') }}
@{{ errors.first('currency_rate') }}
@{{selected_currency.symbol}} %
@if(showVendorInFactor() == 'true')
{{-- --}}
@endif
@{{ errors.first('date') }}
@if(getSaleCommission()=="true")
@{{selected_currency.symbol}} %
@endif
@if(getHourType() == 24) @else @endif
{{-- --}}
@if(getSaleDiscountDate()=="true")
@endif
@if(getSaleToBase() == 'true') {{--
--}}
@endif @if(getNegativeSale() == 'true') {{--
--}}
@endif @if(oilSale() == 'true') {{--
--}}
@endif @if(ShowSaveTempItemToCustomer() == "true") {{--
--}}
@endif @if(getmine() == 'true')
@endif @if(getTelegramBot()=="true")
@endif @if(getWhatsApp() =='true' && (getWhatsAppType() == 'direct' || getWhatsAppType() == 'simpleMessage'))
@endif @if(checkGift() =='true')
@endif @if(getSaleByOtherMeasure() == "true")
@endif @if(getSaleByOtherMeasureRate() == "true")
@endif
@lang('layout.Total') @{{ format_number(Number.parseFloat((subtotal - (discount*(subtotal - discountFiledRow - discountFiledRowtwo)/100) - discountFiledRow - discountFiledRowtwo - payeds)))}} @{{selected_currency.symbol}}
@lang('layout.Discount') (@{{ Number.parseFloat(discount).toFixed(precision()) }}%) @{{ format_number(Number.parseFloat(discount*(subtotal - discountFiledRow)/100)+Number.parseFloat(discountFiledRow) + Number.parseFloat(discounttwo*(subtotal - discountFiledRowtwo)/100)+Number.parseFloat(discountFiledRowtwo)) }} @{{selected_currency.symbol}}
@lang('layout.Payment') @{{ payeds.toFixed(precision())}} @{{selected_currency.symbol}}
@lang('layout.Total') @lang('layout.Commission') @{{ myRound(Number.parseFloat(totalCommi) + Number.parseFloat(sum_commission))}} @{{selected_currency.symbol}}
@lang('layout.Sub-Total') @{{ subtotal.toFixed(precision())}} @{{selected_currency.symbol}}
@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(getShwoPriceLevel()=="general")
@endif @if(getShwoPriceLevel()=="general_percent")
@endif
--}} {{--
@{{ errors.first('customer') }}
@{{ errors.first('number') }} @{{number_msg}}
@{{msg}}
--}} {{--
@{{ errors.first('currency') }}
@{{ errors.first('currency_rate') }}
@{{selected_currency.symbol}} %
--}} {{--
@if(showVendorInFactor() == 'true')
@endif
@{{ errors.first('date') }}
@if(getSaleCommission()=="true")
@{{selected_currency.symbol}} %
@endif
--}} {{--
@if(getHourType() == 24) @else @endif
@if(getSaleToBase() == 'true')
@endif @if(oilSale() == 'true')
@endif @if(ShowSaveTempItemToCustomer() == "true")
@endif
--}} {{--
@if(getmine() == 'true')
@endif @if(getNegativeSale() == 'true')
@endif @if(getTelegramBot()=="true")
@endif @if(getWhatsApp() =='true' && getWhatsAppType() == 'direct')
@endif @if(checkGift() =='true')
@endif
--}} {{--
@if(getmine() == 'true')
{!! Form::number('percentage', null, array('placeholder' => __('layout.Percentage'),'v-model' => 'percentage','class' => 'form-control')) !!}
{!! Form::number('per_percent_price', null, array('placeholder' => __('layout.PerPercentPrice'),'v-model' => 'per_percent_price','class' => 'form-control')) !!}
{!! Form::number('laboratory_percentage', null, array('placeholder' => __('layout.LaboratoryPercentage'),'v-model' => 'laboratory_percentage','class' => 'form-control')) !!}
{!! Form::number('differ', null, array('placeholder' => __('layout.Differ'),'v-model' => 'differ','class' => 'form-control')) !!}
@endif
--}}
{{--
@lang('layout.Total') : @{{ format_number(Number.parseFloat((subtotal - (discount*(subtotal - discountFiledRow - discountFiledRowtwo)/100) - discountFiledRow - discountFiledRowtwo - payeds)))}} @{{selected_currency.symbol}}
@lang('layout.Discount'): (@{{ Number.parseFloat(discount).toFixed(precision()) }}%) @{{ format_number(Number.parseFloat(discount*(subtotal - discountFiledRow)/100)+Number.parseFloat(discountFiledRow) + Number.parseFloat(discounttwo*(subtotal - discountFiledRowtwo)/100)+Number.parseFloat(discountFiledRowtwo)) }} @{{selected_currency.symbol}}
@lang('layout.Payment'): @{{ payeds.toFixed(precision())}} @{{selected_currency.symbol}}
@lang('layout.Total') @lang('layout.Commission'): @{{ myRound(Number.parseFloat(totalCommi) + Number.parseFloat(sum_commission))}} @{{selected_currency.symbol}}
@lang('layout.Sub-Total'): @{{ subtotal.toFixed(precision())}} @{{selected_currency.symbol}}
@lang('layout.Currency') @lang('layout.Payable') @lang('layout.Receivable') @lang('layout.AverageRate')
@{{ summ.currency }} @{{ format_number(Number(summ.payment)) }} @{{format_number(Number(summ.invoice)) }} @{{format_number(Number(summ.rate))}}
--}}

@lang('layout.ContractBased')

@if(getSaleCommission()=="true") @endif @if(searchByCodeLocation()=="true") @endif @if(searchByCodeLocation()=="true") @if(getExpireDate()=="true") @endif @endif @if(itemPicture()=="true") @endif @if(getShwoPriceLevel()=="per_item") @endif @if(getShwoPriceLevel()=="general_percent_per_item") @endif @if(getmine() == 'true') @endif @if(getSaleCommission()=="true") @endif @if(getSaleCommission() =="true") @endif @if(searchByCodeLocation()=="true") @endif @if(searchByCodeLocation()=="true") @if(getExpireDate()=="true") @endif @endif @if(itemPicture()=="true") @endif @if(getShwoPriceLevel()=="per_item") @endif @if(getShwoPriceLevel()=="general_percent_per_item") @endif @if(getmine() == 'true') {{-- 'percentage' 'per_percent_price' 'percent_rate' 'percent_currency' 'laboratory_percentage' 'differ' --}} {{-- --}} @endif @if(getSaleCommission()=="true") @endif @if(systemConfig()[30] == 1) @else @endif
#@lang('layout.Commission')@lang('layout.Contract') @lang('layout.WagonNumber') @lang('layout.ItemName')@lang('layout.Location')@lang('layout.SiteName') @lang('layout.Description1') @lang('layout.Quantity') @lang('layout.OnHand')@lang('layout.ExpireDate')@lang('layout.OMeasureValue1') @lang('layout.OMeasureValue2') @lang('layout.Measure') @lang('layout.Photo') @lang('layout.Density') @lang('layout.OilQuantity') @lang('layout.Measure') @lang('layout.PriceLevel') @lang('layout.PriceLevel') @lang('layout.Percentage') % @lang('layout.PerPercentPrice') @lang('layout.LaboratoryPercentage') % @lang('layout.Differ')@lang('layout.Commission') @lang('layout.Amount') @lang('layout.Commission') @lang('layout.Percentage')%@lang('layout.CostInInventory') @lang('layout.CostInInventory') ({{getHomeCurrency()['code']}}) @lang('layout.NewCost') @lang('layout.Discount') @lang('layout.Driver') @lang('menu.Vehicle') @lang('layout.Total')
@{{index+1}}
@{{ errors.first('inventory_id['+index+']') }} @{{ errors.first('inventory_quantity['+index+']') }} @{{myRound((item.item==null)?null:saleItemQuantity(item.item,item.item.quantity))}} @{{(item.item==null)?null:((item.item.site==null)?null:item.item.ExpireDate)}}
@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
@{{selected_currency.symbol}} %
@{{(item.item==null)? 0:myRound((((item.item.site)?item.item.site.cost: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.site)?item.item.site.cost:item.item.LasCost) * item.item.measure.measure_unit / item.item.measure_unit) *selected_currency.rate)}} @{{selected_currency.symbol}} @{{(item.item==null)?0:myRound((((item.item.site)?item.item.site.cost:item.item.LasCost) * item.item.measure.measure_unit / item.item.measure_unit))}} @lang('layout.SalesToTheDetriment')
@{{selected_currency.symbol}} %
@{{(item.item==null)? 0:getItemTotal(item.item,selected_currency.rate, discountIsAmount, item.item.discount, 1, per_qty_check, item.item.differ,selected_currency.static_rate).result}} @{{selected_currency.symbol}} @{{(item.item==null)? 0:getItemTotalOil(item.item,selected_currency.rate, discountIsAmount, item.item.discount, 1, item.item.differ,selected_currency.static_rate).result}} @{{selected_currency.symbol}}

@lang('layout.Factor') @lang('layout.Loading')

@if(getShwoPriceLevel()=="per_item") @endif @if(getShwoPriceLevel()=="general_percent_per_item") @endif @if(getmine() == 'true') @endif @if(getShwoPriceLevel()=="per_item") @endif @if(getShwoPriceLevel()=="general_percent_per_item") @endif @if(getmine() == 'true') @endif
# @lang('layout.Off') @lang('layout.Category') @lang('layout.ItemName') @lang('layout.VehicleName') @lang('layout.WayBillNumber') @lang('layout.FromSite') @lang('layout.Quantity') @lang('layout.LoadQuantity') @lang('layout.OnHand') @lang('layout.OMeasureValue1') @lang('layout.Measure') @lang('layout.Driver') @lang('layout.PriceLevel') @lang('layout.PriceLevel') @lang('layout.Percentage') % @lang('layout.PerPercentPrice') @lang('layout.LaboratoryPercentage') % @lang('layout.Differ')@lang('layout.BilanceDate') @lang('layout.CostInInventory') @lang('layout.NewCost') @lang('layout.Discount') @lang('layout.Total') @lang('layout.Type') @lang('layout.Quantity') @lang('layout.FinedAmount') @lang('layout.Amount') @lang('layout.Currency') @lang('layout.Rate')
@{{index+1}}
@{{ errors.first('inventory_id['+index+']') }} @{{ errors.first('loading_id['+index+']') }} @{{(item.item==null)?null:item.item.cmr_number}} @{{ errors.first('inventory_quantity['+index+']') }} @{{myRound((item.item==null)?null:item.item.load_quantity)}} @{{myRound((item.item==null)?null:saleItemQuantity(item.item, Number(item.item.quantity) + Number(item.fined_quantity) + Number((item.load_type=='Leakage')?(item.load_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
@{{(item.item==null)?null:item.item.driver_name}} @{{(item.item==null)? 0:myRound((item.item.LasCost * item.item.measure.measure_unit / item.item.measure_unit) *selected_currency.rate)}} @{{selected_currency.symbol}} @lang('layout.SalesToTheDetriment')
@{{selected_currency.symbol}} %
@{{(item.item==null)? 0:getItemTotal(item.item,selected_currency.rate, discountIsAmounttwo, item.item.discount, 1, per_qty_check, item.item.differ, selected_currency.static_rate).result}} @{{selected_currency.symbol}}


# @lang('layout.Contract') @lang('layout.WagonNumber') @lang('layout.ServiceName') @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}}

{{-- Start of Good .................... --}} @if(voucherOfferingType() == '1')
# @lang('layout.Name') @lang('layout.Amount') @lang('layout.Date') @lang('layout.AccountRegister') @lang('layout.Description')
@{{index+1}} {{-- --}}
@endif
@permission('receive-create')
# @lang('layout.SelectBank') @lang('layout.Amount') @lang('layout.Rate') @lang('layout.Currency') @lang('layout.Amount') @lang('layout.Total')
@{{index+1}} @{{myRound(Number((payment.item==null)?null:payment.item.balance)+Number((payment.item==null)?null:payment.item.amount))}}
@{{selected_currency.symbol}}
@endpermission
@if(getInvoicePayment()== "true")
  @lang('layout.InvoicePayment') : (@lang('message.InvoicePaymetNote'))
# @lang('layout.Currency') * @lang('layout.Rate') * @lang('layout.Amount') * @lang('layout.Description') *
@{{index+1}}

@endif
@permission('pay-create')
  @lang('layout.InvoicePayment')
# @lang('layout.Member') @lang('layout.SelectBank') @lang('layout.Amount') @lang('layout.Rate') @lang('layout.Currency') @lang('layout.Amount') @lang('layout.Total')
@{{index+1}} @{{myRound(Number((payment.item==null)?null:payment.item.balance)-Number((payment.item==null)?null:payment.item.amount))}}
@{{selected_currency.symbol}}
@endpermission
{{--
@if(getWhatsApp() =='true')
@endif
--}}
@if(voucherOfferingType() == '1')
@{{ errors.first('currency') }}
@{{ errors.first('currency_rate') }}
@endif
@lang('layout.Cancel')
{!! Form::close() !!}

 

 

@endsection @push('scripts') @endpush