コード例 #1
0
 public function getCreate()
 {
     $branches = new Branch();
     $branchAll = $branches->getBranchesDropDown();
     $accountCategories = new AccountCategory();
     $accountCategoriesAll = $accountCategories->getAccountCategoriesDropDown();
     return view('BalanceTransfers.add')->with('branchAll', $branchAll)->with('accountCategoriesAll', $accountCategoriesAll);
 }
コード例 #2
0
 public function getEdit($id)
 {
     $account = NameOfAccount::find($id);
     $accountCategories = new AccountCategory();
     $accountCategoriesAll = $accountCategories->getAccountCategoriesDropDown();
     $branches = new Branch();
     $branchAll = $branches->getBranchesDropDown();
     return view('AccountName.edit', compact('account'))->with('accountCategoriesAll', $accountCategoriesAll)->with('branchAll', $branchAll);
 }
コード例 #3
0
 public function getDelete($id)
 {
     $product = AccountCategory::find($id);
     $product->delete();
     Session::flash('message', 'Account Category  has been Successfully Deleted.');
     return Redirect::to('accountcategory/index');
 }
コード例 #4
0
 public function getMake($invoice_id)
 {
     $accountCategories = new AccountCategory();
     $saleDetails = new SAleDetail();
     $transactions = new Transaction();
     $accountCategoriesAll = $accountCategories->getAccountCategoriesDropDown();
     $saleDetailsAmount = $saleDetails->getTotalAmount($invoice_id);
     $transactionsPaid = $transactions->getTotalPaid($invoice_id);
     $saleDetailsBranch = SAleDetail::where('invoice_id', '=', $invoice_id)->first();
     return view('Sales.paymentAdd', compact('accountCategoriesAll'))->with('saleDetailsAmount', $saleDetailsAmount)->with('saleDetailsBranch', $saleDetailsBranch->branch_id)->with('transactionsPaid', $transactionsPaid);
 }
コード例 #5
0
@extends('baseLayout')
@section('styles')
    <link rel="stylesheet" type="text/css" href="{{ URL::asset('assets/plugins/select2/select2_metro.css') }}" />
    <link rel="stylesheet" type="text/css" href="{{ URL::asset('assets/plugins/bootstrap-datepicker/css/datepicker.css') }}" />
@stop
@section('content')
    <div class="row">
        <div class="col-md-12">
         <?php 
$account = \App\NameOfAccount::find($account_id);
$accountCat = \App\AccountCategory::find($account->account_category_id);
?>
        <center>
            <h3 class="page-title">
             Accounts Report  for <span style="color: black"> {{$account->name}} ({{$accountCat->name}})</span>
            </h3>
            </center>
         </div>

    </div>
    <div class="row">
        <div class="col-md-12">
            <div class="portlet box light-grey">

                <div class="portlet-title">
                    <?php 
$date01 = explode('/', $date1);
$month1 = $date01[0];
$day1 = $date01[1];
$year1 = $date01[2];
$date001 = $day1 . '/' . $month1 . '/' . $year1;
コード例 #6
0
 public function getMakeall()
 {
     $accountCategories = new AccountCategory();
     $accountCategoriesAll = $accountCategories->getAccountCategoriesDropDown();
     $branches = new Branch();
     $branchAll = $branches->getBranchesDropDown();
     $buyers = new Party();
     $partyAll = $buyers->getSuppliersDropDown();
     return view('PurchaseInvoice.paymentAddAll', compact('accountCategoriesAll'))->with('branchAll', $branchAll)->with('partyAll', $partyAll);
 }
コード例 #7
0
 public function getMake()
 {
     $accountCategories = new AccountCategory();
     $accountCategoriesAll = $accountCategories->getAccountCategoriesDropDown();
     $branches = new Branch();
     $branchAll = $branches->getBranchesDropDown();
     return view('Expenses.paymentAdd', compact('accountCategoriesAll'))->with('branchAll', $branchAll);
 }
コード例 #8
0
                            <th>Account Name</th>
                            <th>Payment Method</th>
                            <th>Remarks</th>
                            <th style="text-align: right;">Amount</th>

                        </tr>
                        </thead>
                        <tbody>
                        <?php 
$totalSale = 0;
?>

                        @foreach($results as $result )
                            <?php 
$accounts = \App\NameOfAccount::find($result->account_name_id);
$accountCategory = \App\AccountCategory::find($result->account_category_id);
$party = \App\Party::find($result->party);
?>

                            <tr class="odd gradeX">
                                <td>{{\App\Transaction::convertDate($result->date)}}</td>
                                <td>{{$party->name}}</td>
                                <td><a target="_blank" href="{{URL::to('sales?invoice_id='.$result->invoice)}}">{{$result->invoice}}</a></td>
                                <td>{{$accounts->name }}{{' ( '.$accountCategory->name.' )'}}</td>
                                <td>{{$result->payment_method}}
                                    @if($result->cheque_no)
                                        {{' ( '.$result->cheque_no.' )'}}
                                    @endif
                                </td>
                                <td>{{$result->remarks}}</td>
                                <td style="text-align: right;">{{$result->amount}}</td>
