@extends('layouts.app') @section('style') @stop @section('content') @include("layouts.Cmodal") @include("bills.modal")
  @lang('layout.GRNEdit')
@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' => ['Pgrn.update',$purchase->id],'method' => 'PATCH','class' => 'form-horizontal','id'=>'purchase-form'])}} {{ csrf_field() }}
@{{ errors.first('vendor') }}
@{{msg}}
@lang('message.DifferentRateMsg')
@{{selected_currency.symbol}} %
@if(getHourType() == 24) @else @endif
@if(systemConfig()[20] == 1)
@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.Sub-Total'): @{{ format_number( Number(subtotal))}} @{{selected_currency.symbol}}

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

@if(getSerailNumber() =="true") @endif @if(showLocation()=="true") @endif @if(systemConfig()[16] != 0) @endif @if(getM2()!="") @endif @if(getSerailNumber() =="true") @endif @if(showLocation()=="true") @endif @if(systemConfig()[16] != 0) @endif @if(getM2()!="") @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.OnHand') @lang('layout.Density') @lang('layout.OMeasureValue1') @lang('layout.OMeasureValue2') @lang('layout.Measure') @lang('layout.Cost') @lang('layout.Differ') @lang('layout.TotalPurchaseCost') @lang('layout.Measure2') @lang('layout.Discount') @lang('layout.Total')
@{{index+1}} @{{(!item.item)?null:item.item.number}} @{{myRound((item.item==null)?null:purchaseItemQuantity(item.item,item.item.quantity,item.item.old_quantity))}} @{{ (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
@{{selected_currency.symbol}} %
{{-- @{{ (item.item==null)?null:getItemTotals(item.item,selected_currency.rate,discountIsAmount,item.item.discount,1,per_qty_check,item.contract_differ) }} @{{selected_currency.symbol}} --}} @if($edit_sale != 'yes') @endif @if($edit_sale == 'yes') @endif

@if(getDriverInfo()=="true")
@lang('layout.DriverInfo')
{{Form::text('transfer_code',$billInfo->transferCode,['class' => 'form-control','placeholder' => __('layout.TransferCode')])}}
{{Form::text('palce_of_weight',$billInfo->PlaceOfWeight,['class' => 'form-control','placeholder' => __('layout.PlaceOfWeight')])}}
{{Form::text('source_place',$billInfo->sourcePlace,['class' => 'form-control','placeholder' => __('layout.SourcePlace')])}}
{{Form::textarea('transfer_description',$billInfo->trDesription,['class' => 'form-control','rows' => '3','placeholder' => __('layout.Description')])}}
@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() !!}
@endsection @push('scripts') @endpush