|
@@ -107,7 +107,9 @@ public class PayServiceImpl implements PayService {
|
|
//商品数据
|
|
//商品数据
|
|
List<OrderProductVo> orderProductList = payDao.fandAllOrderProduct(orderId);
|
|
List<OrderProductVo> orderProductList = payDao.fandAllOrderProduct(orderId);
|
|
orderProductList.forEach(o -> {
|
|
orderProductList.forEach(o -> {
|
|
- if (StringUtils.isBlank(o.getIncludedTax()) || "2".equals(o.getIncludedTax())) {
|
|
|
|
|
|
+ if (StringUtils.isBlank(o.getIncludedTax()) || StringUtils.isBlank(o.getInvoiceType()) || "2".equals(o.getIncludedTax())
|
|
|
|
+ || ("2".equals(order.getInvoiceFlag()) && "0".equals(o.getIncludedTax()) && "3".equals(o.getInvoiceType()))) {
|
|
|
|
+ //订单选择开发票,商品属性:不含税-不能开票
|
|
order.setInvoiceStatus(true);
|
|
order.setInvoiceStatus(true);
|
|
}
|
|
}
|
|
});
|
|
});
|