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

@{{(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(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(getPurchaseExpenseRow() == '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(getSaleCostLocation() == 'true') @endif @if(getSerailNumber() =="true") @endif @if(getSerialNumberTimes() >= 1 && getSerialNumberTimes() <= 9) @endif @if(getSerialNumberTimes() >= 2 && getSerialNumberTimes() <= 9) @endif @if(getSerialNumberTimes() >= 3 && getSerialNumberTimes() <= 9) @endif @endif @if(colorModel() == "true") @endif @if(getPurchaseExpenseRow() == '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(getSaleCostLocation() == '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.CostExpense') @lang('layout.ExpenseDescription') @lang('layout.CBM') @lang('layout.Item')@lang('layout.CBM')@lang('layout.Measure') @lang('layout.Photo') @lang('layout.Cost') @lang('layout.ChangeMeasureTwo') @lang('layout.Measure2') @lang('layout.OnHand') @lang('layout.Discount') @lang('layout.SalePercentage')@lang('layout.SalePrice') @lang('layout.Total')
@{{index+1}} @{{(!item.item)?null:item.item.number}} @{{(!item.item)?null:item.item.number1}} @{{(!item.item)?null:item.item.number2}} @{{(!item.item)?null:item.item.number3}} @if(showLocation()=="true") @{{myRound((item.item==null)?null:purchaseItemQuantity(item.item,item.item.quantity,item.item.old_quantity))}} @{{(!item.item)?null:item.item.base_cbm}}
@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}} %
{{--
@{{selected_currency.symbol}}
--}}
@if($edit_sale != 'yes') @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.Total') : @{{ format_number(Number.parseFloat((subtotal - (discount*(subtotal - discountFiledRow)/100) - discountFiledRow)-payeds ))}} @{{selected_currency.symbol}}
@endif
@if(!$duplicate) @endif @lang('layout.Cancel')
{!! Form::close() !!}
@endsection @push('scripts') @endpush