|
|
|
@ -1316,7 +1316,7 @@ class Index extends CI_Controller {
|
|
|
|
|
$amount = $this->input->post("set_amount");
|
|
|
|
|
$last_record = $this->input->post("date_history");
|
|
|
|
|
if (empty($amount)) {
|
|
|
|
|
$export_list = $this->Note_model->date_range($from_date, $to_date, $currency);
|
|
|
|
|
$export_list = $this->Note_model->date_range($from_date, $to_date, $currency, null, false);
|
|
|
|
|
} else {
|
|
|
|
|
$allmost_day = intval(ceil($amount/10000));
|
|
|
|
|
if ( ! in_array($currency, array('CNY','USD'))) {
|
|
|
|
@ -1382,7 +1382,7 @@ class Index extends CI_Controller {
|
|
|
|
|
public function target_amount_recursive($currency, $target_amount, $now_amount, $from_date,$days=10,$list=array(), $last_sn=null, $last_flag=null)
|
|
|
|
|
{
|
|
|
|
|
$to_date = date('Y-m-d', strtotime("+$days days", strtotime($from_date)));
|
|
|
|
|
$former_list = $this->Note_model->date_range($from_date, $to_date, $currency, $last_sn);
|
|
|
|
|
$former_list = $this->Note_model->date_range($from_date, $to_date, $currency, $last_sn, false);
|
|
|
|
|
$list_index = 0;
|
|
|
|
|
$last_sn = $last_sn===null ? 0 : $last_sn;
|
|
|
|
|
$last_flag = $last_flag===null ? null : $last_flag;
|
|
|
|
|