@extends('admin.layout.master') @section('title','VOUCHER MANAGEMENT') @section('custom_style') @endsection @section ('content') @php $cashSl=1000; $discountSl=2000; $isBankOrCash=in_array($voucher_type['type'],[2,4])?1:0; $isPaymentOrReceipt=in_array($voucher_type['type'],[3,4])?1:0; //check receipt $skipJrLedgerIds=[]; if(isset($transactions) && $voucher_type['type']<5){ $cashJournal=$transactions->journals->where('ledger_id',$transactions->reff_ledger_id)->first(); $disCountJournal=$transactions->journals->where('ledger_id',"!=",$transactions->reff_ledger_id)->where('type',$isPaymentOrReceipt?0:1)->first(); // dd($cashJournal); if($cashJournal){ array_push($skipJrLedgerIds,$cashJournal->ledger_id); } if($disCountJournal){ array_push($skipJrLedgerIds,$disCountJournal->ledger_id); } } @endphp
@include('admin.slider.global_slider') @include('accounts.voucher.modal_accounts_ledger') @include('accounts.voucher.modal_head_accounts_code') @include('accounts.voucher.modal_previous_voucher') @endsection @section('script') @include('admin.utilities.cursor_autocomplete') @stop