css edit
This commit is contained in:
@ -126,17 +126,19 @@
|
||||
<th rowspan="2" width="30" valign="middle"><?php myLang('S.No.'); ?></th>
|
||||
<th rowspan="2"><?php myLang('Item'); ?></th>
|
||||
<th rowspan="2"><?php myLang('Units'); ?></th>
|
||||
<th colspan="2" class="text-center"><?php myLang('Opening Stock'); ?></th>
|
||||
<th colspan="3" class="text-center"><?php myLang('Opening Stock'); ?></th>
|
||||
<th colspan="3" class="text-center"><?php myLang('Purchase'); ?></th>
|
||||
<th colspan="3" class="text-center"><?php myLang('Sales'); ?></th>
|
||||
<th rowspan="2" class="text-center"><?php myLang('Sold Inventory %'); ?></th>
|
||||
<th rowspan="2" class="text-center"><?php myLang('Remaining Inventory %'); ?></th>
|
||||
<th colspan="2" class="text-center"><?php myLang('Remaining Inventory'); ?></th>
|
||||
<th rowspan="2" class="text-right"><?php myLang('Cost of Goods Sold'); ?></th>
|
||||
<th rowspan="2" class="text-center"><?php myLang('Gross Profit'); ?></th>
|
||||
<th rowspan="2" class="text-center"><?php myLang('Gross Profit Margin'); ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="text-right"><?php myLang('Qty'); ?></th>
|
||||
<th class="text-right"><?php myLang('Rate'); ?></th>
|
||||
<th class="text-right"><?php myLang('Value'); ?></th>
|
||||
<th class="text-right"><?php myLang('Qty'); ?></th>
|
||||
<th class="text-right"><?php myLang('Avg. Rate'); ?></th>
|
||||
@ -177,6 +179,7 @@
|
||||
$sumoamount = 0;
|
||||
$sumclamount = 0;
|
||||
$sumcogs = 0;
|
||||
$sumgp = 0;
|
||||
?>
|
||||
<?php $a = 0;
|
||||
foreach ($StockItems as $Stock) : $a++; ?>
|
||||
@ -185,6 +188,7 @@
|
||||
<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>
|
||||
<td class="text-right"><?php echo myCurrency($orate = $Stock->Summary->Opening->rate); ?></td>
|
||||
<td class="text-right"><?php echo myCurrency($oamount = $Stock->Summary->Opening->amount); ?></td>
|
||||
<td class="text-right"><?php echo $Stock->Summary->Purchase->qty; ?></td>
|
||||
<td class="text-right"><?php echo myCurrency($Stock->Summary->Purchase->rate); ?></td>
|
||||
@ -200,8 +204,10 @@
|
||||
<td class="text-right"><?php echo myCurrency($clamount = $Stock->Summary->Closing->amount); ?></td>
|
||||
<?php $cogs = ($Stock->Summary->Sales->qty) * ($Stock->Summary->Purchase->rate); ?>
|
||||
<td class="text-right"><?php echo myCurrency($cogs); ?></td>
|
||||
<?php $gp=($Stock->Summary->Sales->qty) - $cogs; ?>
|
||||
<?php $gpm = ($Stock->Summary->Sales->amount > 0) ? (($Stock->Summary->Sales->amount - $cogs) / $Stock->Summary->Sales->amount) * 100 : 0; ?>
|
||||
<?php $gp=($Stock->Summary->Sales->amount) - $cogs; ?>
|
||||
<td class="text-right"><?php echo myCurrency($gp); ?></td>
|
||||
|
||||
<?php $gpm = ($Stock->Summary->Sales->amount > 0) ? ($gp/ $Stock->Summary->Sales->amount) * 100 : 0; ?>
|
||||
<td class="text-center"><?php echo number_format($gpm, 2) . "%"; ?></td>
|
||||
<td></td>
|
||||
<?php
|
||||
@ -213,6 +219,7 @@
|
||||
$sumclqty += $clqty;
|
||||
$sumclamount += $clamount;
|
||||
$sumcogs += $cogs;
|
||||
$sumgp += $gp;
|
||||
|
||||
?>
|
||||
</tr>
|
||||
@ -223,6 +230,7 @@
|
||||
<tr>
|
||||
<td colspan="3" class="text-right text-bold">Grand Total</td>
|
||||
<td class="text-right text-bold"><?php echo $sumoqty ?></td>
|
||||
<td class="text-right text-bold"></td>
|
||||
<td class="text-right text-bold"><?php echo number_format($sumoamount, 2) ?></td>
|
||||
<td class="text-right text-bold"></td>
|
||||
<td class="text-right text-bold"></td>
|
||||
@ -235,6 +243,7 @@
|
||||
<td class="text-right text-bold"><?php echo $sumclqty ?></td>
|
||||
<td class="text-right text-bold"><?php echo number_format($sumclamount, 2) ?></td>
|
||||
<td class="text-right text-bold"><?php echo number_format($sumcogs, 2) ?></td>
|
||||
<td class="text-right text-bold"><?php echo number_format($sumgp, 2) ?></td>
|
||||
<td class="text-right text-bold"></td>
|
||||
|
||||
</tr>
|
||||
|
Reference in New Issue
Block a user