Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
eb7c3a43
Commit
eb7c3a43
authored
Dec 20, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
del
parent
562faea4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
Finance.php
application/index/controller/Finance.php
+8
-5
No files found.
application/index/controller/Finance.php
View file @
eb7c3a43
...
...
@@ -3232,8 +3232,8 @@ class Finance extends Basic
$pay_log_id
=
$m_pay_adjustment
->
getAdjustmentList
(
'paylog_id'
,
[
'paylog_id'
=>
$pay_adjustment
[
0
][
'paylog_id'
]]);
if
(
count
(
$pay_log_id
)
>
1
)
{
return
$this
->
response
(
$code
,
'存在
多次
调整,不能删除'
);
if
(
count
(
$pay_log_id
))
{
return
$this
->
response
(
$code
,
'存在调整,不能删除'
);
}
$num
=
$m_pay_adjustment
->
editData
([
'is_del'
=>
1
],
$this
->
params
[
'id'
]);
...
...
@@ -3370,6 +3370,9 @@ class Finance extends Basic
* 删除收款
*
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
delPayLog
()
{
$code
=
101
;
...
...
@@ -3385,9 +3388,9 @@ class Finance extends Basic
}
$m_pay_adjustment
=
new
OPayLogAdjustment
();
$adjustment_num
=
$m_pay_adjustment
->
getAdjustmentList
(
'id'
,
[
'paylog_id'
=>
$this
->
params
[
'pay_id'
]]);
if
(
count
(
$adjustment_num
)
>
1
)
{
return
$this
->
response
(
$code
,
'存在
多次
调整,不能删除'
);
$adjustment_num
=
$m_pay_adjustment
->
getAdjustmentList
(
'id'
,
[
'
new_
paylog_id'
=>
$this
->
params
[
'pay_id'
]]);
if
(
count
(
$adjustment_num
))
{
return
$this
->
response
(
$code
,
'存在调整,不能删除'
);
}
$num
=
$m_pay
->
updatePayLog
([
'is_del'
=>
1
,
'id'
=>
$this
->
params
[
'pay_id'
]]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment