First pass at entering charges for a lease. This works, but does not have the ability to add multiple charges, and does not mirror the payment method, which is ajax based.
git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629/site@231 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -40,6 +40,7 @@ class AppModel extends Model {
|
||||
|
||||
var $actsAs = array('Containable', 'Linkable');
|
||||
var $useNullForEmpty = true;
|
||||
var $dateFields = array();
|
||||
|
||||
/**
|
||||
* Get Enum Values
|
||||
@@ -155,6 +156,17 @@ class AppModel extends Model {
|
||||
// override the behavior, or set useNullForEmpty to false.
|
||||
if ($this->useNullForEmpty)
|
||||
$this->recursive_array_replace("/^\s*$/", null, $this->data);
|
||||
|
||||
foreach ($this->dateFields AS $field) {
|
||||
/* if(isset($this->data['Transaction']['stamp']) && */
|
||||
/* $this->data['Transaction']['stamp'] !== 'CURRENT_TIMESTAMP') { */
|
||||
/* $this->data['Transaction']['stamp'] = */
|
||||
/* $this->dateFormatBeforeSave($this->data['Transaction']['stamp']); */
|
||||
/* } */
|
||||
/* else { */
|
||||
/* $this->data['Transaction']['stamp'] = null; */
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user