@extends('layouts.app') @section('style') @stop @section('content') @include("layouts.Cmodal") @include("bills.modal")
  @if($duplicate) @lang('layout.Enterbill') @else @lang('layout.UpdateEnterBill') @endif
@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 @if($duplicate) {{Form::open(['route' => ['bill.store',$purchase->id],'method' => 'post','class' => 'form-horizontal','id'=>'purchase-form'])}} @else {{Form::open(['route' => ['bill.update',$purchase->id],'method' => 'PATCH','class' => 'form-horizontal','id'=>'purchase-form'])}} @endif {{ csrf_field() }}
@{{ errors.first('vendor') }}
@if($duplicate)
@else
@endif
@{{msg}}
@lang('message.DifferentRateMsg')
@{{selected_currency.symbol}} %
@{{ errors.first('date') }}
@if(getHourType() == 24) @else @endif
@if(systemConfig()[20] == 1)
@endif @if(systemConfig()[16] != 0)
@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}}

@{{(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

# @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.number)}} @{{myRound(Number((payment.item==null)?null:payment.item.balance)-Number((payment.item==null)?null:payment.amount))}} @if(systemConfig()[30] == 1)
@{{selected_currency.symbol}}
@else
@{{selected_currency.symbol}}
@endif
@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('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(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}}

@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
@if(!$duplicate) @endif @lang('layout.Cancel')
{!! Form::close() !!}
@endsection @push('scripts') @endpush