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:
Normann Lou 2009-07-24 03:16:20 +00:00
parent 012427d6c8
commit ce9a4b158d

View File

@ -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;
}