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
6120ab6f
Commit
6120ab6f
authored
Sep 06, 2024
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
bf4d5982
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
OrderModule.cs
Edu.Module.Course/OrderModule.cs
+5
-2
No files found.
Edu.Module.Course/OrderModule.cs
View file @
6120ab6f
...
...
@@ -5166,11 +5166,14 @@ namespace Edu.Module.Course
#
endregion
var
stuModel
=
stuTimeList
.
Where
(
x
=>
x
.
OrderGuestId
==
item
.
GuestId
).
FirstOrDefault
();
item
.
UseClassHours
=
(
stuModel
?.
CurrentDeductionHours
??
0
);
item
.
Unit_Price
=
0
;
item
.
Unit_Price
=
guestModel
?.
ClassUnitPrice
??
0
;
item
.
UseCourseFee
=
0
;
if
(
item
.
TotalClassHours2
>
0
)
{
item
.
Unit_Price
=
Math
.
Round
(
item
.
TotalCourseFee2
/
item
.
TotalClassHours2
,
6
,
MidpointRounding
.
AwayFromZero
);
//根据合同计算(包含优惠, 需减去课件费等)
if
(
item
.
Unit_Price
<=
0
)
{
item
.
Unit_Price
=
Math
.
Round
(
item
.
TotalCourseFee2
/
item
.
TotalClassHours2
,
6
,
MidpointRounding
.
AwayFromZero
);
//根据合同计算(包含优惠, 需减去课件费等)
}
item
.
UseCourseFee
=
Math
.
Round
((
Convert
.
ToDecimal
(
item
.
UseClassHours
)
/
item
.
TotalClassHours2
)
*
item
.
TotalCourseFee2
,
6
,
MidpointRounding
.
AwayFromZero
);
//if (item.TotalDiscountMoney2 > 0)
//{
...
...
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