Improved ADSL Billing Review
This commit is contained in:
@@ -25,14 +25,16 @@ class Model_ADSL_Supplier_Plan extends ORM_OSB {
|
||||
return sprintf('%s/%s',$this->base_down_peak+$this->base_up_peak,$this->base_down_offpeak+$this->base_up_offpeak);
|
||||
}
|
||||
|
||||
public function tax() {
|
||||
// @todo This should be taken from the users session
|
||||
// @todo rounding should be a system default
|
||||
return round($this->base_cost*.1,2);
|
||||
}
|
||||
|
||||
public function name() {
|
||||
return $this->product_id;
|
||||
}
|
||||
|
||||
public function tax() {
|
||||
return Tax::amount($this->base_cost);
|
||||
}
|
||||
|
||||
public function total($format=FALSE) {
|
||||
return $format ? Currency::display($this->base_cost+$this->tax()) : Currency::round($this->base_cost+$this->tax());
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user