| | |
| | | orderInfo.setIsEmployeeDiscount(0); |
| | | orderInfo.setDiscount(defaultDiscount); |
| | | } else { |
| | | orderInfo.setIsEmployeeDiscount(StringUtils.noNull(ordersTotal.getKoapOrderId()) ? 0 : ordersTotal.getOrderInfo().getIsEmployeeDiscount()); |
| | | orderInfo.setIsWholeDiscount(StringUtils.noNull(ordersTotal.getKoapOrderId()) ? 0 : ordersTotal.getOrderInfo().getIsWholeDiscount()); |
| | | orderInfo.setIsEmployeeDiscount(StringUtils.noNull(ordersTotal.getKoapOrderId()) ? BaseEntity.NO : ordersTotal.getOrderInfo().getIsEmployeeDiscount()); |
| | | orderInfo.setIsWholeDiscount(StringUtils.noNull(ordersTotal.getKoapOrderId()) ? BaseEntity.NO : ordersTotal.getOrderInfo().getIsWholeDiscount()); |
| | | if (StringUtils.noNull(ordersTotal.getKoapOrderId())) { |
| | | orderInfo.setDiscount(defaultDiscount); |
| | | } else { |