feature:冲红流程比较剩余金额判断

release
高荣琳 2 years ago
parent e81587f1dd
commit 1f7104a242
  1. 4
      order-management-invoice/src/main/java/com/dxhy/order/invoice/module/invoice/service/impl/OrderInvoiceInfoServiceImpl.java

@ -1602,8 +1602,8 @@ public class OrderInvoiceInfoServiceImpl implements OrderInvoiceInfoService {
if(sykchbhsje.compareTo(BigDecimal.ZERO) > ConfigureConstant.INT_0 && sykchse.compareTo(BigDecimal.ZERO) > ConfigureConstant.INT_0){
BigDecimal hzddHjbhsje = new BigDecimal(orderInfo.getHjbhsje()).abs();
BigDecimal hzddHjse = new BigDecimal(orderInfo.getHjse()).abs();
if (hzddHjbhsje.subtract(sykchbhsje).compareTo(BigDecimal.ZERO) >= ConfigureConstant.INT_0
&& hzddHjse.subtract(sykchse).compareTo(BigDecimal.ZERO) >= ConfigureConstant.INT_0){
if (hzddHjbhsje.subtract(sykchbhsje).compareTo(BigDecimal.ZERO) <= ConfigureConstant.INT_0
&& hzddHjse.subtract(sykchse).compareTo(BigDecimal.ZERO) <= ConfigureConstant.INT_0){
return R.ok().put(OrderManagementConstant.DATA,orderInvoiceData);
} else {
return R.error("蓝字剩余可冲红不含税金额小于负数订单不含税金额或税额");//改为常量

Loading…
Cancel
Save