Fixed problem when effective_date is an empty string, as opposed to completely missing.
git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716/site@523 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -630,7 +630,8 @@ class Transaction extends AppModel {
|
|||||||
|
|
||||||
if (!empty($se)) {
|
if (!empty($se)) {
|
||||||
$se['transaction_id'] = $ret['transaction_id'];
|
$se['transaction_id'] = $ret['transaction_id'];
|
||||||
$se += array('effective_date' => $transaction_stamp);
|
if (empty($se['effective_date']))
|
||||||
|
$se['effective_date'] = $transaction_stamp;
|
||||||
$result = $this->StatementEntry->addStatementEntry($se);
|
$result = $this->StatementEntry->addStatementEntry($se);
|
||||||
$ret['entries'][$e_index]['StatementEntry'] = $result;
|
$ret['entries'][$e_index]['StatementEntry'] = $result;
|
||||||
if ($result['error']) {
|
if ($result['error']) {
|
||||||
|
|||||||
Reference in New Issue
Block a user