{{----}} {{--*/ $dr_total = 0 /*--}} {{--*/ $cr_total = 0 /*--}} {{--*/ $total = $account_open_balance /*--}} @foreach($account_transactions as $index=>$cash_book_transaction) @if($cash_book_transaction->transaction_type =='PAYMENTS') {{--*/ $amount = $cash_book_transaction->amount /*--}} @else @if(sizeof($cash_book_transaction->journalVoucher->purchaseOrderJournalVouchers)) {{--*/ $i=1 /*--}} {{--*/ $total_amount = 0 /*--}} {{--*/ $i = 0 /*--}} {{--*/ $sub_amount_usd = 0 /*--}} {{--*/ $sub_amount_tsh = 0 /*--}} {{--*/ $total_tax_usd = 0 /*--}} {{--*/ $total_tax_tsh = 0 /*--}} {{--*/ $sub_trip_amount = 0 /*--}} {{--*/ $number_of_rows = 6/*--}} @foreach($cash_book_transaction->journalVoucher->purchaseOrderJournalVouchers as $purchase_order_journal_voucher) @foreach($purchase_order_journal_voucher->purchaseOrder->purchaseOrderItems as $index=>$purchase_order_item) @endforeach @endforeach @else {{--*/ $amount = $cash_book_transaction->amount /*--}} @endif @endif @endforeach
Vandor Report - {{$vendor->name}}
From {{\Carbon\Carbon::parse($date[0])->toFormattedDateString()}} To {{\Carbon\Carbon::parse($date[1])->toFormattedDateString()}}
Date LPO Ref Item Desc Quantity Price Dr Cr Balance
{{ ($total > 0) ? number_format($total,2) : "( ".number_format(-1*$total,2)." )" }}
{{\Carbon\Carbon::parse($cash_book_transaction['date'])->toFormattedDateString()}} {{$cash_book_transaction->journalVoucher->document}} {{$cash_book_transaction['description']}} @if($cash_book_transaction['type']=='DEBITED') {{ number_format($amount,2)}} {{--*/ $total -= $amount /*--}} @endif @if($cash_book_transaction['type']=='CREDITED') {{ number_format($amount,2) }} {{--*/ $total += $amount /*--}} @endif {{ ($total > 0) ? number_format($total,2) : "( ".number_format(-1*$total,2)." )" }}
{{\Carbon\Carbon::parse($cash_book_transaction['date'])->toFormattedDateString()}} {{$purchase_order_journal_voucher->purchaseOrder->id}} {{$cash_book_transaction->journalVoucher->document}} {{$purchase_order_item->item->name}} {{number_format($purchase_order_item->quantity)}} {{$purchase_order_item->item->units}} {{number_format($purchase_order_item->valuation_rate)}} {{--*/ $amount = $purchase_order_item->valuation_rate*$purchase_order_item->quantity /*--}} @if($cash_book_transaction['type']=='DEBITED') {{ number_format($amount,2)}} {{--*/ $total -= $amount /*--}} @endif @if($cash_book_transaction['type']=='CREDITED') {{ number_format($amount,2) }} {{--*/ $total += $amount /*--}} @endif {{ ($total > 0) ? number_format($total,2) : "( ".number_format(-1*$total,2)." )" }} {{--*/ $i++ /*--}} {{--*/ $total_amount += $purchase_order_item->quantity*$purchase_order_item->valuation_rate /*--}}
{{\Carbon\Carbon::parse($cash_book_transaction['date'])->toFormattedDateString()}} {{$cash_book_transaction->journalVoucher->document}} {{$cash_book_transaction['description']}} @if($cash_book_transaction['type']=='DEBITED') {{ number_format($amount,2)}} {{--*/ $total -= $amount /*--}} @endif @if($cash_book_transaction['type']=='CREDITED') {{ number_format($amount,2) }} {{--*/ $total += $amount /*--}} @endif {{ ($total > 0) ? number_format($total,2) : "( ".number_format(-1*$total,2)." )" }}
  {{ ($total > 0) ? number_format($total,2) : "( ".number_format(-1*$total,2)." )" }}