Project - {{ $rentVoucher->projectName}}
Project Type - {{ $rentVoucher->projectTypeCode}} - {{ $rentVoucher->projectTypeName}}
Branch - {{ $rentVoucher->branchCodeWith0}} - {{ $rentVoucher->branchName}}
Rent Month - {{ $rentMonth }}
{!! Form::open(array('url' => '', 'role' => 'form', 'class'=>'form-horizontal form-groups')) !!}
{{ Form::hidden("companyIdFk", $rentVoucher->companyIdFk) }}
{{ Form::hidden("projectIdFk", $rentVoucher->projectIdFk) }}
{{ Form::hidden("projectTypeIdFk", $rentVoucher->projectTypeIdFk) }}
{{ Form::hidden("rentTypeIdFk", $rentVoucher->rentTypeIdFk) }}
{{ Form::hidden("rentIdFk", $rentVoucher->rentIdFk) }}
{{ Form::hidden("branchIdFk", $rentVoucher->branchId) }}
{{ Form::hidden("rentMonth", $rentMonth) }}
{{ Form::hidden("rentDebitLedgerCodeIdFk", $rentAutoVoucherConfig->rentDebitLedgerCodeIdFk) }}
{{ Form::hidden("rentLocalNarration", $rentAutoVoucherConfig->rentLocalNarration) }}
{{ Form::hidden("rentGlobalNarration", $rentAutoVoucherConfig->rentGlobalNarration) }}
@if($journalVoucherRequired)
{{ Form::hidden("rentAmount", ($rentVoucher->rentAmount - $adjustmentAmount)) }}
@else
{{ Form::hidden("rentAmount", $rentVoucher->rentAmount) }}
@endif
@if( ($rentVoucher->advanceAmount != 0) && ($rentVoucher->monthlyAdvanceDeductionRequired == 1) )
{{ Form::hidden("advanceAmount", $rentVoucher->advanceAmount) }}
{{ Form::hidden("monthlyAdvanceDeductionRequired", $rentVoucher->monthlyAdvanceDeductionRequired) }}
@if($journalVoucherRequired)
{{ Form::hidden("monthlyAdvanceDeductionAmount", $adjustmentAmount) }}
@endif
{{ Form::hidden("adjustmentDebitLedgerCodeIdFk", $rentAutoVoucherConfig->adjustmentDebitLedgerCodeIdFk) }}
{{ Form::hidden("adjustmentCreditLedgerCodeIdFk", $rentAutoVoucherConfig->adjustmentCreditLedgerCodeIdFk) }}
{{ Form::hidden("adjustmentGlobalNarration", $rentAutoVoucherConfig->adjustmentGlobalNarration) }}
@endif
{{-- | Payment Type | --}}
Select Ledger |
|
@php
$rentDebitLedger = DB::table('acc_account_ledger')->where('id', $rentAutoVoucherConfig->rentDebitLedgerCodeIdFk)->selectRaw("CONCAT(code, ' - ', name) AS account")->value('account');
$adjustmentDebitLedger = DB::table('acc_account_ledger')->where('id', $rentAutoVoucherConfig->adjustmentDebitLedgerCodeIdFk)->selectRaw("CONCAT(code, ' - ', name) AS account")->value('account');
$adjustmentCreditLedger = DB::table('acc_account_ledger')->where('id', $rentAutoVoucherConfig->adjustmentCreditLedgerCodeIdFk)->selectRaw("CONCAT(code, ' - ', name) AS account")->value('account');
@endphp
@if($journalVoucherRequired or $debitVoucherRequired)
@if($journalVoucherRequired)
| Dr Account |
Cr Account |
Amount |
Narration |
| {{$adjustmentDebitLedger}} |
{{$adjustmentCreditLedger}} |
{{ number_format($adjustmentAmount) }} |
{{$rentMonth}} |
| Total: |
{{ number_format($adjustmentAmount) }} |
|
@endif
@if($debitVoucherRequired)
| Dr Account |
Cr Account |
Amount |
Narration |
| {{$rentDebitLedger}} |
|
@if($journalVoucherRequired)
{{ number_format($rentVoucher->rentAmount - $adjustmentAmount)}} |
@else
{{ number_format($rentVoucher->rentAmount)}} |
@endif
{{$rentMonth}} |
| Total: |
@if($journalVoucherRequired)
{{ number_format($rentVoucher->rentAmount - $adjustmentAmount)}} |
@else
{{ number_format($rentVoucher->rentAmount)}} |
@endif
|
@endif
@else
@endif
{!! Form::close() !!}