Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3858ad20
authored
2 years ago
by
SUDPTDUBLXEROFX\Administrator
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
更新深茂售后
parent
2c8832fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
app/Http/Services/OrderService.php
app/Http/Services/OrderService.php
View file @
3858ad20
...
...
@@ -462,9 +462,7 @@ class OrderService
->
keyby
(
"rec_id"
)
->
toArray
();
$temp
=
[];
$return_amount_all
=
0
;
foreach
(
$returnItems
as
$k
=>
$v
){
$recId
=
$v
[
"rec_id"
];
$orderGoodsInfo
=
\Arr
::
get
(
$orderItemsArr
,
$recId
);
...
...
@@ -479,12 +477,13 @@ class OrderService
"after_sale_price"
=>
$v
[
"return_price"
],
// 售后单价
"return_amount"
=>
$v
[
"return_amount"
],
// 售后金额
];
$return_amount_all
+=
$v
[
"return_amount"
];
}
$return_amount_all
=
0
;
$temp
=
array_values
(
$temp
);
foreach
(
$temp
as
$c
=>&
$a
){
$a
[
"no"
]
=
$c
+
1
;
$return_amount_all
+=
$a
[
"return_amount"
];
}
return
[
"return_amount_all"
=>
$return_amount_all
,
"items"
=>
$temp
];
}
...
...
This diff is collapsed.
Click to expand it.
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