changes
This commit is contained in:
parent
0f5bafdf3e
commit
16246fbdeb
@ -1001,7 +1001,7 @@ class myaccounts
|
|||||||
<!-- <td><?php echo $TableRow->voucher_state; ?></td> -->
|
<!-- <td><?php echo $TableRow->voucher_state; ?></td> -->
|
||||||
<td class="col-1 text-center">
|
<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-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>
|
<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 //print_r($ci->session->userdata());die; ?>
|
||||||
<?php if ($ci->session->userdata('LoggedUser') != 'admin'): ?>
|
<?php if ($ci->session->userdata('LoggedUser') != 'admin'): ?>
|
||||||
@ -1351,7 +1351,7 @@ class myaccounts
|
|||||||
<?php if ($displayName != "") : ?>
|
<?php if ($displayName != "") : ?>
|
||||||
<label for="<?php echo $fieldID; ?>"><?php echo function_exists("myLang") ? myLang($displayName) : $displayName; ?></label>
|
<label for="<?php echo $fieldID; ?>"><?php echo function_exists("myLang") ? myLang($displayName) : $displayName; ?></label>
|
||||||
<?php endif; ?>
|
<?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 </option>
|
||||||
<!-- <option value="">Select <?php //echo function_exists("myLang") ? myLang($displayName) : $displayName;
|
<!-- <option value="">Select <?php //echo function_exists("myLang") ? myLang($displayName) : $displayName;
|
||||||
?></option> -->
|
?></option> -->
|
||||||
|
@ -38,6 +38,7 @@ $AccountCategories = $this->myaccounts->getChildAccountCategories();
|
|||||||
$drTotal += $AccountCategory->dr;
|
$drTotal += $AccountCategory->dr;
|
||||||
$crTotal += $AccountCategory->cr;
|
$crTotal += $AccountCategory->cr;
|
||||||
?>
|
?>
|
||||||
|
<!-- <?php //print_r($AccountCategory);die; ?> -->
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<a href="<?php echo site_url("accounts/reports/balance_by_ledger") . "?group=" . $AccountCategory->accategory_id; ?>">
|
<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>
|
||||||
<td width="<?php echo $drWidth; ?>"><?php echo myCurrency($AccountCategory->dr); ?></td>
|
<td width="<?php echo $drWidth; ?>"><?php echo myCurrency($AccountCategory->dr); ?></td>
|
||||||
<td width="<?php echo $crWidth; ?>"><?php echo myCurrency($AccountCategory->cr); ?></td>
|
<td width="<?php echo $crWidth; ?>"><?php echo myCurrency($AccountCategory->cr); ?></td>
|
||||||
<td class="text-right">Balance</td>
|
<td class="text-right"><?php echo myCurrency($AccountCategory->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-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>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -100,7 +100,7 @@
|
|||||||
<th>From</th>
|
<th>From</th>
|
||||||
<th>To</th>
|
<th>To</th>
|
||||||
<!-- <th>Created By</th> -->
|
<!-- <th>Created By</th> -->
|
||||||
<th class="col-1 text-center">Action</th>
|
<th class="col-2 text-center">Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -7,11 +7,11 @@
|
|||||||
|
|
||||||
<div class="card card-primary card-outline">
|
<div class="card card-primary card-outline">
|
||||||
<div class="card-header">
|
<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>
|
<h5 class="m-0"><?php echo $pageTitle; ?> <?php showCreateButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/add","Create New ".$pageTitle); ?></h5>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<div id="printableArea">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
|
||||||
<div class="row bill-header">
|
<div class="row bill-header">
|
||||||
@ -88,11 +88,24 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</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>
|
||||||
|
@ -7,11 +7,11 @@
|
|||||||
|
|
||||||
<div class="card card-primary card-outline">
|
<div class="card card-primary card-outline">
|
||||||
<div class="card-header">
|
<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>
|
<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>
|
||||||
|
<div id="printableArea">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
|
||||||
<div class="row bill-header">
|
<div class="row bill-header">
|
||||||
@ -86,7 +86,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -209,11 +209,10 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
||||||
<?php $Total = 0;$PTotal=0;$STotal=0;$CTotal=0;
|
<?php $Total = 0;$PTotal=0;$STotal=0;$CTotal=0;
|
||||||
foreach ($StockRecords as $TableRow) : ?>
|
foreach ($StockRecords as $index=>$TableRow) : ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td></td>
|
<td><?php echo $index+1; ?></td>
|
||||||
<td><?php echo ($TableRow->Item)?$TableRow->Item->title:"N/A"; ?></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><?php echo getFieldfromValue("tbl_units", "title", "unit_id", $TableRow->Item->units_id); ?></td>
|
||||||
<td class="text-right"><?php echo $TableRow->Summary->Opening->qty; ?></td>
|
<td class="text-right"><?php echo $TableRow->Summary->Opening->qty; ?></td>
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user