edit css
This commit is contained in:
parent
78670b1b95
commit
161703be17
@ -5,7 +5,6 @@ function generateACCategoryCode($group_id)
|
||||
$acgroup_code = $ci->db->where("acgroup_id=$group_id")->get("tbl_acgroups")->row()->acgroup_code;
|
||||
$lastACCategoryCode = $ci->db->select_max("accategory_code")->where("acgroup_id=$group_id")->get("tbl_accategories")->row()->accategory_code;
|
||||
$category_part = substr($lastACCategoryCode, 1);
|
||||
|
||||
$category_part = (float)$category_part + 1;
|
||||
//if($category_part<10)$category_part="00".$category_part;
|
||||
if ($category_part < 10) $category_part = "00" . $category_part;
|
||||
@ -18,7 +17,6 @@ function generateAccountCode($category_id)
|
||||
$accategory_code = $ci->db->where("accategory_id=$category_id")->get("tbl_accategories")->row()->accategory_code;
|
||||
$lastAccountCode = $ci->db->select_max("account_code")->where("accategory_id=$category_id")->get("tbl_accounts")->row()->account_code;
|
||||
$account_part = substr($lastAccountCode, 4);
|
||||
|
||||
$account_part = (float)$account_part + 1;
|
||||
//if($category_part<10)$category_part="00".$category_part;
|
||||
if ($account_part < 10) $account_part = "00" . $account_part;
|
||||
@ -54,13 +52,10 @@ function showAccountCategoriesSelector($fieldName, $fieldID, $condition = "1=1",
|
||||
$html .= " required";
|
||||
}
|
||||
$html .= ">";
|
||||
|
||||
$html .= "<option value='' " . (($selectedID == '') ? "SELECTED" : "") . ">Select Account Category</option>";
|
||||
|
||||
foreach ($AccountCategories as $AccountCategory) {
|
||||
$html .= "<option value='$AccountCategory->accategory_id'" . (($selectedID == $AccountCategory->accategory_id) ? "selected" : "") . ">" . getFieldfromValue("tbl_acgroups", "acgroup_name", "acgroup_id", $AccountCategory->acgroup_id) . " >> $AccountCategory->accategory_name</option>";
|
||||
}
|
||||
|
||||
$html .= "</select>";
|
||||
echo $html;
|
||||
}
|
||||
@ -68,7 +63,6 @@ function showAccountCategoriesByIds($AccountCategories = array())
|
||||
{
|
||||
// pre($AccountCategories); //die;
|
||||
$ci = &get_instance();
|
||||
|
||||
if ($AccountCategories) {
|
||||
$AccountCategories_a = $ci->db->where("status", 1);
|
||||
$AccountCategories_a = $AccountCategories_a->where_in("accategory_id", $AccountCategories);
|
||||
@ -80,22 +74,19 @@ function showAccountCategoriesByIds($AccountCategories = array())
|
||||
echo implode(", ", $html);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function linkVoucher($voucher_id)
|
||||
{
|
||||
if($voucher_id!=0) {
|
||||
$ci = &get_instance();
|
||||
$Voucher = $ci->db->where("voucher_id", $voucher_id)->get("tbl_vouchers")->row();
|
||||
$Name = $ci->db->where("vouchertype_id", $Voucher->voucher_type)->get("tbl_vouchertypes")->row()->voucher_type . " Voucher # " . $Voucher->voucher_no;
|
||||
echo "<a class='link' target='_blank' href='" . site_url("accounts/vouchers/show_voucher/" . $voucher_id) . "'>$Name</a>";
|
||||
if ($voucher_id != 0) {
|
||||
$ci = &get_instance();
|
||||
$Voucher = $ci->db->where("voucher_id", $voucher_id)->get("tbl_vouchers")->row();
|
||||
$Name = $ci->db->where("vouchertype_id", $Voucher->voucher_type)->get("tbl_vouchertypes")->row()->voucher_type . " Voucher # " . $Voucher->voucher_no;
|
||||
echo "<a class='link' target='_blank' href='" . site_url("accounts/vouchers/show_voucher/" . $voucher_id) . "'>$Name</a>";
|
||||
} else {
|
||||
echo "";
|
||||
}
|
||||
}
|
||||
function linkLedger($Account)
|
||||
{
|
||||
|
||||
$ci = &get_instance();
|
||||
echo "<a class='link' target='_blank' href='" . site_url("accounts/ledger/partyledger?from_date=" . FYStart() . "&to_date=" . FYEnd() . "&account_id=" . $Account->account_id . "&show_ledger=true") . "'>$Account->account_name</a>";
|
||||
}
|
||||
@ -143,15 +134,11 @@ function generateVoucherNo($vouchertype_id = "")
|
||||
{
|
||||
$ci = &get_instance();
|
||||
$voucherTypeCondition = ($vouchertype_id != "") ? " WHERE voucher_type = '$vouchertype_id'" : "";
|
||||
|
||||
$query = $ci->db->query("SELECT MAX(voucher_no) AS voucher_no FROM tbl_vouchers" . $voucherTypeCondition);
|
||||
$row = $query->row();
|
||||
|
||||
$newVoucherNo = ($row->voucher_no !== null) ? $row->voucher_no + 1 : 1;
|
||||
|
||||
return $newVoucherNo;
|
||||
}
|
||||
|
||||
function countChildCategories($acgroup_id)
|
||||
{
|
||||
$ci = &get_instance();
|
||||
|
@ -14,9 +14,9 @@
|
||||
<table class="table table-bordered table-striped longdataTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="col-2">Type</th>
|
||||
<th class="col-1">Type</th>
|
||||
<th>Category Name</th>
|
||||
<td class="col-1">Action</th>
|
||||
<th class="col-1 text-center">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -26,7 +26,7 @@
|
||||
break;
|
||||
endforeach; ?>
|
||||
<?php if ($TableRow->parent_category_id == 0) : ?>
|
||||
<tr>
|
||||
<tr class="text-center">
|
||||
<td><?php echo $TableRow->AccountGroup->acgroup_name; ?></td>
|
||||
<td><?php echo $TableRow->accategory_name; ?></td>
|
||||
<td><a href="<?php echo site_url("master/accategories/edit_parents/$id"); ?>" class="btn btn-info btn-xs"><i class="fas fa-edit"></i> </a>
|
||||
|
@ -29,12 +29,12 @@ function displayCategoryTree($tree)
|
||||
// print_r($category);die;
|
||||
echo '<tr>';
|
||||
echo '<td class="col-1">' . $category['accategory_id'] . '</td>';
|
||||
echo '<td class="col-6">'
|
||||
. ($category['parent_category_id'] == 0
|
||||
? "<b><a href='" . site_url("accounts/reports/balance_by_group") . "?category=" . $category['accategory_id'] . "'>"
|
||||
echo '<td class="col-6">'
|
||||
. ($category['parent_category_id'] == 0
|
||||
? "<b><a href='" . site_url("accounts/reports/balance_by_group") . "?category=" . $category['accategory_id'] . "'>"
|
||||
: "<a href='" . site_url("accounts/reports/balance_by_ledger") . "?group=" . $category['accategory_id'] . "'>")
|
||||
. $category['accategory_name']
|
||||
. "</a>"
|
||||
. $category['accategory_name']
|
||||
. "</a>"
|
||||
. ($category['parent_category_id'] == 0 ? "</b>" : "")
|
||||
. '</td>';
|
||||
echo '<td class="col-2">' . myCurrency($category['dr']) . '</td>';
|
||||
@ -55,7 +55,6 @@ function displayCategoryTree($tree)
|
||||
.expandable {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
</style>
|
||||
<div class="content-wrapper">
|
||||
<div class="content">
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
$t="INSERT INTO tbl_acgroups (acgroup_id, acgroup_code, acgroup_name, posting_side, created_on, created_by, remarks, status, display_order)
|
||||
$t = "INSERT INTO tbl_acgroups (acgroup_id, acgroup_code, acgroup_name, posting_side, created_on, created_by, remarks, status, display_order)
|
||||
SELECT 5, '5', 'Equity', 'CR', '2023-05-22', 'admin', '', 1, 2
|
||||
WHERE NOT EXISTS (
|
||||
SELECT 1 FROM tbl_acgroups WHERE acgroup_id = 5
|
||||
@ -12,16 +12,14 @@ $AssetsAccounts = $this->acc->getAccountsByGroup(1);
|
||||
$LiabilitiesTotal = $this->acc->getAccountBalanceByGroup(2);
|
||||
$EquityTotal = $this->acc->getAccountBalanceByGroup(5);
|
||||
$AssetsTotal = $this->acc->getAccountBalanceByGroup(1, false);
|
||||
|
||||
$IncomeAccounts = $this->acc->getAccountsByGroup(3);
|
||||
$ExpenseAccounts = $this->acc->getAccountsByGroup(4);
|
||||
$IncomesTotal = $this->acc->getAccountBalanceByGroup(3);
|
||||
$ExpensesTotal = $this->acc->getAccountBalanceByGroup(4);
|
||||
$PL = $IncomesTotal - $ExpensesTotal;
|
||||
$LiabilitiesTotal=$LiabilitiesTotal+$EquityTotal+$PL;
|
||||
$LiabilitiesTotal = $LiabilitiesTotal + $EquityTotal + $PL;
|
||||
?>
|
||||
<div class="content-wrapper">
|
||||
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
@ -39,13 +37,11 @@ $LiabilitiesTotal=$LiabilitiesTotal+$EquityTotal+$PL;
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="bg-dark">
|
||||
|
||||
<th>Liabilities</th>
|
||||
<th class="col-2">Amount</th>
|
||||
<th>Assets</th>
|
||||
<th class="col-2">Amount</th>
|
||||
</tr>
|
||||
|
||||
<tr class="bg-light">
|
||||
<td colspan="2">
|
||||
<?php $this->acc->showTable($LiabilitiesAccounts); ?>
|
||||
@ -54,33 +50,22 @@ $LiabilitiesTotal=$LiabilitiesTotal+$EquityTotal+$PL;
|
||||
<td colspan="2">
|
||||
<?php $this->acc->showTable($AssetsAccounts, false); ?>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
<tfoot>
|
||||
|
||||
|
||||
|
||||
<tr class="bg-light">
|
||||
|
||||
<th>Net Profit:</th>
|
||||
<th><?php echo myCurrency($PL); ?></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr class="bg-light">
|
||||
|
||||
<th>Total Liabilities:</th>
|
||||
<th><?php echo myCurrency($LiabilitiesTotal); ?></th>
|
||||
<th>Total Assets: </th>
|
||||
<th><?php echo myCurrency($AssetsTotal); ?></th>
|
||||
</tr>
|
||||
|
||||
</tfoot>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -3,87 +3,13 @@ $this->load->library("BIBAccounts");
|
||||
$BIBAccounts = new BIBAccounts();
|
||||
?>
|
||||
<style>
|
||||
table,
|
||||
table,
|
||||
td,
|
||||
tr {
|
||||
padding: 0px;
|
||||
padding: 10px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.group-name {
|
||||
width: 40%;
|
||||
font-weight: 600px;
|
||||
}
|
||||
|
||||
.group-total {
|
||||
width: 10%;
|
||||
}
|
||||
|
||||
.table-gray {
|
||||
background-color: #eee;
|
||||
}
|
||||
|
||||
.table td,
|
||||
.table th {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.bg-darker {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
td .table {
|
||||
border: 0px !important;
|
||||
margin-bottom: 0rem;
|
||||
}
|
||||
|
||||
table td:first-child {
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
.table-bordered.vertical-borders td,
|
||||
.table-bordered.vertical-borders th {
|
||||
border-left: 1px solid #dee2e6;
|
||||
border-right: 1px solid #dee2e6;
|
||||
}
|
||||
|
||||
.table-bordered.vertical-borders thead th {
|
||||
padding: 0.25rem;
|
||||
border-top: none;
|
||||
border-bottom: 2px solid #dee2e6;
|
||||
}
|
||||
|
||||
.table-bordered.vertical-borders tfoot th {
|
||||
padding: 0.25rem;
|
||||
border-top: 2px solid #dee2e6;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.currency {
|
||||
font-weight: normal !important;
|
||||
}
|
||||
|
||||
.underline {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.form-control {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: calc(1.5rem + 1px);
|
||||
padding: 0.375rem 0.75rem;
|
||||
font-size: 1rem;
|
||||
font-weight: 400;
|
||||
line-height: 1.5;
|
||||
color: #495057;
|
||||
background-color: #fff;
|
||||
background-clip: padding-box;
|
||||
border: 1px solid #ced4da;
|
||||
border-radius: 0.25rem;
|
||||
box-shadow: inset 0 0 0 transparent;
|
||||
transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
|
||||
}
|
||||
</style>
|
||||
<div class="content-wrapper">
|
||||
<section class="content">
|
||||
@ -243,9 +169,9 @@ $BIBAccounts = new BIBAccounts();
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="group-name"><b>Particulars</b></td>
|
||||
<td class="group-name "><b>Liabilities</b></td>
|
||||
<td class="group-total text-right pr-2 "><b>Amount</b></td>
|
||||
<td class="group-name"><b>Particulars</b></td>
|
||||
<td class="group-name"><b>Assets</b></td>
|
||||
<td class="group-total text-right pr-2"><b>Amount</b></td>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -283,6 +209,9 @@ $BIBAccounts = new BIBAccounts();
|
||||
?>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<?php $AccountGroups = $BIBAccounts->getAccountGroupsWithBalances(5); ?>
|
||||
<table class="table table-bordered vertical-borders" id="TrialBalanceTable">
|
||||
<?php
|
||||
|
@ -159,7 +159,6 @@ $PL = $IncomesTotal - $ExpensesTotal;
|
||||
</div> -->
|
||||
</div>
|
||||
<button class="btn btn-secondary toggle-collapse btn-sm" id="toggleShowAll">Toggle Collapse</button>
|
||||
|
||||
<!-- <button type="button" class="btn btn-warning btn-sm" onclick="resetForm()">Reset</button> -->
|
||||
<!-- <button class="btn btn-secondary toggle-collapse btn-sm" id="toggleShowAll">Toggle Collapse</button> -->
|
||||
</form>
|
||||
@ -241,10 +240,10 @@ $PL = $IncomesTotal - $ExpensesTotal;
|
||||
<tr>
|
||||
<th class="" width="30%"><?php myLang("Cash inflow"); ?></th>
|
||||
<th class="text-right" width="10%"></th>
|
||||
<th class="text-right pr-2" width="15%"><?php myLang("Amount"); ?></th>
|
||||
<th class="text-right pr-2" width="10%"><?php myLang("Amount"); ?></th>
|
||||
<th class="pl-2" width="30%"><?php echo myLang("Cash outflow"); ?></th>
|
||||
<th class="text-right" width="10%"></th>
|
||||
<th class="text-right pr-3" width="15%"><?php myLang("Amount"); ?></th>
|
||||
<th class="text-right pr-3" width="10%"><?php myLang("Amount"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -263,20 +262,19 @@ $PL = $IncomesTotal - $ExpensesTotal;
|
||||
</tr> -->
|
||||
<?php elseif ($Incomes['account'] == "CATEGORY TOTAL") : ?>
|
||||
<tr class="parent-row" class="group-heading" data-toggle="collapse" data-target="#group_<?php echo $index; ?>">
|
||||
<td class="pr-2" width="70%"><b><?php echo $Incomes['category']; ?></b></td>
|
||||
<td width="15%"></td>
|
||||
<td class="text-right pr-2" width="15%"><?php echo myCurrency($Incomes['amount']); ?></td>
|
||||
<td class="pr-2" width="60%"><b><?php echo $Incomes['category']; ?></b></td>
|
||||
<td width="20%"></td>
|
||||
<td class="text-right pr-2" width="20%"><?php echo myCurrency($Incomes['amount']); ?></td>
|
||||
</tr>
|
||||
<?php else : ?>
|
||||
<?php $total1 += $Incomes['amount']; ?>
|
||||
<tr class="collapse" data-target="#group_<?php echo $index; ?>">
|
||||
<td class="pr-2" width="70%"> <?php echo $Incomes['account']; ?></td>
|
||||
<td class="text-right pr-2" width="15%"><?php echo myCurrency($Incomes['amount']); ?></td>
|
||||
<td width="15%"></td>
|
||||
<td class="pr-2" width="60%"> <?php echo $Incomes['account']; ?></td>
|
||||
<td class="text-right pr-2" width="20%"><?php echo myCurrency($Incomes['amount']); ?></td>
|
||||
<td width="20%"></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php $counter = $index ?>
|
||||
|
||||
<?php }; ?>
|
||||
</table>
|
||||
</td>
|
||||
@ -292,17 +290,16 @@ $PL = $IncomesTotal - $ExpensesTotal;
|
||||
</tr> -->
|
||||
<?php elseif ($Expenses['account'] == "CATEGORY TOTAL") : ?>
|
||||
<tr data-toggle="collapse" data-target="#group_<?php echo $counter; ?>">
|
||||
<td class="" width="70%"><b><?php echo $Expenses['category']; ?></b></td>
|
||||
<td width="15%"></td>
|
||||
<td class="text-right pr-2" width="15%"><?php echo myCurrency($Expenses['amount']); ?></td>
|
||||
|
||||
<td class="" width="60%"><b><?php echo $Expenses['category']; ?></b></td>
|
||||
<td width="20%"></td>
|
||||
<td class="text-right pr-2" width="20%"><?php echo myCurrency($Expenses['amount']); ?></td>
|
||||
</tr>
|
||||
<?php else : ?>
|
||||
<?php $total += $Expenses['amount']; ?>
|
||||
<tr class="collapse" data-target="#group_<?php echo $counter; ?>">
|
||||
<td class="" width="70%"> <?php echo $Expenses['account']; ?></td>
|
||||
<td class="text-right" width="15%"><?php echo myCurrency($Expenses['amount']); ?></td>
|
||||
<td width="15%"></td>
|
||||
<td class="" width="60%"> <?php echo $Expenses['account']; ?></td>
|
||||
<td class="text-right" width="20%"><?php echo myCurrency($Expenses['amount']); ?></td>
|
||||
<td width="20%"></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php }; ?>
|
||||
|
@ -1,70 +1,58 @@
|
||||
<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>
|
||||
<div class="col"><?php $this->myaccounts->showAccountsCombo("account_id", "", "account_id", "status=1", isset($_GET['account_id']) ? $_GET['account_id'] : 1, $CSSclass = ""); ?> </div>
|
||||
<div class="col"><?php createButton("show_ledger", "Show Ledger", "show_ledger","Submit", "btn btn-primary"); ?></div>
|
||||
<div class="col"><?php createButton("show_ledger", "Show Ledger", "show_ledger", "Submit", "btn btn-primary"); ?></div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<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>
|
||||
</div>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
@ -8,7 +8,6 @@ $ExpenseAccounts = $this->acc->getAccountsByGroup(4);
|
||||
$IncomesTotal = $this->acc->getAccountBalanceByGroup(3);
|
||||
$ExpensesTotal = $this->acc->getAccountBalanceByGroup(4);
|
||||
$PL = $IncomesTotal - $ExpensesTotal;
|
||||
|
||||
?>
|
||||
<style>
|
||||
table,
|
||||
@ -97,24 +96,15 @@ $PL = $IncomesTotal - $ExpensesTotal;
|
||||
;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="content-wrapper">
|
||||
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="card card-primary card-outline ">
|
||||
|
||||
<div class="card-header">
|
||||
<h3 class="card-title mt-1">Receipts And Payments <?php //echo $pageTitle;
|
||||
?> </h3>
|
||||
|
||||
<div class="card-tools">
|
||||
<form method="post" action="" id="FilterForm">
|
||||
|
||||
<!-- button with a dropdown -->
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-success btn-sm dropdown-toggle" data-toggle="dropdown" data-offset="-52">
|
||||
@ -166,8 +156,6 @@ $PL = $IncomesTotal - $ExpensesTotal;
|
||||
<button type="submit" class="btn btn-warning btn-sm " data-toggle="dropdown" data-offset="-52">
|
||||
Export
|
||||
</button>
|
||||
|
||||
|
||||
<!-- <div class="dropdown-menu" role="menu">
|
||||
<a href="#" class="dropdown-item">Export</a>
|
||||
<a href="#" class="dropdown-item">Pdf</a>
|
||||
@ -176,9 +164,7 @@ $PL = $IncomesTotal - $ExpensesTotal;
|
||||
</div> -->
|
||||
</div>
|
||||
<!-- <button type="button" class="btn btn-warning btn-sm" onclick="resetForm()">Reset</button> -->
|
||||
|
||||
<button class="btn btn-secondary toggle-collapse btn-sm" id="toggleShowAll">Toggle Collapse</button>
|
||||
|
||||
</form>
|
||||
<script>
|
||||
function resetForm() {
|
||||
@ -192,39 +178,36 @@ $PL = $IncomesTotal - $ExpensesTotal;
|
||||
</div>
|
||||
<!-- /.card-tools -->
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- <div class="card-body">
|
||||
<form method="post" action="" id="FilterForm">
|
||||
<div class="row align-items-end">
|
||||
<div class="col-2">
|
||||
<div class="form-group">
|
||||
<label for="fromDate"><?php myLang("Starting Period"); ?></label>
|
||||
<input type="text" class="form-control nepaliDatePicker" name="fromDate" value="<?php echo (isset($_POST['fromDate'])) ? $_POST['fromDate'] : NepaliDate($this->session->FiscalYear->fiscalyear_from); ?>" id="fromDate" aria-describedby="helpId_fromDate" placeholder="Starting Period">
|
||||
<label for="fromDate"><?php //myLang("Starting Period"); ?></label>
|
||||
<input type="text" class="form-control nepaliDatePicker" name="fromDate" value="<?php //echo (isset($_POST['fromDate'])) ? $_POST['fromDate'] : NepaliDate($this->session->FiscalYear->fiscalyear_from); ?>" id="fromDate" aria-describedby="helpId_fromDate" placeholder="Starting Period">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<div class="form-group">
|
||||
<label for="toDate"><?php myLang("Ending Period"); ?></label>
|
||||
<input type="text" class="form-control nepaliDatePicker" name="toDate" value="<?php echo (isset($_POST['toDate'])) ? $_POST['toDate'] : NepaliDate($this->session->FiscalYear->fiscalyear_to); ?>" id="toDate" aria-describedby="helpId_toDate" placeholder="Ending Period">
|
||||
<label for="toDate"><?php //myLang("Ending Period"); ?></label>
|
||||
<input type="text" class="form-control nepaliDatePicker" name="toDate" value="<?php //echo (isset($_POST['toDate'])) ? $_POST['toDate'] : NepaliDate($this->session->FiscalYear->fiscalyear_to); ?>" id="toDate" aria-describedby="helpId_toDate" placeholder="Ending Period">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-1 text-center">
|
||||
<div class="form-group">
|
||||
<label for="showOB"><?php myLang("Opening"); ?></label>
|
||||
<label for="showOB"><?php //myLang("Opening"); ?></label>
|
||||
<input type="checkbox" class="form-control " name="showOB" id="showOB" aria-describedby="helpId_showOB" placeholder="Show Opening Balance" <?php echo (isset($_POST['showOB'])) ? "CHECKED" : "CHECKED"; ?>>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-1 text-center">
|
||||
<div class="form-group">
|
||||
<label for="showClosing"><?php myLang("Closing"); ?></label>
|
||||
<label for="showClosing"><?php //myLang("Closing"); ?></label>
|
||||
<input type="checkbox" class="form-control " name="showClosing" id="showClosing" aria-describedby="helpId_showClosing" placeholder="Show Closing Balance" <?php echo (isset($_POST['showClosing'])) ? "CHECKED" : "CHECKED"; ?>>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-1 text-center">
|
||||
<div class="form-group">
|
||||
<label for="showPeriod"><?php myLang("Period"); ?></label>
|
||||
<label for="showPeriod"><?php //myLang("Period"); ?></label>
|
||||
<input type="checkbox" class="form-control " name="showPeriod" id="showPeriod" aria-describedby="helpId_showPeriod" placeholder="Show Periodic Balance" <?php echo (isset($_POST['showPeriod'])) ? "CHECKED" : "CHECKED"; ?>>
|
||||
</div>
|
||||
</div>
|
||||
@ -237,9 +220,7 @@ $PL = $IncomesTotal - $ExpensesTotal;
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<script>
|
||||
function resetForm() {
|
||||
document.getElementById("fromDate").value = "2078-4-1";
|
||||
@ -249,23 +230,20 @@ $PL = $IncomesTotal - $ExpensesTotal;
|
||||
document.getElementById("FilterForm").submit();
|
||||
}
|
||||
</script>
|
||||
|
||||
</div> -->
|
||||
|
||||
</div>
|
||||
<div class="card">
|
||||
|
||||
<div class="card card-primary card-outline">
|
||||
<?php $IncomesExpenses = $BIBAccounts->prepareIncomeExpenses() ?>
|
||||
<table class="table table-head-fixed table-bordered g-0" id="TrialBalanceTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="" width="35%"><?php myLang("Receipts"); ?></th>
|
||||
<th class="text-right" width="15%"></th>
|
||||
<th class="text-right pr-2" width="15%"><?php myLang("Amount"); ?></th>
|
||||
<th class="" width="35%"><?php echo myLang("Payments"); ?></th>
|
||||
<th class="text-right" width="15%"></th>
|
||||
<th class="text-right pr-2" width="15%"><?php myLang("Amount"); ?></th>
|
||||
<th class="" width="30%"><?php myLang("Receipts"); ?></th>
|
||||
<th class="text-right" width="10%"></th>
|
||||
<th class="text-right pr-2" width="10%"><?php myLang("Amount"); ?></th>
|
||||
<th class="" width="30%"><?php echo myLang("Payments"); ?></th>
|
||||
<th class="text-right" width="10%"></th>
|
||||
<th class="text-right pr-2" width="10%"><?php myLang("Amount"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -281,32 +259,26 @@ $PL = $IncomesTotal - $ExpensesTotal;
|
||||
<td class="" width="70%"><b><?php echo $Incomes['group']; ?></b></td>
|
||||
<td width="15%"></td>
|
||||
<td class="text-right" width="15%"><u><?php echo myCurrency($Incomes['amount']); ?></u></td>
|
||||
|
||||
</tr-->
|
||||
<?php elseif ($Incomes['account'] == "CATEGORY TOTAL") : ?>
|
||||
<?php $index++; ?>
|
||||
<tr class="parent-row" class="group-heading" data-toggle="collapse" data-target="#group_<?php echo $index; ?>">
|
||||
<td class="" width="70%"><b><?php echo $Incomes['category']; ?></b></td>
|
||||
<td width="15%"></td>
|
||||
<td class="text-right pr-2" width="15%"><?php echo myCurrency($Incomes['amount']); ?></td>
|
||||
|
||||
<td class="" width="60%"><b><?php echo $Incomes['category']; ?></b></td>
|
||||
<td width="20%"></td>
|
||||
<td class="text-right pr-2" width="20%"><?php echo myCurrency($Incomes['amount']); ?></td>
|
||||
</tr>
|
||||
<?php else : ?>
|
||||
<?php $total1 += $Incomes['amount']; ?>
|
||||
<tr class="collapse" data-target="#group_<?php echo $index; ?>">
|
||||
<td class="pr-2" width="70%">
|
||||
<?php echo $Incomes['account']; ?>
|
||||
<td class="pr-2" width="60%">
|
||||
<?php echo $Incomes['account']; ?>
|
||||
</td>
|
||||
<td class="text-right pr-2" width="15%"><?php echo myCurrency($Incomes['amount']); ?></td>
|
||||
|
||||
<td width="15%"></td>
|
||||
|
||||
<td class="text-right pr-2" width="20%"><?php echo myCurrency($Incomes['amount']); ?></td>
|
||||
<td width="20%"></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php $counter = $index ?>
|
||||
|
||||
<?php }; ?>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
<td colspan=3 class="p-0">
|
||||
@ -318,36 +290,26 @@ $PL = $IncomesTotal - $ExpensesTotal;
|
||||
<td class="" width="70%"><b><?php echo $Expenses['group']; ?></b></td>
|
||||
<td width="15%"></td>
|
||||
<td class="text-right" width="15%"><u><?php echo myCurrency($Expenses['amount']); ?></u></td>
|
||||
|
||||
|
||||
</tr-->
|
||||
<?php elseif ($Expenses['account'] == "CATEGORY TOTAL") : ?>
|
||||
<?php $counter++; ?>
|
||||
<tr data-toggle="collapse" data-target="#group_<?php echo $counter; ?>">
|
||||
<td class="pr-2" width="70%"><b><?php echo $Expenses['category']; ?></b></td>
|
||||
<td width="15%"></td>
|
||||
<td class="text-right pr-2" width="15%"><?php echo myCurrency($Expenses['amount']); ?></td>
|
||||
|
||||
<td class="pr-2" width="60%"><b><?php echo $Expenses['category']; ?></b></td>
|
||||
<td width="20%"></td>
|
||||
<td class="text-right pr-2" width="20%"><?php echo myCurrency($Expenses['amount']); ?></td>
|
||||
</tr>
|
||||
|
||||
<?php else : ?>
|
||||
<?php $total += $Expenses['amount']; ?>
|
||||
<tr class="collapse" data-target="#group_<?php echo $counter; ?>">
|
||||
<td class="" width="70%">
|
||||
|
||||
<?php echo $Expenses['account']; ?>
|
||||
<td class="" width="60%">
|
||||
|
||||
<?php echo $Expenses['account']; ?>
|
||||
</td>
|
||||
<td class="text-right pr-2" width="15%"><?php echo myCurrency($Expenses['amount']); ?></td>
|
||||
<td width="15%"></td>
|
||||
|
||||
|
||||
<td class="text-right pr-2" width="20%"><?php echo myCurrency($Expenses['amount']); ?></td>
|
||||
<td width="20%"></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
|
||||
<?php }; ?>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
@ -370,9 +332,7 @@ $PL = $IncomesTotal - $ExpensesTotal;
|
||||
<th></th>
|
||||
<td class="pr-2"><?php echo myCurrency($balance_fi); ?></td>
|
||||
</tr>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<tr>
|
||||
<th class="pl-2">Total</th>
|
||||
<th></th>
|
||||
@ -382,19 +342,11 @@ $PL = $IncomesTotal - $ExpensesTotal;
|
||||
<td class="pr-2"><?php echo myCurrency($total); ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div><!-- /.container-fluid -->
|
||||
</section>
|
||||
|
||||
<?php function footerFunctions()
|
||||
{ ?>
|
||||
<script>
|
||||
|
@ -95,12 +95,12 @@
|
||||
<table class="table table-bordered table-striped longdataTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Fiscal Year </th>
|
||||
<th> Code</th>
|
||||
<th class="col-2">Fiscal Year </th>
|
||||
<th class="col-4"> Code</th>
|
||||
<th>From</th>
|
||||
<th>To</th>
|
||||
<!-- <th>Created By</th> -->
|
||||
<th class="col-2 text-center">Action</th>
|
||||
<th class="col-1 text-center">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -12,7 +12,7 @@
|
||||
<table class="table table-bordered table-striped dataTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php myLang('S.N'); ?></th>
|
||||
<th class="text-center"><?php myLang('S.N'); ?></th>
|
||||
<th><?php myLang('Date'); ?></th>
|
||||
<th><?php myLang('Purchase Transaction'); ?></th>
|
||||
<th class="text-center"><?php myLang('Amount'); ?></th>
|
||||
|
@ -12,7 +12,7 @@
|
||||
<table class="table table-bordered table-striped dataTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="table-col col-1"><?php myLang('Sales Voucher #'); ?></th>
|
||||
<th class="table-col col-1 text-center"><?php myLang('Sales Voucher #'); ?></th>
|
||||
<th width="10%"><?php myLang('Date'); ?></th>
|
||||
<th><?php myLang('Transaction'); ?></th>
|
||||
<th class="table-col col-1 text-center"><?php myLang('Amount'); ?></th>
|
||||
@ -22,7 +22,7 @@
|
||||
<tbody>
|
||||
<?php foreach ($SalesRecords as $TableRow) : ?>
|
||||
<tr>
|
||||
<td><?php echo $TableRow->sales_id; ?></td>
|
||||
<td class="text-center"><?php echo $TableRow->sales_id; ?></td>
|
||||
<td><?php echo $TableRow->sales_date; ?></td>
|
||||
<td><b><?php echo $this->myaccounts->getAccountDetails($TableRow->accounts_id)->account_name; ?></b>
|
||||
<div class="row ml-2 mr-2" style="border-bottom: 1px solid;">
|
||||
|
Loading…
Reference in New Issue
Block a user