Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
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
黄奎
Education
Commits
0a02ab0b
Commit
0a02ab0b
authored
3 years ago
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整留学提成
parent
d0caed85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
SellCommissionModule.cs
Edu.Module.Course/SellCommissionModule.cs
+3
-10
No files found.
Edu.Module.Course/SellCommissionModule.cs
View file @
0a02ab0b
...
...
@@ -2959,26 +2959,19 @@ namespace Edu.Module.Course
var
ruleModel
=
rulelist
.
Where
(
x
=>
x
.
OrderType
==
(
int
)
item
.
OrderNature
).
FirstOrDefault
();
if
(
ruleModel
==
null
)
{
continue
;
}
var
flist
=
financeList
.
Where
(
x
=>
x
.
OrderID
==
item
.
OrderId
).
ToList
();
decimal
TotalMoney
=
0
;
//销售额/利润
if
(
ruleModel
.
CommissionType
==
1
)
{
//销售额
decimal
XSEMoney
=
item
.
Income
+
item
.
PlatformTax
;
if
(
financeList
.
Where
(
x
=>
x
.
OtherType
==
45
).
Any
())
{
//有成本单据
XSEMoney
-=
financeList
.
Where
(
x
=>
x
.
OtherType
!=
45
).
Sum
(
x
=>
x
.
Money
??
0
);
//排除成本的
}
else
{
XSEMoney
-=
item
.
Refund
;
}
XSEMoney
-=
flist
.
Where
(
x
=>
x
.
OtherType
!=
45
).
Sum
(
x
=>
x
.
Money
??
0
);
//排除成本的
TotalMoney
=
XSEMoney
;
}
else
{
//利润
decimal
LRMoney
=
item
.
Income
+
item
.
PlatformTax
-
item
.
Refund
;
//利润有减成本
的
decimal
LRMoney
=
item
.
Income
-
flist
.
Sum
(
x
=>
x
.
Money
??
0
);
//利润=实收减成本退款
的
TotalMoney
=
LRMoney
;
}
...
...
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