mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 14:01:07 +00:00
选择未开票的时候,不写入开票时间
This commit is contained in:
parent
8524c640d5
commit
4477be2a58
@ -78,6 +78,4 @@ class SystemStore extends BaseModel
|
||||
$query->where('id|name|introduction|phone', 'LIKE', "%$value%");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user