Beispiel #1
0
    } else {
        $supplier_id = NULL;
    }
    if ($_POST['to_date']) {
        $to_date = $_POST['to_date'];
        $to_date = $accounts->_date('Y-m-d H:i:s', $to_date);
    } else {
        $to_date = NULL;
    }
    if ($_POST['from_date']) {
        $from_date = $_POST['from_date'];
        $from_date = $accounts->_date('Y-m-d H:i:s', $from_date);
    } else {
        $from_date = NULL;
    }
    $results = $accounts->get_payable_receviable_report($account = NULL, $account_type = $supplier_name, $to_date = $to_date, $from_date = $from_date, $type = 'payable', $status = $p_status, $bank = NULL);
}
?>
	
		<!-- Begin page heading -->
		

		<div class="the-box full no-border">
			<div class="table-responsive">
			<?php 
if (isset($results)) {
    // print_f($results);
    ?>
			<table class="table table-th-block table-primary">
				<thead>
					<th>Payable Amount</th>
Beispiel #2
0
			<li><a href="accounts.php">Accounts</a></li>
			<li class="active">Account Receviable</li>
		</ol>
		<!-- End breadcrumb -->
		
		<div class="panel panel-info">
		  <div class="panel-heading">
		  	<h3>Account Receviable</h3>
		  </div>
		  <div class="panel-body">
			<!-- BEGIN DATA TABLE -->
			<div class="the-box">
				<div class="table-responsive">
					<?php 
$accounts = new accounts();
$results = $accounts->get_payable_receviable_report($account = NULL, $account_type = NULL, $to_date = NULL, $from_date = NULL, $type = 'receviable', $status = 0);
if ($results) {
    //	print_f($results);
    ?>
						<table class="table table-striped table-hover" id="datatable-example">
							<thead class="the-box dark full">
								<tr>
									<th>Type</th>
									<th>Person Type</th>
									<th>Description</th>
									<th>Bank</th>
									<th>Amount</th>
									<th>Due Date</th>
									<th>Action</th>
								</tr>
							</thead>
    } else {
        $bank_id = NULL;
    }
    if ($_POST['to_date']) {
        $to_date = $_POST['to_date'];
        $to_date = $accounts->_date('Y-m-d H:i:s', $to_date);
    } else {
        $to_date = NULL;
    }
    if ($_POST['from_date']) {
        $from_date = $_POST['from_date'];
        $from_date = $accounts->_date('Y-m-d H:i:s', $from_date);
    } else {
        $from_date = NULL;
    }
    $results = $accounts->get_payable_receviable_report($account = NULL, $account_type = NULL, $to_date = $to_date, $from_date = $from_date, $type = 'receviable', $status = $p_status, $bank = $bank_id);
}
?>
		<!-- Begin page heading -->
		

		<div class="the-box full no-border">
			<div class="table-responsive">
			<?php 
if (isset($results)) {
    // print_f($results);
    ?>
			<table class="table table-th-block table-primary">
				<thead>
					<th>Receviable Amount</th>
					<th>Receviable Description</th>