2024-07-10 12:43:19 +00:00
|
|
|
<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 bg-primary disabled color-palette">
|
|
|
|
<h3 class="card-title m-0"><?php echo $pageTitle; ?></h3>
|
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
|
|
<form method="GET" action="#">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col"><?php createNepaliDateInput("from_date", "", "from_date", isset($fromDate_Nepali) ? $fromDate_Nepali : firstDayOfNepaliMonth()); ?></div>
|
|
|
|
<div class="col"><?php createNepaliDateInput("to_date", "", "to_date", isset($toDate_Nepali) ? $toDate_Nepali : ''); ?></div>
|
2024-07-12 12:12:29 +00:00
|
|
|
<div class="col"><?php $this->myaccounts->showAccountsCombo("account_id", "", "account_id", "status=1", isset($_GET['account_id']) ? $_GET['account_id'] : 1, $CSSclass = ""); ?> </div>
|
2024-08-25 12:52:52 +00:00
|
|
|
<div class="col"><?php createButton("show_ledger", "Show Ledger", "show_ledger", "Submit", "btn btn-primary"); ?></div>
|
2024-07-10 12:43:19 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="card">
|
2024-08-25 12:52:52 +00:00
|
|
|
<div id="dataTable_Commands">
|
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
if (!isset($account_id)) {
|
|
|
|
$account_id = 1;
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<?php if (isset($account_id) && $account_id != "") {
|
|
|
|
$fromDate = NepaliToEnglishDate(isset($_GET['from_date']) ? $_GET['from_date'] : firstDayOfNepaliMonth());
|
|
|
|
$toDate = isset($_GET['to_date']) ? $_GET['to_date'] : Today();
|
|
|
|
$this->myaccounts->showLedger($account_id, $fromDate, $toDate, $fiscalStart, $fiscalEnd);
|
|
|
|
} ?>
|
|
|
|
<div class="modal fade" id="ledgerdetails_box" tabindex="-1" role="dialog" aria-labelledby="ledgerdetails_box" aria-hidden="true">
|
|
|
|
<div class="modal-dialog modal-xl" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h5 class="modal-title" id="exampleModalLabel">Ledger Details</h5>
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body" id="details_container">
|
|
|
|
Ledger Details Goes Here
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
|
|
|
<button type="button" class="btn btn-success" data-dismiss="modal">Print</button>
|
2024-07-10 12:43:19 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-08-25 12:52:52 +00:00
|
|
|
</div>
|
2024-07-10 12:43:19 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-08-25 12:52:52 +00:00
|
|
|
</div>
|