@extends('layouts.app') @section('content') @include("layouts.Cmodal") @include("layouts.Invmodal") @include("layouts.MMmodal") @include("bills.modal")
  @lang('layout.Enterbill')

@lang('menu.InventoryBrand') :

@{{ brand }}

@lang('layout.Location') :

@{{ location }}

@lang('layout.SerialNum') :

@{{ SNumber }}

@lang('layout.OtherInformations') @lang('layout.Item')

@if(getMarginAndMarkup()=="true")
@lang('layout.Item') @lang('layout.CurrentCost') @lang('layout.CurrentSalePrice') @lang('layout.CurrentMarkup') @lang('layout.NewSalePrice') @lang('layout.NewMarkup')
@{{item_name}} @{{myRound(current_cost)}} @{{selected_currency.symbol}} @{{myRound(current_rate)}} @{{selected_currency.symbol}} @{{myRound(markup_c)}} % @{{myRound(sale_rate_new)}} @{{selected_currency.symbol}} @{{myRound(markup_new)}} %
@endif {{Form::open(['route' => 'bill.store','method' => 'POST','class' => 'form-horizontal','id'=>'purchase-form'])}} {{ csrf_field() }}
{{-- {{Form::open(['route' => 'export.PDFAll','method' => 'DELETE','class' => 'inline'])}} --}}

@lang('layout.SOmsg')

