Standardisation work, changed accnum() to refnum()
This commit is contained in:
@@ -52,7 +52,16 @@ class Model_Invoice extends ORM_OSB implements Cartable {
|
||||
|
||||
private $_render = array();
|
||||
|
||||
// Our required Interface Methods
|
||||
/** REQUIRED ABSTRACT METHODS **/
|
||||
/**
|
||||
* Display the Invoice Reference Number
|
||||
*/
|
||||
public function refnum($short=FALSE) {
|
||||
return ($short ? '' : $this->account->refnum(FALSE).'-').sprintf('%06s',$this->id);
|
||||
}
|
||||
|
||||
|
||||
/** REQUIRED INTERFACE METHODS **/
|
||||
|
||||
public function cart_item() {
|
||||
return new Cart_Item(1,sprintf('Invoice: %s',$this->refnum()),$this->due());
|
||||
@@ -221,13 +230,6 @@ class Model_Invoice extends ORM_OSB implements Cartable {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the Invoice Reference Number
|
||||
*/
|
||||
public function refnum() {
|
||||
return sprintf('%s-%06s',$this->account->accnum(),$this->id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check the reminder value
|
||||
*/
|
||||
|
Reference in New Issue
Block a user