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
dbf185b7
Commit
dbf185b7
authored
Jan 12, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除收款和删除调整
parent
1d3ea679
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
Finance.php
application/index/controller/Finance.php
+13
-2
No files found.
application/index/controller/Finance.php
View file @
dbf185b7
...
...
@@ -3417,6 +3417,12 @@ class Finance extends Basic
return
$this
->
response
(
$code
,
'存在调整,不能删除.'
);
}
$pay_log_id
=
$m_pay_adjustment
->
getFieldColumn
(
'paylog_id'
,
[
'in'
,
$pay_log_id
]);
if
(
count
(
$pay_log_id
)
>
1
)
{
return
$this
->
response
(
$code
,
'存在调整,不能删除.'
);
}
$num
=
$m_pay_adjustment
->
updatePayLogAdjustment
([
'is_del'
=>
1
,
'id'
=>
$this
->
params
[
'id'
]]);
if
(
$num
>
0
)
{
...
...
@@ -3609,11 +3615,16 @@ class Finance extends Basic
}
$m_pay_adjustment
=
new
OPayLogAdjustment
();
$adjustment_id
=
$m_pay_adjustment
->
get
FieldColumn
(
'
id'
,
[[
'EXP'
,
"paylog_id =
{
$this
->
params
[
'pay_id'
]
}
OR new_paylog_id = "
.
$this
->
params
[
'pay_id'
]]]);
$adjustment_id
=
$m_pay_adjustment
->
get
AdjustmentList
(
'id,paylog_
id'
,
[[
'EXP'
,
"paylog_id =
{
$this
->
params
[
'pay_id'
]
}
OR new_paylog_id = "
.
$this
->
params
[
'pay_id'
]]]);
if
(
count
(
$adjustment_id
)
>
1
)
{
return
$this
->
response
(
$code
,
'存在调整,不能删除'
);
}
$pay_log_id
=
$m_pay_adjustment
->
getAdjustmentList
(
'id'
,
[
'paylog_id'
=>
$adjustment_id
[
0
][
'paylog_id'
]]);
if
(
count
(
$pay_log_id
)
>
1
)
{
return
$this
->
response
(
$code
,
'存在调整,不能删除'
);
}
$m_refund
=
new
ORefundModel
();
$refund_id
=
$m_refund
->
getFind
(
'id'
,
[
'pay_log_id'
=>
$this
->
params
[
'pay_id'
]]);
if
(
$refund_id
>
0
)
{
...
...
@@ -3621,7 +3632,7 @@ class Finance extends Basic
}
$num
=
$m_pay
->
updatePayLog
([
'is_del'
=>
1
,
'id'
=>
$this
->
params
[
'pay_id'
]]);
if
(
$num
>
0
)
{
$m_pay_adjustment
->
updatePayLogAdjustment
([
'id'
=>
[
'in'
,
$adjustment_id
],
'is_del'
=>
1
]);
$m_pay_adjustment
->
updatePayLogAdjustment
([
'id'
=>
$adjustment_id
[
0
][
'id'
],
'is_del'
=>
1
]);
$code
=
200
;
}
else
{
$code
=
101
;
...
...
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