RSS

PHP_2

11 Jun

fieldset.content-multigroup-group-fincbk-details .content-multigroup-display-table-multiple-columns;
print  $node->field_fincbk_date[0][value];

$qty = $node->field_fincbk_qty[$key][value];
print $qty;

$price = $node->field_fincbk_price[$key][value];
print $price;

print ‘TOTAL’.$qty * $price;

print ‘<div>’.number_format($node->field_fincbk_qty[$key][value],0,’,’,’.’).'</div>’;
print ‘<div>’.number_format($node->field_fincbk_price[$key][value],0,’,’,’.’).'</div>’;

$total = $qty*$price;
print ‘<div>TOTAL’.number_format($total,0,’,’,’.’).'</div>’;

print “<tr>”;
print “KETERANGAN”;
print “</tr>”;

print “<tr>”;
print “QTY”;
print “</tr>”;

print “<tr>”;
print “HARGA”;
print “</tr>”;

print “<tr>”;
print “JUMLAH”
print “</tr>”;

print ‘<div>DISKON: ‘.$node->field_fincbk_discount[0][value].'</div>’;
print ‘<div>BIAYA TAMBAHAN: ‘.$node->field_fincbk_additional_charge[0][value].'</div>’;

$total = $node->field_condat_total[0][value];
$discount = $node->field_condat_discount[0][value];
$additional_charge = $node->field_fincbk_additional_charge[0][value];
$netto = $total-$discount+$additional_charge;
print ‘<div>’.number_format($total,0,’,’,’.’).'</div>’;

 
Leave a comment

Posted by on June 11, 2011 in Computer, PHP

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: