Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmp_vip
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaojing.zhang
fmp_vip
Commits
1cb233de
Commit
1cb233de
authored
Jan 10, 2018
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 不限制积分抵扣金额大于待付金额。
parent
5848c84d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
windows/fmviporder.cpp
+6
-4
No files found.
windows/fmviporder.cpp
View file @
1cb233de
...
@@ -219,10 +219,12 @@ void FMVipOrder::on_score_edit_textChanged(const QString &scoreStr)
...
@@ -219,10 +219,12 @@ void FMVipOrder::on_score_edit_textChanged(const QString &scoreStr)
// 可用积分数量
// 可用积分数量
int
score_enable
=
score
/
1000
*
1000
;
// 以1000的整数倍可抵扣
int
score_enable
=
score
/
1000
*
1000
;
// 以1000的整数倍可抵扣
orderInfo
->
setUseScore
(
score_enable
);
orderInfo
->
setUseScore
(
score_enable
);
while
(
orderInfo
->
enoughScore
())
{
score_enable
-=
1000
;
//! WARNING 不限制积分抵扣金额大于待付金额 2018-01-10 16:57
orderInfo
->
setUseScore
(
score_enable
);
// while(orderInfo->enoughScore()) {
}
// score_enable -= 1000;
// orderInfo->setUseScore(score_enable);
// }
ui
->
score_label
->
setText
(
QString
::
fromLocal8Bit
(
"使用 %1 积分抵扣 %2 元"
).
arg
(
score_enable
).
arg
(
orderInfo
->
getPayAmountScore
()));
ui
->
score_label
->
setText
(
QString
::
fromLocal8Bit
(
"使用 %1 积分抵扣 %2 元"
).
arg
(
score_enable
).
arg
(
orderInfo
->
getPayAmountScore
()));
oldPayText
=
DOUBLE_STR
(
orderInfo
->
getMaxWillPay
());
oldPayText
=
DOUBLE_STR
(
orderInfo
->
getMaxWillPay
());
...
...
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