@extends('layouts.app') @section('content') @include("layouts.Cmodal") @include("invoices.modal")
@lang('layout.EditFactor')
{!! Form::model($invoice, ['method' => 'PATCH','class'=>'form-horizontal','id'=>'sales-form','route' => ['saleByType.update',$invoice->id]]) !!} {{ csrf_field() }}

@lang('layout.SOmsg')

@{{ errors.first('customer') }}
@{{ errors.first('number') }}
@{{ errors.first('currency') }}
@{{ errors.first('currency_rate') }}
@if(auth()->user()->company()->first()->tag != 1)
@{{ errors.first('currency_rate') }}
@endif
@{{selected_currency.symbol}} %
@if(getHourType() == 24) @else @endif
{{-- --}}
@{{ errors.first('type_number') }}
@{{ errors.first('type_number') }}
@{{ errors.first('driver_id') }}
@lang('layout.Total') : @{{ Number.parseFloat((subtotal - (discount*(subtotal - discountFiledRow)/100) - discountFiledRow)-payeds).toFixed(precision())}} @{{selected_currency.symbol}}
@lang('layout.Discount'): (@{{ Number.parseFloat(discount).toFixed(precision()) }}%) @{{ Number.parseFloat((discount*(subtotal - discountFiledRow)/100) + discountFiledRow).toFixed(precision()) }} @{{selected_currency.symbol}}
@lang('layout.Payment'): @{{ payeds.toFixed(precision())}} @{{selected_currency.symbol}}
@lang('layout.Sub-Total'): @{{ subtotal.toFixed(precision())}} @{{selected_currency.symbol}}
@if(auth()->user()->company()->first()->tag != 1) @endif @if(auth()->user()->company()->first()->tag != 1) @endif
# @lang('layout.ItemName') @lang('layout.SiteName') @lang('layout.Description') @lang('layout.Quantity') @lang('layout.OnHand') @lang('layout.OMeasureValue1') @lang('layout.OMeasureValue2') @lang('layout.Measure') @lang('layout.NewCost') @lang('layout.Discount') @lang('layout.Total') @lang('layout.TotalHQ')
@{{index+1}} @{{ errors.first('inventory_id['+index+']') }} @{{ errors.first('inventory_quantity['+index+']') }} @{{myRound((item.item==null)?null:saleItemQuantity(item.item,item.item.quantity))}}
@{{selected_currency.symbol}} %
@{{ (item.item==null)?null:getItemTotal(item.item,selected_currency.rate,discountIsAmount,item.item.discount, null, null, null, selected_currency.static_rate).result }} @{{selected_currency.symbol}} @{{ (item.item==null)?null: getItemTotal(item.item,selected_currency.rate, null, null, selected_currency.hq_rate, null, selected_currency.static_rate).result }} @{{selected_currency.symbol}}

@if(auth()->user()->company()->first()->tag != 1) @endif @if(auth()->user()->company()->first()->tag != 1) @endif
# @lang('layout.ServiceName') @lang('layout.Quantity') @lang('layout.Measure') @lang('layout.Price') @lang('layout.Total')@lang('layout.TotalHQ')
@{{index+1}}
@{{selected_currency.symbol}}
@{{ (service.item==null)?null:getItemTotalService(service.item,selected_currency.rate,selected_currency.hq_rate, selected_currency.static_rate).result }} @{{selected_currency.symbol}} @{{ (service.item==null)?null:getItemTotalService(service.item,selected_currency.rate,selected_currency.hq_rate,selected_currency.static_rate).resultHQ }} @{{selected_currency.symbol}}

@permission('receive-create') @if(auth()->user()->company()->first()->tag != 1) @endif @if(auth()->user()->company()->first()->tag != 1) @endif
# @lang('layout.SelectBank') @lang('layout.Amount') @lang('layout.Rate') @lang('layout.Currency') @lang('layout.Amount') @lang('layout.Total')@lang('layout.TotalHQ')
@{{index+1}} @{{myRound(Number((payment.item==null)?null:payment.item.balance)+Number((payment.item==null)?null:payment.item.amount))}}
@{{selected_currency.symbol}}
@{{selected_currency.symbol}}
@endpermission @if(getTransferRent()=="true")
@lang('layout.TransferRent')
@lang('layout.Type') @lang('layout.Transmitter') @lang('layout.SelectBank') @lang('layout.Rate') @lang('layout.Currency') @lang('layout.Amount') @lang('layout.Description')
@{{(transfer_rent_bank_selected==null)?null:transfer_rent_bank_selected.code}} @{{selected_currency.symbol}}

@endif
@lang('layout.Cancel')
{!! Form::close() !!}

 

 

@endsection @push('scripts') @endpush