Work on invoices, products and other minor things
This commit is contained in:
@@ -22,16 +22,17 @@ class Tax {
|
||||
public static function detail($cid,$zone,$value=0) {
|
||||
$tax = ORM::factory('tax')
|
||||
->where('country_id','=',$cid)
|
||||
->and_where('zone','=',$zone);
|
||||
->and_where('zone','=',$zone)
|
||||
->find_all();
|
||||
|
||||
$taxes = array();
|
||||
foreach ($tax->find_all() as $item) {
|
||||
foreach ($tax as $to) {
|
||||
$total = array();
|
||||
|
||||
$total['id'] = $item->id;
|
||||
$total['description'] = $item->description;
|
||||
$total['amount'] = $item->rate*$value;
|
||||
$total['rate'] = $item->rate;
|
||||
$total['id'] = $to->id;
|
||||
$total['description'] = $to->description;
|
||||
$total['amount'] = $to->rate*$value;
|
||||
$total['rate'] = $to->rate;
|
||||
|
||||
array_push($taxes,$total);
|
||||
}
|
||||
|
Reference in New Issue
Block a user