correction of error for purchase and sales
This commit is contained in:
@ -250,10 +250,10 @@ $BIBAccounts = new BIBAccounts();
|
||||
<?php foreach ($AccountGroups as $group) : ?>
|
||||
<tr>
|
||||
<td colspan="2" class="p-0">
|
||||
<!-- <div id="group_<?php echo $group->acgroup_id; ?>" class=""> -->
|
||||
<?php $Accountcategories = $BIBAccounts->getRootCategoriesWithBalances($group->acgroup_id); ?>
|
||||
<?php $BIBAccounts->renderAccountCategoriesTable($Accountcategories, $ReportOptions, false, array()); ?>
|
||||
<!-- </div> -->
|
||||
<div id="group_<?php echo $group->acgroup_id; ?>" class="">
|
||||
<?php $Accountcategories = $BIBAccounts->getRootCategoriesWithBalances($group->acgroup_id); ?>
|
||||
<?php $BIBAccounts->renderAccountCategoriesTable($Accountcategories, $ReportOptions, false, array()); ?>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@ -272,6 +272,7 @@ $BIBAccounts = new BIBAccounts();
|
||||
|
||||
|
||||
</tbody>
|
||||
|
||||
<tfoot>
|
||||
<?php $PL = $incomes_totalClosingCr - $incomes_totalClosingDr; ?>
|
||||
<tr>
|
||||
@ -283,7 +284,7 @@ $BIBAccounts = new BIBAccounts();
|
||||
<?php echo myCurrency($incomes_totalClosingCr + abs($PL)); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
@ -312,11 +313,11 @@ $BIBAccounts = new BIBAccounts();
|
||||
<?php foreach ($AccountGroups as $group) : ?>
|
||||
<tr>
|
||||
<td colspan="2" class="p-0">
|
||||
<!-- <div id="group_<?php echo $group->acgroup_id; ?>" class=""> -->
|
||||
<i> <?php $Accountcategories = $BIBAccounts->getRootCategoriesWithBalances($group->acgroup_id); ?>
|
||||
<?php $BIBAccounts->renderAccountCategoriesTable($Accountcategories, $ReportOptions, false, array()); ?>
|
||||
</i>
|
||||
<!-- </div> -->
|
||||
<div id="group_<?php echo $group->acgroup_id; ?>" class="">
|
||||
<i> <?php $Accountcategories = $BIBAccounts->getRootCategoriesWithBalances($group->acgroup_id); ?>
|
||||
<?php $BIBAccounts->renderAccountCategoriesTable($Accountcategories, $ReportOptions, false, array()); ?>
|
||||
</i>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
|
@ -45,7 +45,9 @@
|
||||
<?php $PTotal = 0;
|
||||
$a = 0;
|
||||
foreach ($PurchaseDetails as $Purchase) : $a++; ?>
|
||||
<?php// var_dump($Purchase->Item->title);die(); ?>
|
||||
<tr>
|
||||
|
||||
<td><?php echo $a; ?></td>
|
||||
<td><?php echo $Purchase->Item->title; ?></td>
|
||||
<td class="text-right"><?php echo $Purchase->total_qty; ?></td>
|
||||
@ -185,7 +187,8 @@
|
||||
foreach ($StockItems as $Stock) : $a++; ?>
|
||||
<tr>
|
||||
<td class="text-center"><?php echo $a; ?></td>
|
||||
<td><?php echo $Stock->Item->title; ?></td>
|
||||
<?php //echo "<pre>";print_r($Stock->Summary->Item->title); die() ;?>
|
||||
<td><?php echo $Stock->Summary->Item->title; ?></td>
|
||||
<td><?php echo $Stock->Summary->Unit->title; ?></td>
|
||||
<td class="text-right"><?php echo $oqty = $Stock->Summary->Opening->qty; ?></td>
|
||||
<td class="text-right"><?php echo myCurrency($orate = $Stock->Summary->Opening->rate); ?></td>
|
||||
|
Reference in New Issue
Block a user