//EMPTY TOTAL VALUE
$net = '';
$vat = '';
//GET TOTALS
if(!empty($items)) {
foreach($items as $row){
$net = $net + $row['item_net'];
if($row['item_vat'] == 1)
$vat = $vat + ($row['item_net'] * '0.175');
}
$total = $net + $vat;
}
else
$net = $vat = $total = 'n/a';
Main Topics
Browse All Topics





by: gawaiPosted on 2007-10-09 at 08:33:38ID: 20041815
can you post your code here ?