{{-- {{Form::close()}} --}}
@{{ errors.first('vendor') }}
@{{ errors.first('number') }} @{{number_msg}}
@{{msg}}
@{{ errors.first('currency') }}
@{{ errors.first('currency_rate') }}
@lang('message.DifferentRateMsg')
@if(auth()->user()->company()->first()->tag != 1)
@{{ errors.first('currency_rate') }}
@endif
@{{selected_currency.symbol}} %
@{{ errors.first('date') }}
@if(getHourType() == 24) @else @endif
@if(systemConfig()[20] == 1)
@endif @if(systemConfig()[16] != 0)
@endif
@if(getSaleSubMeasure()=="true")
@endif @if(getSaleByOtherMeasureRate() == "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'): @{{ format_number( Number(payeds))}} @{{selected_currency.symbol}}
@lang('layout.Sub-Total'): @{{ format_number( Number(subtotal))}} @{{selected_currency.symbol}}
@lang('layout.Currency') @lang('layout.Payable') @lang('layout.Receivable')
@{{ summ.currency }} @{{ format_number(Number(summ.payment)) }} @{{format_number(Number(summ.invoice)) }}
{{--
--}} {{-- --}} {{-- @lang('layout.ItemNotFound')
--}}
{{-- --}}
@lang('layout.ItemNotFound')

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

@if(getSerailNumber() =="true") @endif @if(showLocation()=="true") @endif @if(systemConfig()[16] != 0) @endif @if(getM2()!="" && getSaleSubMeasure()!="true") @endif @if(getSaleSubMeasure()=="true") @endif @if(getSerailNumber() =="true") @endif @if(showLocation()=="true") @endif @if(systemConfig()[16] != 0) @endif @if(getM2()!="" && getSaleSubMeasure()!="true") @endif @if(getSaleSubMeasure()=="true") @endif @if(getSaleSubMeasure()=="true") @endif
# @lang('layout.Category') @lang('layout.Brand') @lang('layout.ItemName') @lang('layout.SerialNum') @lang('layout.SiteName') @lang('layout.Location') @lang('layout.Type') @lang('layout.Description1') @lang('layout.Model') @lang('layout.Color') @lang('layout.ExpireDate') @lang('layout.Quantity') @lang('layout.Contract') @lang('layout.OnHand') @lang('layout.Density') @lang('layout.OMeasureValue1') @lang('layout.OMeasureValue2') @lang('layout.Measure') @lang('layout.Cost') ({{getHomeCurrency()['code']}}) @lang('layout.Cost') (@{{selected_currency.code}}) @lang('layout.Differ') @lang('layout.TotalPurchaseCost') @lang('layout.Measure2') @lang('layout.Measure2') @lang('layout.EquivalentTo') @lang('layout.SubPrice') @lang('layout.Discount') @lang('layout.SalePrice') @lang('layout.Total')
@{{index+1}}
@{{ errors.first('inventory_id['+index+']') }} {{-- --}}
@{{(!item.item)?null:item.item.number}} @{{ errors.first('quantity['+index+']') }} @{{myRound((item.item==null)?null:item.item.CQuantity)}} @{{myRound((item.item==null)?null:purchaseItemQuantity(item.item,item.item.quantity))}} @{{(item.item==null)?null: Number.parseFloat(item.item.new_rate).toFixed(precision())}} @{{ (item.item==null)?null:(((item.item.cost)?Number.parseFloat(item.item.cost):0) + ((item.contract_differ)?Number.parseFloat(item.contract_differ):0)) }}
@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}} %
{{-- @{{ (item.item==null)?null:getItemTotal(item.item,selected_currency.rate,discountIsAmount,item.item.discount,selected_currency.hq_rate,per_qty_check,item.contract_differ).result }} @{{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.pay_number)+index}} @{{myRound(Number((payment.item==null)?null:payment.item.balance)-Number((payment.item==null)?null:payment.item.amount))}} {{--
--}} {{-- --}} {{-- @{{(payment.item==null)?null:payment.item.code}}
--}}
@{{ (payment.item==null)?null:totalPayment(payment.item,selected_currency.rate,selected_currency.hq_rate, selected_currency.static_rate).result }} @{{selected_currency.symbol}}
@if(getPurchaseExpense()=="true")
@lang('layout.Expense')
# @lang('layout.ExpenseAccount') * @lang('layout.Description') * @lang('layout.Amount') *
@{{index+1}}
@{{selected_currency.symbol}}
@endif @if(getDriverInfo()=="true")
@lang('layout.DriverInfo')
@if(systemConfig()[7] == 0)
{{Form::text('palce_of_weight',null,['class' => 'form-control','placeholder' => __('layout.PlaceOfWeight')])}}
{{Form::text('source_place',null,['class' => 'form-control','placeholder' => __('layout.SourcePlace')])}}
@endif @if(systemConfig()[7] != 0)
# @lang('layout.State') @lang('layout.ItemName') @lang('layout.SiteName') @lang('layout.Quantity') @lang('layout.Transporter_name') @lang('layout.VehicleName') @lang('layout.TankerNumber') @lang('layout.Driver') @lang('layout.VehicleName') @lang('layout.TransitNumber') @lang('layout.WayBillNumber') @lang('layout.SourcePlace') @lang('layout.Destination') @lang('layout.LoadingDate') @lang('layout.RentQuantity') @lang('layout.Price') @lang('layout.Currency') @lang('layout.Rate') @lang('layout.Rent') @lang('layout.Rate') @lang('layout.TotalTransferFee')
@{{index+1}}
@{{(!item.item)?null:item.item.name}} @{{(item.item==null)?null:((item.item.site==null)?null:item.item.site.site_name)}} @{{(item.item==null)?null:item.item.quantity}} @{{ errors.first('rent_quantity['+index+']') }}
@{{(!item.vehicle)?null:item.vehicle.currency}}
@{{(!item.tanker)?null:item.tanker.currency}}
@{{(item==null)?null:item.itransfer_total}}


@endif @endif
@if(getInvoiceTotal() == 'true')
@lang('layout.Sub-Total'): @{{ format_number( Number(subtotal))}} @{{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'): @{{ format_number( Number(payeds))}} @{{selected_currency.symbol}} @lang('layout.Total') : @{{ format_number(Number.parseFloat((subtotal - (discount*(subtotal - discountFiledRow)/100) - discountFiledRow)-payeds ))}} @{{selected_currency.symbol}}
@endif
@if(getPrintDescription()=="true")
@endif
@lang('layout.Cancel')
{!! Form::close() !!}

@lang('layout.MetricType')

@lang('layout.Measure')

@lang('layout.OtherMeasure')

@lang('layout.AddNewMeasure')

@endsection @push('scripts') @endpush