|
@@ -56,8 +56,8 @@ class Agreement
|
|
|
Dever::alert('您没有权限查看');
|
|
|
}
|
|
|
|
|
|
- if (isset($p['ids'])) {
|
|
|
- $info['jiaofu_id'] = $p['ids'];
|
|
|
+ if (isset($p['date'])) {
|
|
|
+ $info['jiaofu_date'] = $p['date'];
|
|
|
}
|
|
|
if (isset($p['total'])) {
|
|
|
$info['jiaofu_total'] = $p['total'];
|
|
@@ -79,7 +79,7 @@ class Agreement
|
|
|
}
|
|
|
|
|
|
|
|
|
- public function name($agreement, $info, $status = -1, $source = 1, $ids = false, $total = false)
|
|
|
+ public function name($agreement, $info, $status = -1, $source = 1, $date = false, $total = false)
|
|
|
{
|
|
|
if (!$agreement) {
|
|
|
$agreement = Dever::db('setting/agreement')->find(array('type' => 6));
|
|
@@ -109,8 +109,8 @@ class Agreement
|
|
|
$param['status'] = $status;
|
|
|
$param['id'] = $info['id'];
|
|
|
$param['agreement_id'] = $agreement['id'];
|
|
|
- if ($ids) {
|
|
|
- $param['ids'] = $ids;
|
|
|
+ if ($date) {
|
|
|
+ $param['date'] = $date;
|
|
|
}
|
|
|
if ($total) {
|
|
|
$param['total'] = $total;
|
|
@@ -130,7 +130,7 @@ class Agreement
|
|
|
}
|
|
|
|
|
|
|
|
|
- public function up($account, $ids, $total, $status = 1)
|
|
|
+ public function up($account, $date, $total, $status = 1)
|
|
|
{
|
|
|
$agreement = Dever::db('setting/agreement')->find(array('type' => 6));
|
|
|
if (!$agreement) {
|
|
@@ -158,8 +158,10 @@ class Agreement
|
|
|
$where['qdate'] = $qdate;
|
|
|
$where['sdate'] = $sdate;
|
|
|
$where['edate'] = $edate;
|
|
|
+ $where['status'] = 1;
|
|
|
+ $where['audit'] = 2;
|
|
|
|
|
|
- $where['jiaofu_id'] = $ids;
|
|
|
+ $where['jiaofu_date'] = $date;
|
|
|
$where['jiaofu_total'] = $total;
|
|
|
|
|
|
$method = 'content_' . $agreement['type'];
|
|
@@ -410,10 +412,8 @@ class Agreement
|
|
|
{
|
|
|
$base = Dever::db('setting/base')->find();
|
|
|
|
|
|
- if (isset($info['jiaofu_id'])) {
|
|
|
- $jiaofu_id = explode(',', $info['jiaofu_id']);
|
|
|
- $jiaofu = Dever::db('option/bill_jiaofu')->find($jiaofu_id[0]);
|
|
|
- $info['jiaofu_date'] = date("Y年m月d日", $jiaofu['cdate']);
|
|
|
+ if (isset($info['jiaofu_date'])) {
|
|
|
+ $info['jiaofu_date'] = date("Y年m月d日", $info['jiaofu_date']);
|
|
|
} else {
|
|
|
$info['jiaofu_total'] = '0.00';
|
|
|
$info['jiaofu_date'] = date("Y年m月d日");
|