Sfoglia il codice sorgente

选择未开票的时候,不写入开票时间

evoxwht 2 anni fa
parent
commit
4477be2a58

+ 0 - 2
crmeb/app/model/system/store/SystemStore.php

@@ -78,6 +78,4 @@ class SystemStore extends BaseModel
             $query->where('id|name|introduction|phone', 'LIKE', "%$value%");
         }
     }
-
-
 }

+ 3 - 1
crmeb/app/services/order/StoreOrderInvoiceServices.php

@@ -155,7 +155,9 @@ class StoreOrderInvoiceServices extends BaseServices
         if (!$orderInvoice) {
             throw new ApiException(100026);
         }
-        $data['invoice_time'] = time();
+        if ($data['is_invoice'] == 1) {
+            $data['invoice_time'] = time();
+        }
         if (!$this->dao->update($id, $data, 'id')) {
             throw new ApiException(100015);
         }