This commit is contained in:
Sampanna Rimal 2024-08-09 15:37:11 +05:45
parent 2ebd3a2ea9
commit c64472a21e
10 changed files with 10 additions and 3 deletions

View File

@ -70,6 +70,7 @@ class myaccounts
$crTotal = 0; $crTotal = 0;
$drTotal = 0; $drTotal = 0;
$fields = array(); $fields = array();
// print_r($VoucherDetails);die;
foreach ($VoucherDetails as $VoucherDetail) : foreach ($VoucherDetails as $VoucherDetail) :
$i++; $i++;
$fields['account_name_' . $i] = $VoucherDetail->account_name; $fields['account_name_' . $i] = $VoucherDetail->account_name;
@ -90,6 +91,9 @@ class myaccounts
$fields['amount_in_words'] = trim($CI->numbertoword->nepali_word($crTotal)); $fields['amount_in_words'] = trim($CI->numbertoword->nepali_word($crTotal));
else else
$fields['amount_in_words'] = trim($CI->numbertoword->english_word($crTotal)); $fields['amount_in_words'] = trim($CI->numbertoword->english_word($crTotal));
// $fields['narration_' . $i] = $VoucherDetail->narration;
$file = APPPATH . "/../pdf/e_voucher1.pdf"; $file = APPPATH . "/../pdf/e_voucher1.pdf";
$pdf = new FPDM($file); $pdf = new FPDM($file);
//pre($pdf->getContent($file,"PDF")); //pre($pdf->getContent($file,"PDF"));
@ -999,7 +1003,10 @@ class myaccounts
<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 if ($ci->session->userdata('LoggedUser') != 'admin'): ?>
<a onClick="javascript:deleteVoucher(<?php echo $TableRow->voucher_id; ?>);" class="btn btn-danger btn-xs" title="Delete Voucher"><i class="fa fa-trash"></i></a> <a onClick="javascript:deleteVoucher(<?php echo $TableRow->voucher_id; ?>);" class="btn btn-danger btn-xs" title="Delete Voucher"><i class="fa fa-trash"></i></a>
<?php endif; ?>
</td> </td>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>
@ -1204,7 +1211,7 @@ class myaccounts
<td><?php echo myCurrency($drTotal); ?></td> <td><?php echo myCurrency($drTotal); ?></td>
</tr> </tr>
<tr> <tr>
<td colspan="<?php echo $TotalCols; ?>" class="text-left" height=100>Narration: <?php echo $TableRow->narration; ?></td> <td colspan="<?php echo $TotalCols; ?>" class="text-left" height=100><i>Narration: <?php echo $TableRow->narration; ?></i></td>
</tr> </tr>
<tr> <tr>
<td colspan="<?php echo $TotalCols; ?>" class="text-center" height=200> <td colspan="<?php echo $TotalCols; ?>" class="text-center" height=200>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.