47 lines
3.4 KiB
PHP
47 lines
3.4 KiB
PHP
<div class="content-wrapper">
|
|
<div class="content">
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col">
|
|
<div class="card card-primary card-outline">
|
|
<div class="card-header">
|
|
<h5 class="m-0"><?php echo $pageTitle; ?> </h5>
|
|
</div>
|
|
<div class="card-body">
|
|
<form method="GET" action="">
|
|
<div class="row">
|
|
<div class="col">
|
|
<label for="vouchertypes">Voucher Type</label>
|
|
<select name="vouchertypes" id="vouchertypes" class="form-control">
|
|
<option value="">Choose Voucher Type</option>
|
|
<?php foreach ($VoucherTypes as $VoucherType) { ?>
|
|
<option value="<?php echo $VoucherType->vouchertype_id; ?>" <?php echo (isset($_GET['vouchertypes'])) ? (($VoucherType->vouchertype_id == $_GET['vouchertypes']) ? "SELECTED" : "") : "" ?>><?php echo $VoucherType->voucher_type; ?></option>
|
|
<?php }; ?>
|
|
</select>
|
|
</div>
|
|
<!-- <div class="col"><?php $this->myaccounts->showAccountsCombo("account_id", "Account", "account_id", "status=1", isset($_GET['account_id']) ? $_GET['account_id'] : ''); //fillComboWithValue("account_id","Account","account_id","tbl_accounts","account_name","account_id",isset($_GET['account_id'])?$_GET['account_id']:'');
|
|
?></div> -->
|
|
<div class="col-2"><?php createNepaliDateInput("from_date", "From Date", "from_date", isset($fromDate_bs) ? $fromDate_bs : FYStart()); ?></div>
|
|
<div class="col-2"><?php createNepaliDateInput("to_date", "To Date", "to_date", isset($toDate_bs) ? $toDate_bs : FYEnd()); ?></div>
|
|
<div class="col-1"><?php createButton("show_voucher", "Show", "show_voucher", "Submit", "mt-26"); ?></div>
|
|
<div class="col-1"><?php createButton("show_voucher_reset", "Reset", "reset", site_url("accounts/vouchers/listvouchers"), "mt-26"); ?></div>
|
|
</div>
|
|
</form>
|
|
<div id="dataTable_Commands"></div>
|
|
<?php
|
|
$fromDate = isset($_GET['from_date']) ? NepaliToEnglishDate($_GET['from_date']) : NepaliToEnglishDate(firstDayOfNepaliMonth());
|
|
$toDate = isset($_GET['to_date']) ? NepaliToEnglishDate($_GET['to_date']) : Today();
|
|
// echo $toDate;
|
|
$account_id = isset($_GET['account_id']) ? $_GET['account_id'] : '';
|
|
$vouchertype_id = isset($_GET['vouchertypes']) ? $_GET['vouchertypes'] : '';
|
|
$this->myaccounts->listVouchers($fromDate, $toDate, $account_id, $vouchertype_id, true, false, $fiscalStart, $fiscalEnd);
|
|
?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|