@extends('_version_02.commons.layouts.admin') @section('content') @include('_version_02.commons.layouts.partials._alert')
{!! Form::model($model, ['class'=>'form-horizontal', 'id'=> 'invoice-form']) !!}

Trasaction Detail

Transaction Detail

{!! Form::label('status', App\Language::trans('Document Status'), ['class'=>'control-label','required']) !!} {!! Form::text('status', null, ['class'=>'form-control','required','readonly']) !!} {!!$errors->first('status', '')!!}
{!! Form::label('document_no', App\Language::trans('Document No.'), ['class'=>'control-label','required']) !!} {!! Form::text('document_no', null, ['class'=>'form-control','required']) !!} {!!$errors->first('document_no', '')!!}
{!! Form::label('document_date', App\Language::trans('Document Date'), ['class'=>'control-label','required']) !!} {!! Form::text('document_date', null, ['class'=>'form-control','required']) !!} {!!$errors->first('document_date', '')!!}
{!! Form::label('tax_amount', App\Language::trans('Tax Amount'), ['class'=>'control-label']) !!} {!! Form::number('tax_amount', null, ['class'=>'form-control','onchange'=>'init_calculate_ietransaction(this)','required']) !!} {!!$errors->first('tax_amount', '')!!}
{!! Form::label('amount', App\Language::trans('Amount'), ['class'=>'control-label']) !!} {!! Form::number('amount', null, ['class'=>'form-control','onchange'=>'init_calculate_ietransaction(this)','required']) !!} {!!$errors->first('amount', '')!!}
{!! Form::label('payment_term_id', App\Language::trans('Payment Term'), ['class'=>'control-label']) !!} {!! Form::select('payment_term_id', App\PaymentTerm::combobox(), null, ['class'=>'form-control','required']) !!} {!!$errors->first('payment_term_id', '')!!}
{!! Form::label('currency_id', App\Language::trans('Currency'), ['class'=>'control-label','required']) !!} {!! Form::select('currency_id', App\Currency::combobox(), null, ['class'=>'form-control','onchange'=>'init_currency_rate(this)','required']) !!} {!!$errors->first('currency_id', '')!!}
{!! Form::label('currency_rate', App\Language::trans('Currency Rate'), ['class'=>'control-label','required']) !!} {!! Form::text('currency_rate', null, ['class'=>'form-control','required']) !!} {!!$errors->first('currency_rate', '')!!}
Summary
Sub Total
Tax
Total

Summary

Summary

Sub Total
Tax
Summary

Finish

As a member, you agree to our terms and conditions to use.
{!! Form::close() !!}
@endsection @section('script') var customerInfoUrl = "{{action('CustomersController@getInfo')}}"; var productInfoUrl = "{{action('ProductsController@getInfo')}}"; function init_customer_info(me) { $.get(customerInfoUrl, {customer_id:$(me).val()}, function(fdata){ for (var key in fdata.data) { if(key != "status") { $("input[name="+key+"]").val(fdata.data[key]); if(key == "phone_no_1") { $("input[name=phone_no]").val(fdata.data[key]); } if(key == "currency_label") { $(".currency_label").html(fdata.data[key]); } if(key.match(/_id/g)) { $("select[name="+key+"]").val(fdata.data[key]).trigger("change"); } } } setTimeout(function(){ var billingStateSelectbox = $("select[name*=billing_state_id]"); billingStateSelectbox.empty(); var billing_state = $.get(statesComboboxUrl, {country_id:fdata.data["billing_country_id"]}, function(data){ for (var i = 0; i < data.length; i++) { billingStateSelectbox.append($("