|
|
@ -485,20 +485,20 @@ public class AmountDetailSendMoneyFragment extends BaseFragment implements View. |
|
|
|
private void showCoupon(String discountValue, String discountType, String schemeId, String discountPercent, String couponName) { |
|
|
|
|
|
|
|
String couponString = ""; |
|
|
|
// if (schemeId == null || schemeId.length() < 1) { |
|
|
|
// couponString = "0"; |
|
|
|
// } else { |
|
|
|
// //Percent type discount |
|
|
|
if (schemeId == null || schemeId.length() < 1) { |
|
|
|
couponString = "0"; |
|
|
|
} else { |
|
|
|
//Percent type discount |
|
|
|
// |
|
|
|
|
|
|
|
if (discountType!=null&&discountType.equalsIgnoreCase("1")) { |
|
|
|
couponString = couponName +" "+ discountPercent+" (" + discountValue + "KRW)"; |
|
|
|
couponString = couponName +" "+ discountPercent+"% (" + discountValue + "KRW)"; |
|
|
|
} |
|
|
|
//Value type discount |
|
|
|
else { |
|
|
|
couponString = couponName + " (" + discountValue + " KRW)"; |
|
|
|
} |
|
|
|
// } |
|
|
|
} |
|
|
|
gmeCouponTxt.setText(couponString); |
|
|
|
|
|
|
|
|
|
|
|