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
9bcddd20
Commit
9bcddd20
authored
May 24, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
d0c246e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
5 deletions
+22
-5
OrderLogService.php
application/api_broker/service/OrderLogService.php
+22
-5
No files found.
application/api_broker/service/OrderLogService.php
View file @
9bcddd20
...
...
@@ -869,11 +869,28 @@ class OrderLogService
//税费
$taxesModel
=
new
OTaxes
();
$fieldTaxes
=
"bargain_id,fee,total_fee,father_id,operation_date,agent_id,agent_name,scale"
;
$taxesArr
=
$taxesModel
->
getBargainTaxes
(
$params
[
"bargain_id"
],
$fieldTaxes
);
$taxes
=
array
();
foreach
(
$taxesArr
as
$items
){
$taxes
[
$items
[
"operation_date"
]][]
=
$items
;
$fieldTaxes
=
"id,bargain_id,fee,total_fee,father_id,operation_date,agent_id,agent_name,scale,create_time,role"
;
$taxesArr
=
$taxesModel
->
getBargainTaxes
(
$params
[
"bargain_id"
],
$fieldTaxes
);
$taxes_
=
$taxes
=
array
();
foreach
(
$taxesArr
as
$items
)
{
$taxes_
[
$items
[
"operation_date"
]][]
=
$items
;
}
$z
=
0
;
foreach
(
$taxes_
as
$item
)
{
$taxes
[
$z
][
"operation_date"
]
=
$item
[
0
][
"operation_date"
];
$taxes
[
$z
][
"total_fee"
]
=
$item
[
0
][
"total_fee"
];
$key
=
0
;
foreach
(
$item
as
$i
=>
$j
)
{
$taxes
[
$z
][
"info"
][
$key
][
"role"
]
=
$j
[
"role"
];
$taxes
[
$z
][
"info"
][
$key
][
"agent_name"
]
=
$j
[
"agent_name"
];
$taxes
[
$z
][
"info"
][
$key
][
"scale"
]
=
$j
[
"scale"
];
$taxes
[
$z
][
"info"
][
$key
][
"fee"
]
=
$j
[
"fee"
];
$key
++
;
}
$z
++
;
}
$result
[
"taxes"
]
=
$taxes
;
...
...
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