photo remaining

This commit is contained in:
Sampanna Rimal
2024-07-16 12:43:55 +05:45
parent 7ffe31e260
commit de0b041520
18 changed files with 273 additions and 198 deletions

View File

@ -157,7 +157,7 @@ class myaccounts
$ci = &get_instance();
return $ci->db->where("status", 1)->where("account_id", $account_id)->select_sum('cr')->get("tbl_voucherdetails")->row()->cr;
}
function getAllAccountsTable($accategory_id = "")
function getAllAccountsTable($accategory_id = "", $full = "")
{
$CI = &get_instance();
if ($accategory_id != "") {
@ -208,7 +208,9 @@ class myaccounts
$html .= "<tr><td><a href=" . $Account->account_id . ">" . $Account->account_name . "</a></td><td class='col-2'>" . $Account->Category->accategory_name . "</td><td class='col-1'>" . (($balance >= 0) ? myCurrency($balance) : "") . "</td><td class='col-1'>" . (($balance < 0) ? myCurrency(abs($balance)) : "") . "</td><td class='col-2 text-center'><a title='Show Ledger' class='btn btn-info btn-xs ' onClick='showLedger(" . $Account->account_id . ")'><i class='fa fa-eye'></i></a></td></tr>";
endforeach;
$html .= "</tbody><tfoot>";
$html .= "<tr><th colspan=2 class='text-right '>Total</th><th class='text-right'>" . myCurrency($BalanceTotal) . "</th><th class='text-right'>" . myCurrency($BalanceTotal) . "</th><th></th><th></th></tr>";
if ($full==""){
$html .= "<tr><th colspan=2 class='text-right '>Total</th><th class='text-right'>" . myCurrency($BalanceTotal) . "</th><th class='text-right'>" . myCurrency($BalanceTotal) . "</th><th></th><th></th></tr>";
}
$html .= "</tfoot></table>\n";
$html .= " <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\">
@ -1013,7 +1015,9 @@ class myaccounts
<tr>
<td></td>
<td></td>
<td></td>
<?php if ($showVoucherTypes) : ?>
<td></td>
<?php endif; ?>
<td class="text-right text-bold">Total</td>
<td class="text-right text-bold"><?php echo myCurrency($drTotal); ?></td>
<td class="text-right text-bold"><?php echo myCurrency($crTotal); ?></td>