Commit e058078b by NitefullWind

1. 修复代金券抵扣金额值错误。

parent 107b62e6
...@@ -103,7 +103,7 @@ void TaskPay::packagePOSRsp() ...@@ -103,7 +103,7 @@ void TaskPay::packagePOSRsp()
QJsonObject cp = coupon.toObject(); QJsonObject cp = coupon.toObject();
pay_id[PosProps.Pay_id] = "20003"; pay_id[PosProps.Pay_id] = "20003";
pay_id[PosProps.Pay_str] = QString::fromLocal8Bit("代金券支付"); pay_id[PosProps.Pay_str] = QString::fromLocal8Bit("代金券支付");
int disAmount = cp[PosProps.Coupon_disAmount].toInt(); int disAmount = cp[ServerProps(PosProps.Coupon_disAmount)].toInt();
pay_id[PosProps.Pay_amount] = disAmount; pay_id[PosProps.Pay_amount] = disAmount;
pay_id[PosProps.Coupon_code] = cp[ServerProps(PosProps.Coupon_code)]; pay_id[PosProps.Coupon_code] = cp[ServerProps(PosProps.Coupon_code)];
pay_ids.append(pay_id); pay_ids.append(pay_id);
......
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