@extends('layouts.app') @section('style') @stop @section('content') @include("layouts.Cmodal") @include("layouts.Invmodal") @include("bills.modal")
  @lang('layout.WriteChecks')

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

@lang('layout.SOmsg')

@{{ errors.first('vendor') }}
@{{ errors.first('number') }} @{{number_msg}}
@{{ errors.first('currency') }}
@{{ errors.first('currency_rate') }}
@{{selected_currency.symbol}} %
@if(systemConfig()[20] == 1)
@endif
@{{msg}}
@{{ errors.first('date') }}
@if(getHourType() == 24) @else @endif
@if(getWhatsApp() =='true' && getWhatsAppType() == 'direct')
@endif
@lang('layout.Total') @{{ format_number(Number.parseFloat((subtotal - (discount*(subtotal - discountFiledRow)/100) - discountFiledRow)-payeds + Number(total_item_expense) ))}} @{{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.Sub-Total') @{{ format_number( Number(subtotal))}} @{{selected_currency.symbol}}
@lang('layout.TotalExpense') @{{ format_number( Number(total_item_expense))}} @{{selected_currency.symbol}}
{{--
--}} {{-- --}} {{-- --}}
{{-- --}}
@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(getSerialNumberTimes() >= 1 && getSerialNumberTimes() <= 9) @endif @if(getSerialNumberTimes() >= 2 && getSerialNumberTimes() <= 9) @endif @if(getSerialNumberTimes() >= 3 && getSerialNumberTimes() <= 9) @endif @if(showLocation()=="true") @endif @if(colorModel() =="true") @endif @if(getShowCBM()=="true") @endif @if(getShowCBM()=="true") @endif @if(itemPicture()=="true") @endif @if(QuantityBySecondMeasure()=="true") @endif @if(getM2()!="") @endif @if(QuantityBySecondMeasure()=="true") @endif @if(getPurchaseExpenseRow() == 'true') @endif @if(getSerailNumber() =="true") @endif @if(getSerialNumberTimes() >= 1 && getSerialNumberTimes() <= 9) @endif @if(getSerialNumberTimes() >= 2 && getSerialNumberTimes() <= 9) @endif @if(getSerialNumberTimes() >= 3 && getSerialNumberTimes() <= 9) @endif @if(showLocation()=="true") @endif @if(colorModel() == "true") @endif @if(getShowCBM()=="true") @endif @if(getShowCBM()=="true") @endif @if(itemPicture()=="true") @endif @if(QuantityBySecondMeasure()=="true") @endif @if(getM2()!="") @endif @if(QuantityBySecondMeasure()=="true") @endif @if(getPurchaseExpenseRow() == 'true') @endif
# @lang('layout.Category') @lang('layout.Brand') @lang('layout.ItemName') @lang('layout.SerialNum') @lang('layout.SerialNumber1') @lang('layout.SerialNumber2') @lang('layout.SerialNumber3') @lang('layout.SiteName') @lang('layout.Location') @lang('layout.Description1') @lang('layout.Model') @lang('layout.Color') @lang('layout.ExpireDate') @lang('layout.Quantity') @lang('layout.OnHand') @lang('layout.OMeasureValue1') @lang('layout.OMeasureValue2') @lang('layout.CBM') @lang('layout.Item')@lang('layout.CBM')@lang('layout.Measure')@lang('layout.Photo')@lang('layout.Cost') ({{getHomeCurrency()['code']}}) @lang('layout.Cost') (@{{selected_currency.code}}) @lang('layout.ChangeMeasureTwo') @lang('layout.Measure2') @lang('layout.OnHand') @lang('layout.CostExpense') @lang('layout.ExpenseDescription') @lang('layout.Discount') @lang('layout.SalePercentage') @lang('layout.SalePrice') @lang('layout.Total')
@{{index+1}}
@{{ errors.first('inventory_id['+index+']') }}
@{{(!item.item)?null:item.item.number}} @{{(!item.item)?null:item.item.number1}} @{{(!item.item)?null:item.item.number2}} @{{(!item.item)?null:item.item.number3}} @{{ errors.first('quantity['+index+']') }} @{{myRound((item.item==null)?null:purchaseItemQuantity(item.item,item.item.quantity))}} @{{(!item.item)?null:item.item.base_cbm}} @{{(item.item==null)?null: Number.parseFloat(item.item.new_rate).toFixed(precision())}}
@if(QuantityBySecondMeasure() != "true") @if(getSaleAmountSecondMeasure()=="true") @{{myRound((item.item==null)?null:secoundMeasurQuantity(item.item,item.item.quantity))}} @endif @endif
@{{myRound((item.item==null)?null:purchaseItemQuantitySecond(item.item,item.item.quantity_by_second_measure))}}
@{{selected_currency.symbol}} %
{{-- @{{ (item.item==null)?null:getItemTotal(item.item,selected_currency.rate,discountIsAmount,item.item.discount,selected_currency.hq_rate).result }} @{{selected_currency.symbol}} --}}
@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.Total') : @{{ format_number(Number.parseFloat((subtotal - (discount*(subtotal - discountFiledRow)/100) - discountFiledRow)-payeds ))}} @{{selected_currency.symbol}}
@endif
@lang('layout.Cancel')
{!! Form::close() !!}

@lang('layout.MetricType')

@lang('layout.Measure')

@lang('layout.OtherMeasure')

@lang('layout.AddNewMeasure')

@endsection @push('scripts') @endpush