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
9fbf87d4
Commit
9fbf87d4
authored
Feb 19, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收款调整详情
parent
df6e12e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
Finance.php
application/index/controller/Finance.php
+11
-7
No files found.
application/index/controller/Finance.php
View file @
9fbf87d4
...
...
@@ -2616,11 +2616,13 @@ class Finance extends Basic
$m_house
=
new
GHouses
();
$m_refund
=
new
ORefundModel
();
foreach
(
$list
as
$k
=>
$v
)
{
if
(
$v
[
'source'
]
==
2
)
{
$source_id
=
$m_pay_adjustment
->
getFieldColumn
(
'id'
,
[
'new_paylog_id'
=>
$v
[
'id'
]]);
$list
[
$k
][
'source_id'
]
=
''
;
if
(
$v
[
'source'
]
==
0
)
{
$source_id
=
$m_pay_adjustment
->
getFieldColumn
(
'id'
,
[
'paylog_id'
=>
$v
[
'id'
]]);
$list
[
$k
][
'source_id'
]
=
empty
(
$source_id
)
?
0
:
implode
(
','
,
$source_id
);
$list
[
$k
][
'source'
]
=
2
;
}
else
{
$list
[
$k
][
'source
_id'
]
=
''
;
$list
[
$k
][
'source
'
]
=
0
;
}
$num
=
$m_refund
->
getFind
(
'id'
,[
'pay_log_id'
=>
$v
[
'id'
],
'is_del'
=>
0
]);
...
...
@@ -4019,7 +4021,7 @@ class Finance extends Basic
$field
=
'a.id,a.create_time,a.order_id,a.father_id,a.money,a.real_money,a.pay_type,a.type,a.source,a.transaction_fee,a.source,b.f_id,a.transfer_name,a.receipt_number,'
;
$field
.=
'e.name,a.income_time,e.store_id,b.house_id,b.order_no,a.report_id,a.house_number,a.is_dividend,a.last_transfer_time,a.industry_type,a.agent_id,d.internal_address as address,e.name as agent_name'
;
$where
[
'a.is_del'
]
=
$where_2
[
'a.is_del'
]
=
$where_3
[
'a.is_del'
]
=
0
;
$where_2
[
'a.paylog_id'
]
=
$where
[
'a.id'
]
=
$where_3
[
'a.pay_log_id'
]
=
$this
->
params
[
'pay_id'
];
$where_2
[
'a.paylog_id'
]
=
$where
[
'a.
father_
id'
]
=
$where_3
[
'a.pay_log_id'
]
=
$this
->
params
[
'pay_id'
];
$list
=
$m_paylog
->
getAddPayLogOrderListLimit
(
1
,
1000
,
''
,
$field
,
$where
);
$m_store
=
new
AStore
();
$m_pay_adjustment
=
new
OPayLogAdjustment
();
...
...
@@ -4029,11 +4031,13 @@ class Finance extends Basic
$m_refund
=
new
ORefundModel
();
$m_agent
=
new
AAgents
();
foreach
(
$list
as
$k
=>
$v
)
{
if
(
$v
[
'source'
]
==
2
)
{
$source_id
=
$m_pay_adjustment
->
getFieldColumn
(
'id'
,
[
'new_paylog_id'
=>
$v
[
'id'
]]);
$list
[
$k
][
'source_id'
]
=
''
;
if
(
$v
[
'source'
]
==
0
)
{
$source_id
=
$m_pay_adjustment
->
getFieldColumn
(
'id'
,
[
'paylog_id'
=>
$v
[
'id'
]]);
$list
[
$k
][
'source_id'
]
=
empty
(
$source_id
)
?
0
:
implode
(
','
,
$source_id
);
$list
[
$k
][
'source'
]
=
2
;
}
else
{
$list
[
$k
][
'source
_id'
]
=
''
;
$list
[
$k
][
'source
'
]
=
0
;
}
$num
=
$m_refund
->
getFind
(
'id'
,[
'pay_log_id'
=>
$v
[
'id'
],
'is_del'
=>
0
]);
...
...
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