Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
my-yaf-project
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
chenchuanwen
my-yaf-project
Commits
a9be1560
Commit
a9be1560
authored
Dec 14, 2018
by
christ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ccw:master_dev
parent
482510f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
RefundService.php
application/models/Business/Order/RefundService.php
+9
-3
Store.php
application/models/DAO/Store.php
+2
-1
No files found.
application/models/Business/Order/RefundService.php
View file @
a9be1560
...
...
@@ -1056,9 +1056,9 @@ class RefundServiceModel extends \Business\AbstractModel
$refundCondition
[
'storeCarts'
][
'storeCarts'
]
=
$cartDao
->
refundGoodsRemove
(
$refundCondition
[
'storeCarts'
][
'storeCarts'
],
$goodsIds
);
if
(
!
empty
(
$refundCondition
[
'storeCarts'
][
'storeCarts'
]))
{
$newTotalPrice
=
$orderConfirmUtil
->
reCalcOrderAmount
(
$refundCondition
[
'coupon'
],
$refundCondition
[
'storeCarts'
][
'storeCarts'
]);
$refundAmount
=
$orderInfo
[
'orderAmount'
]
-
$
orderInfo
[
'shippingFee'
]
-
$
newTotalPrice
;
$refundAmount
=
$orderInfo
[
'orderAmount'
]
-
$newTotalPrice
;
}
else
{
$refundAmount
=
$orderInfo
[
'orderAmount'
]
-
$orderInfo
[
'shippingFee'
]
-
ApiConst
::
zero
;;
$refundAmount
=
$orderInfo
[
'orderAmount'
]
-
ApiConst
::
zero
;;
}
}
// if(!$alreadyRefundGoodsIds){
...
...
@@ -1073,15 +1073,21 @@ class RefundServiceModel extends \Business\AbstractModel
// }
}
$refundAmount
=
$refundAmount
-
$mustReduceAmount
;
if
(
$orderInfo
[
'shippingType'
]
==
ApiConst
::
bySeller
){
if
(
!
$shippingFee
){
$refundAmount
=
$refundAmount
+
$orderInfo
[
'shippingFee'
];
}
}
$liveMoney
=
$orderInfo
[
'orderAmount'
]
-
$orderInfo
[
'refundAmount'
];
if
(
$refundAmount
>
$liveMoney
){
$refundAmount
=
$liveMoney
;
}
// $returnData['refundAmount'] = $refundAmount - $orderInfo['refundAmount'] - $returnData['needShippingFee'] + $shippingFee;
$returnData
[
'refundAmount'
]
=
$refundAmount
-
$returnData
[
'needShippingFee'
]
+
$shippingFee
;
$returnData
[
'refundAmount'
]
=
$refundAmount
-
$returnData
[
'needShippingFee'
];
if
((
int
)
$returnData
[
'refundAmount'
]
<
ApiConst
::
zero
){
$returnData
[
'refundAmount'
]
=
ApiConst
::
zero
;
}
// if($orderGoods['goodsType']==ApiConst::goodsTypeFour){
// //已经退款过的金额
// $alreadyRefundMoney=$orderGoodsDao->getIsRefundMoney($orderGoodses,$orderGoods['promotionsId']);
...
...
application/models/DAO/Store.php
View file @
a9be1560
...
...
@@ -208,7 +208,8 @@ class StoreModel extends \DAO\AbstractModel
public
function
isChargeGet
(
$storeId
)
{
$isChargeGet
=
$this
->
getInfoById
(
$storeId
,
'is_charge_get'
);
return
$isChargeGet
>
ApiConst
::
zero
?
TRUE
:
FALSE
;
return
$isChargeGet
[
'is_charge_get'
]
>
ApiConst
::
zero
?
TRUE
:
FALSE
;
}
//线上支付订单已接单待发货退款是否收取服务费(0:否 1:是)
...
...
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