Commit 1cb233de by NitefullWind

1. 不限制积分抵扣金额大于待付金额。

parent 5848c84d
......@@ -219,10 +219,12 @@ void FMVipOrder::on_score_edit_textChanged(const QString &scoreStr)
// 可用积分数量
int score_enable = score / 1000 * 1000; // 以1000的整数倍可抵扣
orderInfo->setUseScore(score_enable);
while(orderInfo->enoughScore()) {
score_enable -= 1000;
orderInfo->setUseScore(score_enable);
}
//! WARNING 不限制积分抵扣金额大于待付金额 2018-01-10 16:57
// while(orderInfo->enoughScore()) {
// score_enable -= 1000;
// orderInfo->setUseScore(score_enable);
// }
ui->score_label->setText(QString::fromLocal8Bit("使用 %1 积分抵扣 %2 元").arg(score_enable).arg(orderInfo->getPayAmountScore()));
oldPayText = DOUBLE_STR(orderInfo->getMaxWillPay());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment