Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DataCenter_Core2.1_20190520
Overview
Overview
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
bltdc
DataCenter_Core2.1_20190520
Commits
158dcab9
Commit
158dcab9
authored
Aug 06, 2019
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
付款时间也改为发生额
parent
0f83f3c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
14 deletions
+9
-14
OrdersController.cs
Bailun.DC.Web/Areas/Reports/Controllers/OrdersController.cs
+8
-13
PlatformProfitCount.cshtml
...Web/Areas/Reports/Views/Orders/PlatformProfitCount.cshtml
+1
-1
No files found.
Bailun.DC.Web/Areas/Reports/Controllers/OrdersController.cs
View file @
158dcab9
...
@@ -1385,8 +1385,6 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
...
@@ -1385,8 +1385,6 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
dtstart
=
shipstart
;
dtstart
=
shipstart
;
dtend
=
shipend
;
dtend
=
shipend
;
listRefund
=
_service
.
ListPlatformRefund
(
dtstart
,
dtend
,
companyid
,
platform
,
website
,
currency
.
ToUpper
()
==
"USD"
);
}
}
else
else
{
{
...
@@ -1396,8 +1394,8 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
...
@@ -1396,8 +1394,8 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
ebayADFee
=
_service
.
EbayFeeCount
(
companyid
,
dtstart
,
dtend
,
ADfeeType
,
""
,
""
,
currency
.
ToUpper
()
==
"USD"
);
ebayADFee
=
_service
.
EbayFeeCount
(
companyid
,
dtstart
,
dtend
,
ADfeeType
,
""
,
""
,
currency
.
ToUpper
()
==
"USD"
);
ebayPutAway
=
_service
.
EbayFeeCount
(
companyid
,
dtstart
,
dtend
,
PutAwayFeeType
,
""
,
""
,
currency
.
ToUpper
()
==
"USD"
);
ebayPutAway
=
_service
.
EbayFeeCount
(
companyid
,
dtstart
,
dtend
,
PutAwayFeeType
,
""
,
""
,
currency
.
ToUpper
()
==
"USD"
);
var
amazonAD
=
_service
.
ListAmazonADSkuCount
(
""
,
dtstart
,
dtend
,
companyid
,
currency
.
ToUpper
()
==
"USD"
);
var
amazonAD
=
_service
.
ListAmazonADSkuCount
(
""
,
dtstart
,
dtend
,
companyid
,
currency
.
ToUpper
()
==
"USD"
);
listRefund
=
_service
.
ListPlatformRefund
(
dtstart
,
dtend
,
companyid
,
platform
,
website
,
currency
.
ToUpper
()
==
"USD"
);
foreach
(
var
item
in
result
)
foreach
(
var
item
in
result
)
{
{
item
.
adfee
=
0
;
item
.
adfee
=
0
;
...
@@ -1421,18 +1419,15 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
...
@@ -1421,18 +1419,15 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
item
.
profit_rate
=
Math
.
Round
((
item
.
profit_total
/
item
.
amount_sales
),
2
);
item
.
profit_rate
=
Math
.
Round
((
item
.
profit_total
/
item
.
amount_sales
),
2
);
}
}
if
(
shipstart
.
HasValue
||
shipend
.
HasValue
)
item
.
amount_refund
=
0
;
item
.
amount_refund_rate
=
0
;
var
objRefund
=
listRefund
.
Where
(
a
=>
a
.
platform_type
.
ToLower
()
==
item
.
platform_type
.
ToLower
()).
FirstOrDefault
();
if
(
objRefund
!=
null
)
{
{
item
.
amount_refund
=
0
;
item
.
amount_refund
=
objRefund
.
amount_refund
;
item
.
amount_refund_rate
=
0
;
item
.
amount_refund_rate
=
(
item
.
amount_sales
>
0
?
item
.
amount_refund
/
item
.
amount_sales
:
0
);
var
objRefund
=
listRefund
.
Where
(
a
=>
a
.
platform_type
.
ToLower
()
==
item
.
platform_type
.
ToLower
()).
FirstOrDefault
();
if
(
objRefund
!=
null
)
{
item
.
amount_refund
=
objRefund
.
amount_refund
;
item
.
amount_refund_rate
=
(
item
.
amount_sales
>
0
?
item
.
amount_refund
/
item
.
amount_sales
:
0
);
}
}
}
//利润减去退款
//利润减去退款
item
.
profit_total
=
(
item
.
profit_total
-
item
.
amount_refund
);
item
.
profit_total
=
(
item
.
profit_total
-
item
.
amount_refund
);
item
.
profit_rate
=
Math
.
Round
((
item
.
profit_total
/
item
.
amount_sales
),
2
);
item
.
profit_rate
=
Math
.
Round
((
item
.
profit_total
/
item
.
amount_sales
),
2
);
...
...
Bailun.DC.Web/Areas/Reports/Views/Orders/PlatformProfitCount.cshtml
View file @
158dcab9
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<div style="float:right;width:100%;">
<div style="float:right;width:100%;">
<div id="rightcontain">
<div id="rightcontain">
<div class="alert alert-warning">
<div class="alert alert-warning">
说明:退款数据
按发货时间统计时,统计的是时间段内的退款发生额,并且排除已取消订单的退款;按付款时间时,关联订单取退款数据,并去掉取消和拦截的订单
退款。
说明:退款数据
统计的是时间段内的退款发生额,并且排除已取消订单的
退款。
</div>
</div>
<div class="ibox-content m-b-sm border-bottom">
<div class="ibox-content m-b-sm border-bottom">
...
...
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