mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
FEATURE: plug in Postful mailling function to Process, making faking process for testing the postful mail functions. The two faking processes is implemented in two functions LotTicketedBased::fakepopulate() and ISSOrderDecorator::fakepopulatepayment().
FEATURE: customise OrderAdmin by ISSOrderAdmin. ENHANCEMENT: refactoring Preview feature for PostfulMail. ENHANCEMENT: add hasAmount to Menoy Class git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@82629 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
012427d6c8
commit
ce9a4b158d
@ -194,6 +194,13 @@ class Money extends DBField implements CompositeDBField {
|
||||
return ($this->getCurrency() && is_numeric($this->getAmount()));
|
||||
}
|
||||
|
||||
/**
|
||||
* @return boolean
|
||||
*/
|
||||
function hasAmount() {
|
||||
return (int)$this->getAmount() != '0';
|
||||
}
|
||||
|
||||
function isChanged() {
|
||||
return $this->isChanged;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user