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

This commit is contained in:
evoxwht 2023-03-24 10:34:42 +08:00
parent 8524c640d5
commit 4477be2a58
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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);
}