projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
40d75f6
)
UpdateCurrencyRate.php
author
Edward
<edward@roojs.com>
Mon, 20 Oct 2014 08:49:00 +0000
(16:49 +0800)
committer
Edward
<edward@roojs.com>
Mon, 20 Oct 2014 08:49:00 +0000
(16:49 +0800)
UpdateCurrencyRate.php
patch
|
blob
|
history
diff --git
a/UpdateCurrencyRate.php
b/UpdateCurrencyRate.php
index
b1fed61
..
63ba644
100644
(file)
--- a/
UpdateCurrencyRate.php
+++ b/
UpdateCurrencyRate.php
@@
-90,7
+90,7
@@
class Pman_Core_UpdateCurrencyRate extends Pman
$rate = empty($elements->item(0)->nodeValue) ? 0 : $elements->item(0)->nodeValue * 1;
$curr = DB_DataObject::factory('core_curr_rate');
$rate = empty($elements->item(0)->nodeValue) ? 0 : $elements->item(0)->nodeValue * 1;
$curr = DB_DataObject::factory('core_curr_rate');
- print_R($curr);exit;
+
$curr->curr = $c;
$o = false;
$curr->curr = $c;
$o = false;
@@
-98,7
+98,7
@@
class Pman_Core_UpdateCurrencyRate extends Pman
if($curr->find(true)){
$o = clone($curr);
}
if($curr->find(true)){
$o = clone($curr);
}
-
+ print_R($curr);exit;
$curr->setFrom(array(
'rate' => $rate,
'from' => date('Y-m-d H:i:s', strtotime($fromDate)),
$curr->setFrom(array(
'rate' => $rate,
'from' => date('Y-m-d H:i:s', strtotime($fromDate)),