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

Member Detail

Select a Member

{!!Form::select('customer_id', App\Customer::combobox(), null, ['class'=>'form-control','onchange'=>'init_customer_info_arpa(this)']) !!}

{!! Form::label('name', App\Language::trans('Name'), ['class'=>'control-label']) !!} {!! Form::text('name', null, ['class'=>'form-control','required']) !!} {!!$errors->first('name', '')!!}
{!! Form::label('contact_person', App\Language::trans('Contact Person'), ['class'=>'control-label','required']) !!} {!! Form::text('contact_person', null, ['class'=>'form-control']) !!} {!!$errors->first('contact_person', '')!!}
{{App\Language::trans('Billing Information')}}

{!! Form::email('email', null, ['class'=>'form-control','required']) !!} {!!$errors->first('email', '')!!}
{!! Form::text('billing_address1', null, ['class'=>'form-control','required']) !!} {!!$errors->first('billing_address1', '')!!}
{!! Form::text('billing_address2', null, ['class'=>'form-control','autofocus']) !!} {!!$errors->first('billing_address2', '')!!}
{!! Form::select('billing_country_id', App\Country::combobox(), null, ['class'=>'form-control','onchange'=>'init_state_selectbox(this)']) !!} {!!$errors->first('billing_country_id', '')!!}
{!! Form::select('billing_state_id', App\State::combobox($model->billing_country_id), null, ['class'=>'form-control','onchange'=>'init_city_selectbox(this)']) !!} {!!$errors->first('billing_state_id', '')!!}
{!! Form::text('billing_postcode', null, ['class'=>'form-control']) !!} {!!$errors->first('billing_postcode', '')!!}

Select Item(s)

Select Item(s)

@include('_version_02.billings.ar_payment_receiveds.partials._list_by_product_to_invoice')

Trasaction Detail

Transaction Detail

{!! 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('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('deposit_to_account', App\Language::trans('Deposit To'), ['class'=>'control-label col-md-4']) !!}
{!! Form::select('deposit_to_account', App\Setting::bank_or_cash_combobox(), null, ['class'=>'form-control','autofocus','required']) !!} {!!$errors->first('deposit_to_account', '')!!}
{!! Form::label('payment_method', App\Language::trans('Payment Method'), ['class'=>'control-label col-md-4']) !!}
{!! Form::select('payment_method', App\Setting::payment_method(), null, ['class'=>'form-control','autofocus','required' , 'onchange'=>'change_payment_label_text_by_payment_method(this)']) !!} {!!$errors->first('payment_method', ' ')!!}
{!! Form::label('doc_payment_no_ref_no', App\Language::trans('Reference No.'), ['id'=>'doc_payment_no_ref_no', 'class'=>'control-label col-md-4']) !!}
{!!$errors->first('reference_no', '')!!} {!! Form::text('reference_no', null, ['class'=>'form-control','autofocus','required','onblur' => 'reference_no_format_checker(this)']) !!}
Summary
Sub Total
Tax
To Pay

Summary

Summary

Sub Total
Tax
To Pay

Invoice correspond to the payment received will be auto-generate , please after submit .
Please go AR Invoice module to have the invoice

{!! Form::close() !!}
@endsection @section('script') var productInfoUrl = "{{action('ProductsController@getInfo')}}"; var productInfoByLeafProductIdUrl = "{{action('ProductsController@getInfoByLeafProductId')}}"; $( "input[type='text']" ).change(function() { progression_checker_by_step_no(); }); $("select").change(function() { progression_checker_by_step_no(); }); $('#amount').focusout(function() { $('#amount').val(init_decimal_point($('#amount').val())); }); var customerInfoUrl = "{{action('CustomersController@getInfo')}}"; function init_customer_membership_info(me) { $.get(customerInfoUrl, {customer_id:$(me).val()}, function(fdata){ init_loading_overlay(); membership_period = ""; membership_detail = fdata.data.membership_detail; console.log("first"); console.log(JSON.stringify(membership_detail)); membership_detail_personal_info = fdata.data.membership_detail_personal_info; console.log("second"); console.log(JSON.stringify(membership_detail_personal_info)); for (var key in membership_detail_personal_info ) { if(key == 'membership_period' || key == 'membership_extend_to_date'){ $("#" + key).html(membership_detail_personal_info[key]); } } console.log("-----------------Start -------------"); for (var key in membership_detail) { console.log(key); if(key == "address") { for(var key_item in membership_detail[key]){ console.log("hit-" + membership_detail[key][key_item]); if(key_item == "unit_no"){ $("#"+key_item).html(membership_detail[key][key_item]); $("#unit_no").html(membership_detail[key][key_item]); } } }else if(key == "house_fee_items") { console.log("yes it is"); console.log(membership_detail[key]); for (var key_item in membership_detail[key]){ for (var key_item_chiled in membership_detail[key][key_item]){ if(key_item == "id_fee_type"){ $('#payable_item_id').val(membership_detail[key]); alert($('#payable_item_id').val()); } } } } } for (var key in fdata.data) { if(key != "status") { $("input[name="+key+"]").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"); } } } init_hide_loading_overlay(); },"json"); getCustomerInvoiceById($(me).val(),'invoice_table'); } @endsection