db->query("select * from tbl_sales where status=1")->result(); ?>
sales_id; ?> sales_date; ?> myaccounts->getAccountDetails($TableRow->accounts_id)->account_name; ?>
Details as $r) : $l += (($r->qty) * ($r->rate)); ?>
Item->title; ?> qty; ?> rate, true); ?> qty * $r->rate, true); ?>
    Total:
totalsales); ?> uri->segment(1) . "/" . $this->uri->segment(2) . "/details/$TableRow->sales_id"); ?> sales_id); ?>