コード例 #9
0
 public function getMake($invoice_id)
 {
     $accountCategories = new AccountCategory();
     $accountCategoriesAll = $accountCategories->getAccountCategoriesDropDown();
     $purchaseDetails = new PurchaseInvoiceDetail();
     $transactions = new Transaction();
     $purchaseDetailsAmount = $purchaseDetails->getTotalAmount($invoice_id);
     $transactionsPaid = $transactions->getTotalPaidPurchase($invoice_id);
     return view('PurchaseInvoice.paymentAdd', compact('accountCategoriesAll'))->with('purchaseDetailsAmount', $purchaseDetailsAmount)->with('transactionsPaid', $transactionsPaid);
 }
コード例 #10
0
ファイル: list.blade.php プロジェクト: woakes070048/cemcoErp
                        <th>SL</th>
                        <th>Branch Name</th>
                        <th>Name</th>
                        <th>Category</th>
                        <th>Balance</th>
                        <th>Created By</th>
                        <th >Action</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php 
$sl = 1;
?>
                    @foreach($accountNames as $accountName)
                        <?php 
$accounts = \App\AccountCategory::find($accountName->account_category_id);
$branch = \App\Branch::find($accountName->branch_id);
?>
                    <tr class="odd gradeX">
                        <td><?php 
echo $sl;
?>
</td>
                        <td>{{$branch->name}}</td>
                        <td>{{$accountName->name}}</td>
                        <td>{{$accounts->name}}</td>
                        <td>{{$accountName->opening_balance}}</td>
                        <td>{{$accountName->user->username}}</td>
                     <td>
                            <a class="btn blue btn-sm editAccountName" data-toggle="modal"  data-target="#ajax2" href="{{URL::to('accountnames/edit',$accountName->id )}}" >
                                <i class="fa fa-edit"></i> Edit Account Name</a>
コード例 #11
0
 public function getMake($invoice_id)
 {
     $accountCategories = new AccountCategory();
     $transactions = new Transaction();
     $accountCategoriesAll = $accountCategories->getAccountCategoriesDropDown();
     $branches = new Branch();
     $branchAll = $branches->getBranchesDropDown();
     $expense = Expense::where('invoice_id', '=', $invoice_id)->first();
     $transactionsPaid = $transactions->getTotalExpensePaid($invoice_id);
     return view('Expenses.paymentAdd', compact('accountCategoriesAll'))->with('invoice_id', $invoice_id)->with('totalExpense', $expense->amount)->with('transactionsPaid', $transactionsPaid)->with('branchAll', $branchAll);
 }
コード例 #12
0
 public function getMakeall()
 {
     $accountCategories = new AccountCategory();
     $saleDetails = new SAleDetail();
     $transactions = new Transaction();
     $accountCategoriesAll = $accountCategories->getAccountCategoriesDropDown();
     $branches = new Branch();
     $branchAll = $branches->getBranchesDropDown();
     $buyers = new Party();
     $partyAll = $buyers->getPartiesDropDown();
     return view('Sales.paymentAddAll', compact('accountCategoriesAll'))->with('branchAll', $branchAll)->with('partyAll', $partyAll);
 }
コード例 #13
0
ファイル: list.blade.php プロジェクト: woakes070048/cemcoErp
                        <th>Amount</th>
                        <th>Remarks</th>
                        <th>Created By</th>
                        <th>Action</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php 
$sl = 1;
?>
                    @foreach($balanceTransfers as $transfer )
                        <?php 
$branch1 = \App\Branch::find($transfer->from_branch_id);
$branch2 = \App\Branch::find($transfer->to_branch_id);
$category1 = \App\AccountCategory::find($transfer->from_account_category_id);
$category2 = \App\AccountCategory::find($transfer->to_account_category_id);
$account1 = \App\NameOfAccount::find($transfer->from_account_name_id);
$account2 = \App\NameOfAccount::find($transfer->to_account_name_id);
$user = \App\User::find($transfer->user_id);
?>
                    <tr class="odd gradeX">
                        <td><?php 
echo $sl;
?>
</td>
                        <td>{{$branch1->name}}</td>
                        <td>{{$category1->name}}</td>
                        <td>{{$account1->name}}</td>
                        <td>{{$branch2->name}}</td>
                        <td>{{$category2->name}}</td>
                        <td>{{$account2->name}}</td>