This commit is contained in:
Sampanna Rimal 2024-08-11 17:29:32 +05:45
parent 0f5bafdf3e
commit 16246fbdeb
8 changed files with 28 additions and 15 deletions

View File

@ -1001,7 +1001,7 @@ class myaccounts
<!-- <td><?php echo $TableRow->voucher_state; ?></td> -->
<td class="col-1 text-center">
<a onClick="javascript:showDetails(<?php echo $TableRow->voucher_id; ?>);" class="btn btn-success btn-xs" title="View Details"><i class="fa fa-eye"></i></a>
<a onClick="javascript:showDetails(<?php echo $TableRow->voucher_id; ?>);" class="btn btn-info btn-xs" title="View Details"><i class="fas fa-edit"></i></a>
<!-- <a onClick="javascript:showDetails(<?php //echo $TableRow->voucher_id; ?>);" class="btn btn-info btn-xs" title="View Details"><i class="fas fa-edit"></i></a> -->
<a onClick="javascript:showPDF(<?php echo $TableRow->voucher_id; ?>);" class="btn btn-primary btn-xs" title="View PDF"><i class="fa fa-file-pdf"></i></a>
<?php //print_r($ci->session->userdata());die; ?>
<?php if ($ci->session->userdata('LoggedUser') != 'admin'): ?>
@ -1351,7 +1351,7 @@ class myaccounts
<?php if ($displayName != "") : ?>
<label for="<?php echo $fieldID; ?>"><?php echo function_exists("myLang") ? myLang($displayName) : $displayName; ?></label>
<?php endif; ?>
<select name="<?php echo $fieldName; ?>" class="form-control select2 <?php echo $CSSclass; ?>" id="<?php echo $fieldID; ?>">
<select name="<?php echo $fieldName; ?>" class="form-control select2 <?php echo $CSSclass; ?>" id="<?php echo $fieldID; ?> " required>
<option value="">Select </option>
<!-- <option value="">Select <?php //echo function_exists("myLang") ? myLang($displayName) : $displayName;
?></option> -->

View File

@ -38,6 +38,7 @@ $AccountCategories = $this->myaccounts->getChildAccountCategories();
$drTotal += $AccountCategory->dr;
$crTotal += $AccountCategory->cr;
?>
<!-- <?php //print_r($AccountCategory);die; ?> -->
<tr>
<td>
<a href="<?php echo site_url("accounts/reports/balance_by_ledger") . "?group=" . $AccountCategory->accategory_id; ?>">
@ -46,8 +47,8 @@ $AccountCategories = $this->myaccounts->getChildAccountCategories();
</td>
<td width="<?php echo $drWidth; ?>"><?php echo myCurrency($AccountCategory->dr); ?></td>
<td width="<?php echo $crWidth; ?>"><?php echo myCurrency($AccountCategory->cr); ?></td>
<td class="text-right">Balance</td>
<td class="text-center"><a href="#" class="btn btn-info btn-xs"><i class="fas fa-edit"></i> </a></td>
<td class="text-right"><?php echo myCurrency($AccountCategory->Balance); ?></td>
<td class="text-center"><a href="<?php echo site_url("accounts/reports/balance_by_ledger") . "?group=" . $AccountCategory->accategory_id; ?>" class="btn btn-info btn-xs"><i class="fas fa-eye"></i> </a></td>
</tr>
<?php endforeach; ?>
</tbody>

View File

@ -100,7 +100,7 @@
<th>From</th>
<th>To</th>
<!-- <th>Created By</th> -->
<th class="col-1 text-center">Action</th>
<th class="col-2 text-center">Action</th>
</tr>
</thead>
<tbody>

View File

@ -7,11 +7,11 @@
<div class="card card-primary card-outline">
<div class="card-header">
<!-- <button class="btn btn-primary btn-xs float-right" style="margin-left: 2px;" onclick="printDiv('printableArea')"><i class="fas fa-print"></i></button> -->
<h5 class="m-0"><?php echo $pageTitle; ?> <?php showCreateButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/add","Create New ".$pageTitle); ?></h5>
</div>
<div id="printableArea">
<div class="card-body">
<div class="row bill-header">
@ -88,7 +88,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
@ -96,3 +96,16 @@
</div>
</div>
</div>
<script>
function printDiv(divName) {
var printContents = document.getElementById(divName).innerHTML;
var originalContents = document.body.innerHTML;
document.body.innerHTML = printContents;
window.print();
document.body.innerHTML = originalContents;
}
</script>

View File

@ -7,11 +7,11 @@
<div class="card card-primary card-outline">
<div class="card-header">
<!-- <button class="btn btn-primary btn-xs float-right" style="margin-left: 2px;" onclick="printDiv('printableArea')"><i class="fas fa-print"></i></button> -->
<h5 class="m-0"><?php echo $pageTitle; ?> <a href="<?php echo site_url($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/create"); ?>" class="btn btn-sm btn-primary float-right">Create New <?php echo $pageTitle; ?></a></h5>
</div>
<div id="printableArea">
<div class="card-body">
<div class="row bill-header">
@ -86,7 +86,7 @@
</div>
</div>
</div>
</div>
</div>
</div>

View File

@ -209,11 +209,10 @@
</tr>
</thead>
<tbody>
<?php $Total = 0;$PTotal=0;$STotal=0;$CTotal=0;
foreach ($StockRecords as $TableRow) : ?>
foreach ($StockRecords as $index=>$TableRow) : ?>
<tr>
<td></td>
<td><?php echo $index+1; ?></td>
<td><?php echo ($TableRow->Item)?$TableRow->Item->title:"N/A"; ?></td>
<td><?php echo getFieldfromValue("tbl_units", "title", "unit_id", $TableRow->Item->units_id); ?></td>
<td class="text-right"><?php echo $TableRow->Summary->Opening->qty; ?></td>

Binary file not shown.

Binary file not shown.