dever 3 年之前
父節點
當前提交
5d6532f624
共有 2 個文件被更改,包括 23 次插入1 次删除
  1. 22 0
      service/option/database/bill_jiaofu.php
  2. 1 1
      service/option/lib/Cash.php

+ 22 - 0
service/option/database/bill_jiaofu.php

@@ -121,6 +121,28 @@ return array
             'list_order' => 3,
         ),
 
+        'sign'     => array
+        (
+            'type'      => 'varchar-150',
+            'name'      => '签字',
+            'default'   => '',
+            'desc'      => '签字',
+            'match'     => 'option',
+            'update'    => 'image',
+            'key'       => '7',
+            //'list'      => '"<img src=\'{sign}\' width=\'150\'>"',
+            //'list_order' => 5,
+        ),
+
+        'agreement_id' => array
+        (
+            'type'      => 'int-11',
+            'name'      => '合同id',
+            'default'   => '',
+            'desc'      => '合同id',
+            'match'     => 'is_numeric',
+        ),
+
         'status'        => array
         (
             'type'      => 'tinyint-1',

+ 1 - 1
service/option/lib/Cash.php

@@ -238,7 +238,7 @@ class Cash
     # 确认期权价值
     public function setValue($info)
     {
-        $state = Dever::db('option/bill_jiaofu')->upYes(array('where_start' => $info['jiaofu_date'], 'where_aid' => $info['aid'], 'where_status' => 2, 'set_status' => 1, 'set_qdate' => time()));
+        $state = Dever::db('option/bill_jiaofu')->upYes(array('where_start' => $info['jiaofu_date'], 'where_aid' => $info['aid'], 'where_status' => 2, 'set_agreement_id' => $info['id'], 'set_status' => 1, 'set_qdate' => time()));
 
         if ($state) {
             $account_cash = Dever::db('option/cash')->select(array('aid' => $info['aid']));