edit profti and loss

This commit is contained in:
Raju Shrestha
2024-08-26 12:29:38 +05:45
parent 161703be17
commit 759b97e1f0
9 changed files with 575 additions and 134 deletions

View File

@ -100,7 +100,7 @@
<?php foreach ($TableRow as $cols) : $id = $cols;
break;
endforeach; ?><tr>
<td><?php echo $a; ?></td>
<td class="text-center"><?php echo $a; ?></td>
<td><?php echo $TableRow->title; ?></td>
<!-- <td><?php //echo getFieldfromValue("tbl_units", "title", "unit_id", $TableRow->units_id); ?></td> -->
<td><?php echo $TableRow->description; ?></td>

View File

@ -184,7 +184,7 @@
<?php $a = 0;
foreach ($StockItems as $Stock) : $a++; ?>
<tr>
<td><?php echo $a; ?></td>
<td class="text-center"><?php echo $a; ?></td>
<td><?php echo $Stock->Item->title; ?></td>
<td><?php echo $Stock->Summary->Unit->title; ?></td>
<td class="text-right"><?php echo $oqty = $Stock->Summary->Opening->qty; ?></td>

View File

@ -202,7 +202,7 @@
$CTotal = 0;
foreach ($StockRecords as $index => $TableRow) : ?>
<tr>
<td><?php echo $index + 1; ?></td>
<td class="text-center"><?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>