Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_admin
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
2c7eb3c3
authored
Dec 01, 2022
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改订单
parent
6eb0329a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
app/Admin/Service/OrderService.php
app/Admin/Service/OrderService.php
View file @
2c7eb3c3
...
@@ -117,18 +117,18 @@ class OrderService extends BaseService
...
@@ -117,18 +117,18 @@ class OrderService extends BaseService
// dd($returnItems);
// dd($returnItems);
foreach
(
$orderItems
as
$orderItem
){
foreach
(
$orderItems
as
$orderItem
){
OrderItem
::
updateOrderItem
([
"rec_id"
=>
$orderItem
[
"order_items_id"
]],[
OrderItem
::
updateOrderItem
([
"rec_id"
=>
$orderItem
[
"order_items_id"
]],[
"goods_price"
=>
floatval
(
$orderItem
[
"goods_price"
])
<=
0
?
0
:
$orderItem
[
"goods_price"
]
,
"goods_price"
=>
floatval
(
$orderItem
[
"goods_price"
])
<=
0
?
0
:
decimal_number_format
(
$orderItem
[
"goods_price"
],
DIGITS_SIX
)
,
"goods_number"
=>
intval
(
$orderItem
[
"goods_number"
])
<=
0
?
0
:
$orderItem
[
"goods_number"
],
"goods_number"
=>
intval
(
$orderItem
[
"goods_number"
])
<=
0
?
0
:
$orderItem
[
"goods_number"
],
]);
]);
$returnItems
=
OrderReturnItems
::
getOrderReturnItem
(
$orderItem
[
"order_items_id"
]);
$returnItems
=
OrderReturnItems
::
getOrderReturnItem
(
$orderItem
[
"order_items_id"
]);
$insertReturnItemData
=
[
$insertReturnItemData
=
[
"type"
=>
$orderItem
[
"return_type"
]
,
"type"
=>
intval
(
$orderItem
[
"return_type"
])
,
"order_id"
=>
$order_id
,
"order_id"
=>
$order_id
,
"rec_id"
=>
$orderItem
[
"order_items_id"
],
"rec_id"
=>
$orderItem
[
"order_items_id"
],
"return_num"
=>
intval
(
$orderItem
[
"return_goods_number"
])
<=
0
?
0
:
intval
(
$orderItem
[
"return_goods_number"
]),
"return_num"
=>
intval
(
$orderItem
[
"return_goods_number"
])
<=
0
?
0
:
intval
(
$orderItem
[
"return_goods_number"
]),
"return_price"
=>
floatval
(
$orderItem
[
"return_goods_price"
])
<=
0
?
0
:
$orderItem
[
"return_goods_price"
]
,
"return_price"
=>
floatval
(
$orderItem
[
"return_goods_price"
])
<=
0
?
0
:
decimal_number_format
(
$orderItem
[
"return_goods_price"
],
DIGITS_SIX
)
,
"return_amount"
=>
$orderItem
[
"return_amount"
]
,
"return_amount"
=>
decimal_number_format
(
$orderItem
[
"return_amount"
])
,
// "return_amount"=> decimal_number_format($orderItem["return_goods_number"] * $orderItem["return_goods_price"]),
// "return_amount"=> decimal_number_format($orderItem["return_goods_number"] * $orderItem["return_goods_price"]),
];
];
...
...
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